src/win32.cpp
changeset 6317 70f4e9e52eb1
parent 6298 01c80746f308
child 6424 d410d4c31d15
equal deleted inserted replaced
6316:d2b70e10f106 6317:70f4e9e52eb1
   941 		path[result] = '\0';
   941 		path[result] = '\0';
   942 	}
   942 	}
   943 }
   943 }
   944 #endif
   944 #endif
   945 
   945 
   946 void DetermineBasePaths()
   946 void DetermineBasePaths(const char *exe)
   947 {
   947 {
   948 	_paths.personal_dir = _paths.game_data_dir = MallocT<char>(MAX_PATH);
   948 	_paths.personal_dir = _paths.game_data_dir = MallocT<char>(MAX_PATH);
   949 #if defined(UNICODE)
   949 #if defined(UNICODE)
   950 	TCHAR path[MAX_PATH];
   950 	TCHAR path[MAX_PATH];
   951 	GetCurrentDirectory(MAX_PATH - 1, path);
   951 	GetCurrentDirectory(MAX_PATH - 1, path);