SString SharedUtil::GetDriveNameWithNotEnoughSpace( uint uiResourcesPathMinMB, uint uiDataPathMinMB ) { if ( GetPathFreeSpaceMB( GetMTASABaseDir() ) < uiResourcesPathMinMB ) return GetPathDriveName( GetMTASABaseDir() ); if ( GetPathFreeSpaceMB( GetSystemCommonAppDataPath() ) < uiDataPathMinMB ) return GetPathDriveName( GetSystemCommonAppDataPath() ); return ""; }
SString SharedUtil::GetDriveNameWithNotEnoughSpace(uint uiResourcesPathMinMB, uint uiDataPathMinMB) { SString strFileCachePath = GetCommonRegistryValue("", "File Cache Path"); if (!strFileCachePath.empty() && DirectoryExists(PathJoin(strFileCachePath, "resources"))) if (GetPathFreeSpaceMB(strFileCachePath) < uiResourcesPathMinMB) return GetPathDriveName(strFileCachePath); if (GetPathFreeSpaceMB(GetMTASABaseDir()) < uiResourcesPathMinMB) return GetPathDriveName(GetMTASABaseDir()); if (GetPathFreeSpaceMB(GetSystemCommonAppDataPath()) < uiDataPathMinMB) return GetPathDriveName(GetSystemCommonAppDataPath()); return ""; }
SString SharedUtil::GetMTADataPathCommon ( void ) { return PathJoin ( GetSystemCommonAppDataPath(), "MTA San Andreas All", "Common" ); }
SString SharedUtil::GetMTADataPath ( void ) { return PathJoin ( GetSystemCommonAppDataPath(), "MTA San Andreas All", GetMajorVersionString () ); }
SString SharedUtil::GetMTADataPathCommon(void) { return PathJoin(GetSystemCommonAppDataPath(), GetProductCommonDataDir(), "Common"); }
SString SharedUtil::GetMTADataPath(void) { return PathJoin(GetSystemCommonAppDataPath(), GetProductCommonDataDir(), GetMajorVersionString()); }