Commit Graph

398 Commits

Author SHA1 Message Date
Johannes Schickel
121687d2ed BACKENDS: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Johannes Schickel
1028bd343f AMIGAOS4: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
D G Turner
b6e5865fce WII: Add missing dvd interface header for Gamecube build. 2014-01-26 11:19:53 +00:00
D G Turner
08d3b5754a WII: Another fix for Gamecube build. Corrected Disc Interface object. 2014-01-25 21:32:07 +00:00
D G Turner
417f755b90 WII: Fix Gamecube build. Missing ifdef guard for Wii DVD interface. 2014-01-25 18:50:20 +00:00
Willem Jan Palenstijn
219a68eeda AMIGAOS4: Clarify virtual fs root node 2014-01-22 23:18:24 +01:00
Willem Jan Palenstijn
d32816c027 AMIGAOS4: Allow getParent() to work for non-directories 2014-01-22 22:54:14 +01:00
Willem Jan Palenstijn
58aaef33c1 AMIGAOS4: Make isReadable return false for non-existent files
This also properly initializes _bIsValid for non-existent files.
For consistency, isWritable() is changed analogously to isReadable(),
even though it should not lead to changes in behaviour.
2014-01-22 22:54:05 +01:00
AReim1982
eff22cb43d WII: Implement changes needed by DevKitPPC R26 and later
This changes makes ScummVM compilable with newer versions of DevKitPPC. ScummVM can be linked against the original libogc and libfat. That makes some newer WiiMotes work, improves audio-/video-playback and contains various improvements.
2014-01-21 16:03:47 +01:00
Strangerke
97d28f0e72 AMIGAOS4: Make use of updated function names (SDK53.24) and remove unused code
Courtesy of Raziel^
2013-10-25 21:11:12 +02:00
Willem Jan Palenstijn
c9f0e8149d ALL: Fix typo (succesful -> successful)
Thanks to 'onlyjob' on pull request #337 for pointing out an instance of this.
2013-06-06 16:45:59 +02:00
Johannes Schickel
b4d0a8ba66 JANITORIAL: Enforce "} // End of namespace" with a single space after }. 2013-01-26 19:38:02 +01:00
Johannes Schickel
223794fb38 ALL: Make use of defined() for the preprocessor consistent.
This does not change the use of defined for some NDS source files, since they
seem to be (based on?) third party code.
2012-03-17 22:02:44 +01:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Christoph Mallon
a78b2d777d JANITORIAL: Remove extra semicolons. 2011-11-27 12:54:22 +01:00
Chris Warren-Smith
59739a7a0e BADA: Initial BADA port implementation 2011-08-21 16:37:06 +10:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Ori Avtalion
aa0f307e06 ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
Silences the clang warning:

  static data member specialization of '_singleton' must
  originally be declared in namespace 'Common'; accepted as a C++0x
  extension [-Wc++0x-extensions]

Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.

Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Littleboy
2d2ee68d2d BACKENDS: Update WindowsFilesystemNode::getChildren() to honor the hidden parameter (FR #1726611)
Hidden folders (such as the recycle bin or temporary hidden folders) will no longer be visible in the file/folder browser (as is the case on the Posix and related backends)
2011-06-28 01:58:09 -04:00
Bastien Bouclet
11cfa0d357 PS3: Initial version of the PlayStation 3 backend 2011-06-22 19:51:02 +02:00
Max Horn
8d77d8cf1c DS: Remove dead code 2011-06-06 16:55:18 +02:00
Max Horn
b0b5a1d802 DS: Add custom logMessage() implementation 2011-06-06 15:36:28 +02:00
Joost Peters
265e03c975 IRIX: Fix compilation 2011-06-04 16:55:58 +02:00
Max Horn
39076ef972 BUILD: Rename UNIX #define to POSIX 2011-05-25 13:23:03 +02:00
Max Horn
6f6051a9e1 COMMON: Mark more symbols as forbidden 2011-05-23 19:12:26 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
dhewg
b85fc8f190 WII: Fix compilation 2011-05-03 18:27:50 +02:00
Max Horn
7a0c64631d MACOSX: Try to fix compile errors triggered with certain Mac OS X SDK versions 2011-05-03 18:25:30 +02:00
Max Horn
b449b73f59 N64: Fix FS code regression 2011-05-03 15:33:37 +02:00
Max Horn
2fa63ca015 COMMON: Forbid use of getcwd&getwd; add macro to enable unistd.h compatibility 2011-05-03 14:30:25 +02:00
Max Horn
ff6533e1b3 PSP: Fix more forbidden symbol clashes 2011-05-03 14:14:21 +02:00
Max Horn
91141dae40 WII: Fix fs code compile regressions 2011-05-03 13:32:20 +02:00
Max Horn
f62fd4f25f BACKENDS: Avoid #including .cpp files
So far, the various *-fs-factory.cpp files were #including the
corresponding *-fs.cpp files. This is surprising and hence could lead to
all kinds of problems). To fix this, provide proper headers for the
*-fs.cpp files.
This also makes code reuse via subclassing possible.

Since not all ports were tested, this will likely lead to a few
easy to fix compile regressions.
2011-05-03 13:22:00 +02:00
Max Horn
59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Max Horn
4bed2b3ff5 SDL: Trying to cleanup the FORBIDDEN_SYMBOL situation
svn-id: r54575
2010-11-29 16:35:29 +00:00
Max Horn
4d09420ba4 DS: Remove redundant code
svn-id: r54556
2010-11-28 22:25:00 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
9fb1e2b17e COMMON: Change wrapBufferedWriteStream() to always disposes wrapped stream
This is the only we need right now, and it saves a few bytes per
instance. The template approach I used before has the drawback that it
increases the binary size, which negates the benefit. Thanks to LordHoto
for pointing this out.

svn-id: r54344
2010-11-18 20:27:15 +00:00
Max Horn
7444a06c61 DS: cleanup
svn-id: r54334
2010-11-18 17:42:28 +00:00
Max Horn
b8995eadfc DS: Remove write buffering in DSFileStream, use wrapBufferedWriteStream instead
svn-id: r54331
2010-11-18 17:30:00 +00:00
Max Horn
24f4d97901 DS: Avoid needlessly allocating temporary Common::String instances
svn-id: r54329
2010-11-18 17:15:35 +00:00
Max Horn
152e52d015 COMMON: Make implementation of Buffered*Stream classes internal
svn-id: r54326
2010-11-18 17:02:51 +00:00
Max Horn
bac018a3aa DS: Two more 'FILE' related fixes/workarounds
svn-id: r54321
2010-11-18 15:42:52 +00:00
Max Horn
51a954c1dd DS: Add some FIXME/TODO comments on changes that need to be applied to the DS backend
svn-id: r54318
2010-11-18 13:17:25 +00:00
Max Horn
abe1959d36 COMMON: Simplify DECLARE_SINGLETON macro
This makes it possible to write
  DECLARE_SINGLETON(foo);
instead of
  DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.

svn-id: r54258
2010-11-16 08:23:13 +00:00
Fabio Battaglia
77a636aaec N64: correct wrong check in romfs stream code
my implementation of romfs_seek is based on lseek, not on fseek,
so it returns the offset on successful completion, not 0, corrected
the check in RomfsStream::seek().

svn-id: r54151
2010-11-09 11:00:56 +00:00
Max Horn
ae829727da PS2: Enable another use of forbidden symbols
svn-id: r53977
2010-10-31 17:01:47 +00:00
Max Horn
917c4b00cb WINDOWS: Enable use of forbidden symbols
svn-id: r53972
2010-10-31 00:14:59 +00:00
Max Horn
44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00