Permalink
Browse files

Sort out profiles on Windows

  • Loading branch information...
1 parent 16cc896 commit eb8ea04e8614dec2123f00abc8d18960b44e5c11 unknown committed Jun 6, 2009
Showing with 14 additions and 7 deletions.
  1. BIN msvc9/Lander/Lander.suo
  2. +3 −3 msvc9/Lander/Lander/Lander.vcproj
  3. +8 −1 src/Main.cpp
  4. +3 −3 src/Platform.hpp
View
Binary file not shown.
@@ -42,7 +42,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""C:\Documents and Settings\Nick\My Documents\SDL-1.2.13\include";"C:\Documents and Settings\Nick\My Documents\SDL_image-1.2.7\include";"C:\Documents and Settings\Nick\My Documents\SDL_mixer-1.2.8\include";"C:\Program Files\GnuWin32\include\freetype2";"C:\Program Files\GnuWin32\include""
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;VERSION=\"0.5.3\""
+ PreprocessorDefinitions="WIN32;_DEBUG;VERSION=\"0.5.3\""
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -62,7 +62,7 @@
/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="opengl32.lib glu32.lib SDL.lib freetype.lib SDL_mixer.lib SDL_image.lib SDLmain.lib"
+ AdditionalDependencies="opengl32.lib glu32.lib SDL.lib freetype.lib SDL_mixer.lib SDL_image.lib SDLmain.lib libboost_filesystem-vc90-mt-gd-1_37.lib"
LinkIncremental="2"
AdditionalLibraryDirectories="&quot;C:\Documents and Settings\Nick\My Documents\SDL-1.2.13\lib&quot;;&quot;C:\Documents and Settings\Nick\My Documents\SDL_image-1.2.7\lib&quot;;&quot;C:\Documents and Settings\Nick\My Documents\SDL_mixer-1.2.8\lib&quot;;&quot;C:\Program Files\GnuWin32\lib&quot;"
GenerateDebugInformation="true"
@@ -119,7 +119,7 @@
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="&quot;C:\Documents and Settings\Nick\My Documents\SDL-1.2.13\include&quot;;&quot;C:\Documents and Settings\Nick\My Documents\SDL_image-1.2.7\include&quot;;&quot;C:\Documents and Settings\Nick\My Documents\SDL_mixer-1.2.8\include&quot;;&quot;C:\Program Files\GnuWin32\include\freetype2&quot;;&quot;C:\Program Files\GnuWin32\include&quot;"
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;VERSION=\&quot;0.5.3\&quot;"
+ PreprocessorDefinitions="WIN32;NDEBUG;VERSION=\&quot;0.5.3\&quot;"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
View
@@ -17,6 +17,7 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
+#include "Platform.hpp"
#include "Game.hpp"
#include "Menu.hpp"
#include "HighScores.hpp"
@@ -195,7 +196,13 @@ string GetConfigDir()
return string(getenv("HOME")) + "/";
#else
#ifdef WIN32
- return string(getenv("UserProfile")) + "\\";
+ using namespace boost::filesystem;
+
+ path appdata(getenv("APPDATA"));
+ appdata /= "doof.me.uk";
+ appdata /= "Lander";
+ create_directories(appdata);
+ return appdata.file_string() + "\\";
#else
#error "Need to port GetConfigDir to this platform"
#endif
View
@@ -32,8 +32,6 @@
#include <algorithm>
#include <cmath>
-using namespace std;
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
@@ -56,7 +54,6 @@ using namespace std;
#endif
#include <boost/tr1/memory.hpp>
-using namespace std::tr1;
#define msleep(n) Sleep(n)
@@ -136,6 +133,9 @@ using namespace std::tr1;
#endif /* #ifdef LINUX */
+using namespace std;
+using namespace std::tr1;
+
void RecreateScreens();
string LocateResource(const string& file);
string GetConfigDir();

0 comments on commit eb8ea04

Please sign in to comment.