[Scummvm-cvs-logs] SF.net SVN: scummvm: [26019] scummvm/trunk/backends
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Mar 8 17:53:30 CET 2007
Revision: 26019
http://scummvm.svn.sourceforge.net/scummvm/?rev=26019&view=rev
Author: fingolfin
Date: 2007-03-08 08:53:30 -0800 (Thu, 08 Mar 2007)
Log Message:
-----------
Removed MAX_FILENAME_LENGTH workaround (using enum's instead of #defines means we can take advantage of namespaces)
Modified Paths:
--------------
scummvm/trunk/backends/fs/ds/ds-fs.h
scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.h
Modified: scummvm/trunk/backends/fs/ds/ds-fs.h
===================================================================
--- scummvm/trunk/backends/fs/ds/ds-fs.h 2007-03-08 16:49:58 UTC (rev 26018)
+++ scummvm/trunk/backends/fs/ds/ds-fs.h 2007-03-08 16:53:30 UTC (rev 26019)
@@ -34,12 +34,11 @@
#include "backends/fs/abstract-fs.h"
//#include "backends/fs/fs.h"
-// Fix name clash with FOTAQ engine, cutaway.h
-#undef MAX_FILENAME_LENGTH
-// This class is used when a Flash cart is in use
-
namespace DS {
+/**
+ * This class is used when a Flash cart is in use.
+ */
class DSFileSystemNode : public AbstractFilesystemNode {
protected:
static ZipFile* _zipFile;
@@ -72,8 +71,9 @@
};
-// This class is used when the GBAMP (GBA Movie Player) is used with a CompactFlash card
-
+/**
+ * This class is used when the GBAMP (GBA Movie Player) is used with a CompactFlash card.
+ */
class GBAMPFileSystemNode : public AbstractFilesystemNode {
protected:
typedef class Common::String String;
Modified: scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.h
===================================================================
--- scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.h 2007-03-08 16:49:58 UTC (rev 26018)
+++ scummvm/trunk/backends/platform/ds/arm9/source/fat/gba_nds_fat.h 2007-03-08 16:53:30 UTC (rev 26019)
@@ -66,7 +66,9 @@
// Important constants
-#define MAX_FILENAME_LENGTH 256 // Maximum LFN length. Don't change this one
+enum {
+ MAX_FILENAME_LENGTH = 256 // Maximum LFN length. Don't change this one
+};
// File Constants
#ifndef EOF
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list