Changeset - r10780:f7de0458659f
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-01-16 16:32:48
rubidium@openttd.org
(svn r15113) -Codechange: unify calling ScanForTarFiles when determining the paths.
2 files changed with 2 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -882,8 +882,6 @@ extern void cocoaSetApplicationBundleDir
 
#else
 
	_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;
 
#endif
 

	
 
	ScanForTarFiles();
 
}
 
#endif /* defined(WIN32) || defined(WINCE) */
 

	
 
@@ -952,6 +950,8 @@ void DeterminePaths(const char *exe)
 

	
 
	free(save_dir);
 
	free(autosave_dir);
 

	
 
	ScanForTarFiles();
 
}
 

	
 
/**
src/win32.cpp
Show inline comments
 
@@ -1045,7 +1045,6 @@ char *getcwd(char *buf, size_t size)
 

	
 
void DetermineBasePaths(const char *exe)
 
{
 
	extern void ScanForTarFiles();
 
	char tmp[MAX_PATH];
 
	TCHAR path[MAX_PATH];
 
#ifdef WITH_PERSONAL_DIR
 
@@ -1091,8 +1090,6 @@ void DetermineBasePaths(const char *exe)
 

	
 
	_searchpaths[SP_INSTALLATION_DIR]       = NULL;
 
	_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;
 

	
 
	ScanForTarFiles();
 
}
 

	
 
/**
0 comments (0 inline, 0 general)