Age | Commit message (Collapse) | Author |
|
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
|
|
svn-id: r54575
|
|
svn-id: r54556
|
|
svn-id: r54385
|
|
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
|
|
svn-id: r54334
|
|
svn-id: r54331
|
|
svn-id: r54329
|
|
svn-id: r54326
|
|
svn-id: r54321
|
|
DS backend
svn-id: r54318
|
|
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
|
|
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
|
|
svn-id: r53977
|
|
svn-id: r53972
|
|
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
|
|
svn-id: r53160
|
|
BufferedSeekableReadStream
As Max pointed out to me, one can't really use virtual functions called from constructors/destructors.
svn-id: r52722
|
|
svn-id: r52533
|
|
I was missing a flag (PSP_O_TRUNC) causing the config file to be opened on top of the old file, causing file corruption.
svn-id: r52387
|
|
The last PSP optimization made reading much faster, but writing isn't buffered so saving the config file was VERY slow.
I decided the cleanest way to do this would be to add BWS and use BSRS.
svn-id: r52327
|
|
Turns out that stdio is about 30x(!) slower than using the PSP's functions. Very significant optimization.
svn-id: r52271
|
|
svn-id: r52089
|
|
access for the GameCube port.
svn-id: r52074
|
|
svn-id: r50964
|
|
* remove (S)RAM save code (it has not been in use for quite some time)
* remove the lz compressor (was only used by ram save code)
* OPT_SPEED was set incorrectly
* dsmain.cpp was misspelled as ds_main.cpp
* remove unsed arm9 libcartreset (the copy in the arm7 directory
still is around, though)
svn-id: r50741
|
|
svn-id: r50701
|
|
* Do not modify the strings passed to std_fopen anymore
* Correct signature of std_fread
* Do not cast away constness, nor perform unnecessary casts
svn-id: r50693
|
|
svn-id: r50692
|
|
svn-id: r50689
|
|
svn-id: r50688
|
|
svn-id: r50687
|
|
svn-id: r49852
|
|
svn-id: r49843
|
|
svn-id: r49457
|
|
svn-id: r49257
|
|
it reads 1 KB.
svn-id: r49243
|
|
svn-id: r48792
|
|
svn-id: r48640
|
|
svn-id: r48634
|
|
svn-id: r48632
|
|
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.
svn-id: r48254
|
|
svn-id: r48148
|
|
svn-id: r47541
|
|
a custom Stream subclass
svn-id: r46777
|
|
svn-id: r46773
|
|
svn-id: r46232
|
|
* Add new class PS2FileStream as substitute for class StdioStream on PS2
* Remove PS2 specific hacks from stdiostream.cpp / class StdioStream
* Remove various ps2_f*() wrapper funcs, merging them into PS2FileStream
TODO: Merge class Ps2File into PS2FileStream
svn-id: r46111
|
|
svn-id: r46109
|
|
fputs instead of fprintf
svn-id: r46107
|