Johannes Schickel
b4d0a8ba66
JANITORIAL: Enforce "} // End of namespace" with a single space after }.
2013-01-26 19:38:02 +01: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
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
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02: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
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
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
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
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
8f609497ee
Backported NDS changes from 1.0.0 branch to trunk
...
svn-id: r44426
2009-09-27 22:42:21 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Horn
b5bcc1a23a
Merged Neil's NDS changes into trunk
...
svn-id: r39526
2009-03-19 09:51:40 +00:00
Max Horn
8f16458e9b
Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
...
svn-id: r36014
2009-01-23 03:41:36 +00:00
Max Horn
72702130d9
DS: Apply an old cleanup patch of mine from last August
...
svn-id: r36011
2009-01-23 03:06:21 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Robin Watts
8f3b2e9b4d
Remove warnings from NDS build.
...
svn-id: r35172
2008-11-29 18:01:16 +00:00
Robin Watts
f897def64d
Eliminate some warnings from NDS specific code.
...
svn-id: r35157
2008-11-23 11:49:58 +00:00
Neil Millstone
8b9311dd4e
DS: Fixing feof behaviour and path prefix stuff.
...
svn-id: r34934
2008-11-07 23:21:35 +00:00
Max Horn
c7fde102e3
Renamed FilesystemNode -> FSNode
...
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
2bcc5681d8
DS: Removing some dead code; merged (parts of) std_cwd into GBAMPSaveFileManager::listSavefiles
...
svn-id: r34587
2008-09-17 16:38:01 +00:00
Max Horn
05d78c26b4
DS: Backported 0.12 changes to trunk
...
svn-id: r34568
2008-09-15 22:43:20 +00:00
Max Horn
ace51b317a
DS: Some more compile fixes (prope solution would of course be to overload ::openForReading & ::openForWriting)
...
svn-id: r34550
2008-09-14 22:44:49 +00:00
Max Horn
02a846c669
Compilation fix for NDS
...
svn-id: r34542
2008-09-14 21:32:45 +00:00
Max Horn
7f18aaf8ec
Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends
...
svn-id: r34304
2008-09-03 12:56:46 +00:00
Max Horn
531bcf847c
Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
...
svn-id: r34302
2008-09-03 11:22:51 +00:00
Max Horn
cb21c25e41
FSNode code: Merged most versions of lastPathComponent() into one new AbstractFilesystemNode::lastPathComponent() method, with customizable path separator character
...
svn-id: r34197
2008-08-27 20:31:22 +00:00
Max Horn
5288daa863
DS: Forgot to commit #include changes in the ds-fs.* files; this allows to get rid of -Isource/fat
...
svn-id: r32520
2008-06-03 21:04:41 +00:00
Max Horn
e93a1f0c32
Removing dead code
...
svn-id: r31304
2008-03-29 21:17:43 +00:00
Max Horn
5c99d45d9f
Don't #include the FS factory implementations in common/system.cpp; rather, rely on the build system to include them
...
svn-id: r30957
2008-02-24 23:14:04 +00:00
Max Horn
80d55b0388
Renamed AbstractFilesystemFactory to FilesystemFactory
...
svn-id: r30935
2008-02-23 19:01:12 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
4ba2df8792
Use explicit path in #include statement (DS port specific)
...
svn-id: r30552
2008-01-18 17:24:34 +00:00
Neil Millstone
1cfedb217a
Remove a comment
...
svn-id: r29943
2007-12-21 18:34:08 +00:00
Neil Millstone
8183d56407
Implement exists() in DS file system
...
svn-id: r29942
2007-12-21 18:30:25 +00:00
Neil Millstone
688f074ea5
Fixed a load of compile errors, reverted additions to lastPathComponent() which were clearly in error.
...
svn-id: r29204
2007-10-13 15:41:34 +00:00