aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/psp
AgeCommit message (Collapse)Author
2018-08-18PSP: Fix strict aliasing violationColin Snover
Casting through pointer to void just to truncate a value to uint32 is incorrect.
2018-08-18PSP: Fix invalid return type of PspIoStreamColin Snover
The underlying API returns a SceUID, which is not valid to be casted to a pointer.
2017-07-10Revert "COMMON: Change way the Singleton instances are instantiated"Eugene Sandulenko
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken.
2017-07-10COMMON: Change way the Singleton instances are instantiatedThierry Crozat
This fixes tons of warnings with clang from a recent xcode version on macOS (and possibly other systems) complaining that an instantiation of _singleton is required but no definition is available.
2017-01-12BACKENDS: Fix Shadowing Compiler Warning for isDirectory symbol.D G Turner
This should ensure that any future cut-and-paste for new backends do not repeat this same warning issue.
2016-08-24CLOUD: Add AbstractFSNode::create() backends stubsAlexander Tkachev
2014-02-18PSP: Make GPL headers consistent in themselves.Johannes Schickel
2011-11-27JANITORIAL: Remove extra semicolons.Christoph Mallon
2011-06-30ALL: Require DECLARE_SINGLETON to be used in the Common namepsaceOri Avtalion
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-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-03COMMON: Forbid use of getcwd&getwd; add macro to enable unistd.h compatibilityMax Horn
2011-05-03PSP: Fix more forbidden symbol clashesMax Horn
2011-05-03BACKENDS: Avoid #including .cpp filesMax Horn
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.
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-18COMMON: Change wrapBufferedWriteStream() to always disposes wrapped streamMax Horn
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-18COMMON: Make implementation of Buffered*Stream classes internalMax Horn
svn-id: r54326
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
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-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-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-06-15PSP: fixed up PowerManager and removed dependency on SDLYotam Barnoy
svn-id: r49852
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-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2009-09-30Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other ↵Max Horn
things) svn-id: r44495
2009-09-23PSP: improved suspend/resume support [patch from bluddy]Joost Peters
svn-id: r44276
2009-09-13Removed unnecessary semi-colons.Torbjörn Andersson
svn-id: r44048
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
2009-03-25Allow building of psp backend via configure (Part 1 - Still need to add the ↵Joost Peters
fixup + EBOOT packing steps). Thanks dhewg and fingolfin for assistance. :) svn-id: r39693
2009-01-24don't append '/' to path in getChildren()Joost Peters
svn-id: r36042
2009-01-23Renamed FSNode::openForReading / openForWriting to createReadStream / ↵Max Horn
createWriteStream, again to make ownership of the returned stream clear svn-id: r36014
2008-10-02Renamed FilesystemNode -> FSNodeMax Horn
svn-id: r34716
2008-09-03Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out ↵Max Horn
to backends svn-id: r34304
2008-09-03Moved FilesystemNode / FSList to namespace Common; also got rid of some ↵Max Horn
'typedef Common::String String;' name aliases svn-id: r34302
2008-08-27FSNode code: Merged most versions of lastPathComponent() into one new ↵Max Horn
AbstractFilesystemNode::lastPathComponent() method, with customizable path separator character svn-id: r34197
2008-02-24Don't #include the FS factory implementations in common/system.cpp; rather, ↵Max Horn
rely on the build system to include them svn-id: r30957
2008-02-23Renamed AbstractFilesystemFactory to FilesystemFactoryMax Horn
svn-id: r30935
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2008-01-17implement exists(), isReadable() and isWritable() stubs using access()Joost Peters
svn-id: r30537
2007-10-17fix compile after recent fs code renameJoost Peters
svn-id: r29229