src/win32.cpp
branchNewGRF_ports
changeset 6870 ca3fd1fbe311
parent 6868 7eb395287b3d
child 6871 5a9dc001e1ad
equal deleted inserted replaced
6869:76282d3b748d 6870:ca3fd1fbe311
  1029 }
  1029 }
  1030 
  1030 
  1031 
  1031 
  1032 void DetermineBasePaths(const char *exe)
  1032 void DetermineBasePaths(const char *exe)
  1033 {
  1033 {
       
  1034 	extern void ScanForTarFiles();
  1034 	char tmp[MAX_PATH];
  1035 	char tmp[MAX_PATH];
  1035 	TCHAR path[MAX_PATH];
  1036 	TCHAR path[MAX_PATH];
  1036 #ifdef WITH_PERSONAL_DIR
  1037 #ifdef WITH_PERSONAL_DIR
  1037 	SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, path);
  1038 	SHGetFolderPath(NULL, CSIDL_PERSONAL, NULL, SHGFP_TYPE_CURRENT, path);
  1038 	strncpy(tmp, WIDE_TO_MB_BUFFER(path, tmp, lengthof(tmp)), lengthof(tmp));
  1039 	strncpy(tmp, WIDE_TO_MB_BUFFER(path, tmp, lengthof(tmp)), lengthof(tmp));
  1074 		}
  1075 		}
  1075 	}
  1076 	}
  1076 
  1077 
  1077 	_searchpaths[SP_INSTALLATION_DIR]       = NULL;
  1078 	_searchpaths[SP_INSTALLATION_DIR]       = NULL;
  1078 	_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;
  1079 	_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;
       
  1080 
       
  1081 	ScanForTarFiles();
  1079 }
  1082 }
  1080 
  1083 
  1081 /**
  1084 /**
  1082  * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard
  1085  * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard
  1083  * and append this up to the maximum length (either absolute or screenlength). If maxlength
  1086  * and append this up to the maximum length (either absolute or screenlength). If maxlength