src/win32.cpp
branchnoai
changeset 9476 1d1ed96f32ad
parent 6624 554e5aee6c3f
child 6719 4cc327ad39d5
child 6920 ee15b916f758
child 9574 698395509d12
equal deleted inserted replaced
9475:58c20c0e394f 9476:1d1ed96f32ad
   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);