aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
AgeCommit message (Collapse)Author
2010-11-09N64: correct wrong check in romfs stream codeFabio Battaglia
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-10-31PS2: Enable another use of forbidden symbolsMax Horn
svn-id: r53977
2010-10-31WINDOWS: Enable use of forbidden symbolsMax Horn
svn-id: r53972
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
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-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-09-14PSP: remove virtual inheritance of BufferedWriteStream and ↵Yotam Barnoy
BufferedSeekableReadStream As Max pointed out to me, one can't really use virtual functions called from constructors/destructors. svn-id: r52722
2010-09-04DS: Enable stdout/err via nocash when DISABLE_COMMAND_LINE in not set.Andre Heider
svn-id: r52533
2010-08-25PSP: fixed flag to open()Yotam Barnoy
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-24PSP: switched to using BufferedSeekableReadStream and BufferedWriteStreamYotam Barnoy
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-22PSP: switched from stdio to psp functions -- dramatic speed improvementYotam Barnoy
Turns out that stdio is about 30x(!) slower than using the PSP's functions. Very significant optimization. svn-id: r52271
2010-08-14WII: Fix compilation of the GameCube port.Andre Heider
svn-id: r52089
2010-08-14WII: Update port for the current versions of the base libraries. Enable DVD ↵Andre Heider
access for the GameCube port. svn-id: r52074
2010-07-17Remove PalmOS portMax Horn
svn-id: r50964
2010-07-07DS: Fix some quirks in the NDS build system, remove some dead codeMax Horn
* 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-05DS: Fix warnings, make some vars static, cleanupMax Horn
svn-id: r50701
2010-07-05DS: Fix various warnings and errors in the DS FS codeMax Horn
* 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-05DS: Fix error in std_fopen (warnings are great :)Max Horn
svn-id: r50692
2010-07-05NDS: Update GPL/copyright headers; add namespace DS closing commentsMax Horn
svn-id: r50689
2010-07-05DS: Code formatting: "char* foo" -> "char *foo"Max Horn
svn-id: r50688
2010-07-05DS: Fix warnings, cleanupMax Horn
svn-id: r50687
2010-06-15PSP: fixed up PowerManager and removed dependency on SDLYotam Barnoy
svn-id: r49852
2010-06-15Fix spelling, cleanupMax Horn
svn-id: r49843
2010-06-06PSP: faster way of getting file sizeYotam Barnoy
svn-id: r49457
2010-05-27PSP: fixed issue with handling of EOS. Caused crashes.Yotam Barnoy
svn-id: r49257
2010-05-26PSP: implemented basic file cache. Turns out the PSP reads 1 byte as fast as ↵Yotam Barnoy
it reads 1 KB. svn-id: r49243
2010-04-25PSP:Implemented fingolfin's suggestion for cleaning up debugging codeYotam Barnoy
svn-id: r48792
2010-04-12remove useless getObjectName() methodJoost Peters
svn-id: r48640
2010-04-12PSP: Fix code formatting using astyleMax Horn
svn-id: r48634
2010-04-12PSP: refactoring/redesign of the backendYotam Barnoy
svn-id: r48632
2010-03-13Fix our DECLARE_SINGLETON macro to conform to the C++ specs.Johannes Schickel
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-02-27Added the svn:keywords property to some files missing it.Jordi Vilalta Prat
svn-id: r48148
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2009-12-30remove bad hackery caused by n64 port and avoid polluting StdioStream using ↵Fabio Battaglia
a custom Stream subclass svn-id: r46777
2009-12-30Add Nintendo 64 port to trunk.Fabio Battaglia
svn-id: r46773
2009-12-01Removed unnecessary semi-colons.Torbjörn Andersson
svn-id: r46232
2009-11-23PS2: Add new PS2FileStream class for std I/O.Max Horn
* 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-23Remove unnecessary #include errno.hMax Horn
svn-id: r46109
2009-11-23PS2 & NDS: Remove ps2_fprintf and some useless typedefs and #defines; use ↵Max Horn
fputs instead of fprintf svn-id: r46107
2009-11-23PS2: cleanupMax Horn
svn-id: r46105
2009-11-23Remove obsolete OSX & NDS specific stuff from StdioStream codeMax Horn
svn-id: r46104
2009-10-09PS2: Fix warning, use fully qualified path for backend specific header ps2temp.hMax Horn
svn-id: r44811
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2009-09-27Backported NDS changes from 1.0.0 branch to trunkMax Horn
svn-id: r44426
2009-09-25Patch #2856708: AMIGAOS4: FS updated to new SDKMax Horn
svn-id: r44338
2009-09-23PSP: improved suspend/resume support [patch from bluddy]Joost Peters
svn-id: r44276
2009-09-20Mention mount errors on the status labels.Andre Heider
svn-id: r44202
2009-09-13Removed unnecessary semi-colons.Torbjörn Andersson
svn-id: r44048
2009-09-05Support for SMB shares, cleaned up async FS functions.Andre Heider
svn-id: r43965
2009-08-17Commit (slightly) modified version of patch #2831248: Allow suspend/resume ↵Joost Peters
for PSP svn-id: r43477
2009-08-15Properly implement PSPFilesystemFactory::makeCurrentDirectoryFileNode()Joost Peters
svn-id: r43404