Changes to make it work in windows again;

New header util/platform.hpp for platform specific stuff that doesn't go elsewhere;
Changed resource names from "CURSOR_SOMETHING" to "cursor/something", so it matches the filenames (in progress for other resource types).

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@190 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-01-30 17:27:25 +00:00
parent 7355ce5b51
commit 315af1f14a
30 changed files with 383 additions and 313 deletions
+1 -1
View File
@@ -8,8 +8,8 @@
#include <util/io/get_member.hpp>
#include <util/vector2d.hpp>
#include <script/value.hpp>
#include <script/script.hpp>
#include <script/to_value.hpp>
// ---------------------------------------------------------------------------- : GetDefaultMember
+1 -3
View File
@@ -10,11 +10,9 @@
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <script/value.hpp>
class Script;
class ScriptValue;
DECLARE_INTRUSIVE_POINTER_TYPE(ScriptValue);
DECLARE_INTRUSIVE_POINTER_TYPE(Script);
template <typename T> class Defaultable;
+33
View File
@@ -0,0 +1,33 @@
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) 2001 - 2006 Twan van Laarhoven |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
#ifndef HEADER_UTIL_PREC
#define HEADER_UTIL_PREC
/** @file util/platform.hpp
*
* @brief Platform specific hacks
*/
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
// ----------------------------------------------------------------------------- : Windows
// ----------------------------------------------------------------------------- : Linux
#ifdef __linux__
inline void wxMkDir(const String& str) {
wxMkDir(wxConvLocal.cWX2MB(dir), 0777);
}
#endif
// ----------------------------------------------------------------------------- : EOF
#endif
+3 -3
View File
@@ -14,9 +14,9 @@
// ----------------------------------------------------------------------------- : Includes
#include "io/reader.hpp"
#include "io/writer.hpp"
#include "io/get_member.hpp"
#include <util/io/reader.hpp>
#include <util/io/writer.hpp>
#include <util/io/get_member.hpp>
// ----------------------------------------------------------------------------- : Declaring reflection
-1
View File
@@ -8,7 +8,6 @@
#include <util/version.hpp>
#include <util/reflect.hpp>
#include <script/value.hpp>
// ----------------------------------------------------------------------------- : Version