Ejemplo n.º 1
0
SString SharedUtil::GetDriveNameWithNotEnoughSpace( uint uiResourcesPathMinMB, uint uiDataPathMinMB )
{
    if ( GetPathFreeSpaceMB( GetMTASABaseDir() ) < uiResourcesPathMinMB )
        return GetPathDriveName( GetMTASABaseDir() );
    if ( GetPathFreeSpaceMB( GetSystemCommonAppDataPath() ) < uiDataPathMinMB )
        return GetPathDriveName( GetSystemCommonAppDataPath() );
   return ""; 
}
Ejemplo n.º 2
0
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 "";
}
Ejemplo n.º 3
0
SString SharedUtil::GetMTADataPathCommon ( void )
{
    return PathJoin ( GetSystemCommonAppDataPath(), "MTA San Andreas All", "Common" );
}
Ejemplo n.º 4
0
SString SharedUtil::GetMTADataPath ( void )
{
    return PathJoin ( GetSystemCommonAppDataPath(), "MTA San Andreas All", GetMajorVersionString () );
}
Ejemplo n.º 5
0
SString SharedUtil::GetMTADataPathCommon(void)
{
    return PathJoin(GetSystemCommonAppDataPath(), GetProductCommonDataDir(), "Common");
}
Ejemplo n.º 6
0
SString SharedUtil::GetMTADataPath(void)
{
    return PathJoin(GetSystemCommonAppDataPath(), GetProductCommonDataDir(), GetMajorVersionString());
}