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
Jordi Vilalta Prat
8388e0dfea
JANITORAL: Clean trailing whitespaces.
...
svn-id: r53160
2010-10-12 02:18:11 +00:00
Yotam Barnoy
a1b16661de
PSP: remove virtual inheritance of BufferedWriteStream and BufferedSeekableReadStream
...
As Max pointed out to me, one can't really use virtual functions called from constructors/destructors.
svn-id: r52722
2010-09-14 14:00:15 +00:00
Andre Heider
7248efb178
DS: Enable stdout/err via nocash when DISABLE_COMMAND_LINE in not set.
...
svn-id: r52533
2010-09-04 22:19:20 +00:00
Yotam Barnoy
89b34faa5a
PSP: fixed flag to open()
...
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
2010-08-25 13:26:30 +00:00
Yotam Barnoy
b88f341b80
PSP: switched to using BufferedSeekableReadStream and BufferedWriteStream
...
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
2010-08-24 11:24:34 +00:00
Yotam Barnoy
a503f9223a
PSP: switched from stdio to psp functions -- dramatic speed improvement
...
Turns out that stdio is about 30x(!) slower than using the PSP's functions. Very significant optimization.
svn-id: r52271
2010-08-22 10:48:13 +00:00
Andre Heider
af3dd70938
WII: Fix compilation of the GameCube port.
...
svn-id: r52089
2010-08-14 11:01:00 +00:00
Andre Heider
c58e2707ff
WII: Update port for the current versions of the base libraries. Enable DVD access for the GameCube port.
...
svn-id: r52074
2010-08-14 00:56:12 +00:00
Max Horn
0b48a71c99
Remove PalmOS port
...
svn-id: r50964
2010-07-17 18:41:38 +00:00
Max Horn
fe72d5dd78
DS: Fix some quirks in the NDS build system, remove some dead code
...
* 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
2010-07-07 23:22:53 +00:00
Max Horn
68d620ccab
DS: Fix warnings, make some vars static, cleanup
...
svn-id: r50701
2010-07-05 19:10:20 +00:00
Max Horn
75529dc402
DS: Fix various warnings and errors in the DS FS code
...
* 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
2010-07-05 16:12:31 +00:00
Max Horn
edb5210d38
DS: Fix error in std_fopen (warnings are great :)
...
svn-id: r50692
2010-07-05 16:12:10 +00:00
Max Horn
3d44870c8a
NDS: Update GPL/copyright headers; add namespace DS closing comments
...
svn-id: r50689
2010-07-05 16:11:11 +00:00
Max Horn
e4ec2e6403
DS: Code formatting: "char* foo" -> "char *foo"
...
svn-id: r50688
2010-07-05 16:10:22 +00:00
Max Horn
d5c78f78c5
DS: Fix warnings, cleanup
...
svn-id: r50687
2010-07-05 16:09:27 +00:00
Yotam Barnoy
a21b9c7b96
PSP: fixed up PowerManager and removed dependency on SDL
...
svn-id: r49852
2010-06-15 13:10:00 +00:00
Max Horn
651e2760a3
Fix spelling, cleanup
...
svn-id: r49843
2010-06-15 12:33:20 +00:00
Yotam Barnoy
857f3ab550
PSP: faster way of getting file size
...
svn-id: r49457
2010-06-06 14:17:37 +00:00
Yotam Barnoy
f7ba7b4684
PSP: fixed issue with handling of EOS. Caused crashes.
...
svn-id: r49257
2010-05-27 06:11:50 +00:00
Yotam Barnoy
8b54efd8a6
PSP: implemented basic file cache. Turns out the PSP reads 1 byte as fast as it reads 1 KB.
...
svn-id: r49243
2010-05-26 14:43:25 +00:00
Yotam Barnoy
f036b6b9d2
PSP:Implemented fingolfin's suggestion for cleaning up debugging code
...
svn-id: r48792
2010-04-25 15:12:24 +00:00
Joost Peters
fe566293e7
remove useless getObjectName() method
...
svn-id: r48640
2010-04-12 11:43:14 +00:00
Max Horn
87028c546f
PSP: Fix code formatting using astyle
...
svn-id: r48634
2010-04-12 07:28:54 +00:00
Yotam Barnoy
9a2eac7eee
PSP: refactoring/redesign of the backend
...
svn-id: r48632
2010-04-12 06:49:05 +00:00
Johannes Schickel
40562798d6
Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
...
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
2010-03-13 21:55:49 +00:00
Jordi Vilalta Prat
22e5a557b7
Added the svn:keywords property to some files missing it.
...
svn-id: r48148
2010-02-27 17:02:58 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Fabio Battaglia
3a418c13a7
remove bad hackery caused by n64 port and avoid polluting StdioStream using a custom Stream subclass
...
svn-id: r46777
2009-12-30 22:56:19 +00:00
Fabio Battaglia
a108df30a7
Add Nintendo 64 port to trunk.
...
svn-id: r46773
2009-12-30 21:11:38 +00:00
Torbjörn Andersson
039d7d5e1c
Removed unnecessary semi-colons.
...
svn-id: r46232
2009-12-01 19:19:58 +00:00
Max Horn
fc84e258b2
PS2: Add new PS2FileStream class for std I/O.
...
* 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
2009-11-23 23:17:50 +00:00
Max Horn
fe48378eb2
Remove unnecessary #include errno.h
...
svn-id: r46109
2009-11-23 23:15:44 +00:00
Max Horn
3d342bec3c
PS2 & NDS: Remove ps2_fprintf and some useless typedefs and #defines; use fputs instead of fprintf
...
svn-id: r46107
2009-11-23 22:29:39 +00:00
Max Horn
6312da6d13
PS2: cleanup
...
svn-id: r46105
2009-11-23 22:28:44 +00:00
Max Horn
68ebbf9022
Remove obsolete OSX & NDS specific stuff from StdioStream code
...
svn-id: r46104
2009-11-23 22:28:14 +00:00
Max Horn
e6dd7e24f2
PS2: Fix warning, use fully qualified path for backend specific header ps2temp.h
...
svn-id: r44811
2009-10-09 10:03:45 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +00:00
Max Horn
8f609497ee
Backported NDS changes from 1.0.0 branch to trunk
...
svn-id: r44426
2009-09-27 22:42:21 +00:00
Max Horn
3c8500c149
Patch #2856708 : AMIGAOS4: FS updated to new SDK
...
svn-id: r44338
2009-09-25 09:57:38 +00:00
Joost Peters
6a5bd81599
PSP: improved suspend/resume support [patch from bluddy]
...
svn-id: r44276
2009-09-23 16:11:23 +00:00
Andre Heider
cd1628f70d
Mention mount errors on the status labels.
...
svn-id: r44202
2009-09-20 11:47:11 +00:00
Torbjörn Andersson
e7469479ce
Removed unnecessary semi-colons.
...
svn-id: r44048
2009-09-13 10:32:55 +00:00
Andre Heider
0b002beccd
Support for SMB shares, cleaned up async FS functions.
...
svn-id: r43965
2009-09-05 17:53:55 +00:00
Joost Peters
62bcb2e51b
Commit (slightly) modified version of patch #2831248 : Allow suspend/resume for PSP
...
svn-id: r43477
2009-08-17 12:57:37 +00:00
Joost Peters
aae6c98945
Properly implement PSPFilesystemFactory::makeCurrentDirectoryFileNode()
...
svn-id: r43404
2009-08-15 10:44:58 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00