Browse Source

Fix ToolDataDir on Windows

JoshEngebretson 10 years ago
parent
commit
5893c49d5b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/ToolCore/ToolEnvironment.cpp

+ 2 - 1
Source/ToolCore/ToolEnvironment.cpp

@@ -33,11 +33,12 @@ bool ToolEnvironment::InitFromPackage()
 
 #ifdef ATOMIC_PLATFORM_WINDOWS
 	editorBinary_ = fileSystem->GetProgramDir() + "AtomicEditor.exe";
+    String resourcesDir = fileSystem->GetProgramDir() + "Resources/";
 #else
     editorBinary_ = fileSystem->GetProgramDir() + "AtomicEditor";
+    String resourcesDir = GetPath(RemoveTrailingSlash(fileSystem->GetProgramDir())) + "Resources/";
 #endif
 
-	String resourcesDir = GetPath(RemoveTrailingSlash(fileSystem->GetProgramDir())) + "Resources/";
     toolDataDir_ =  resourcesDir + "ToolData/";
 
     return true;