Fixed error: class idLocalUserWin has no member named StorageSizeAvailable

This commit is contained in:
Robert Beckebans 2012-12-20 02:38:01 +01:00
parent 6b918aef86
commit 731428164f

View file

@ -136,6 +136,8 @@ int idSaveGameThread::Save()
} }
} }
// RB: disabled savegame and profile storage checks, because it fails sometimes without any clear reason
/*
// Inform user about size required if necessary // Inform user about size required if necessary
if( requiredSizeBytes > 0 && !callback->cancelled ) if( requiredSizeBytes > 0 && !callback->cancelled )
{ {
@ -147,7 +149,7 @@ int idSaveGameThread::Save()
directory += "\\"; // so it doesn't think the last part is a file and ignores in the directory creation directory += "\\"; // so it doesn't think the last part is a file and ignores in the directory creation
fileSystem->CreateOSPath( directory ); // we can't actually check FileExists in production builds, so just try to create it fileSystem->CreateOSPath( directory ); // we can't actually check FileExists in production builds, so just try to create it
user->StorageSizeAvailable( requiredSizeBytes, callback->requiredSpaceInBytes ); user->StorageSizeAvailable( requiredSizeBytes, callback->requiredSpaceInBytes );
if( callback->requiredSpaceInBytes > 0 ) if( callback->requiredSpaceInBytes > 0 )
{ {
callback->errorCode = SAVEGAME_E_INSUFFICIENT_ROOM; callback->errorCode = SAVEGAME_E_INSUFFICIENT_ROOM;
@ -156,6 +158,8 @@ int idSaveGameThread::Save()
} }
} }
} }
*/
// RB end
// Delete all previous files if needed // Delete all previous files if needed
// ALL THE FILES RIGHT NOW---- could use pattern later... // ALL THE FILES RIGHT NOW---- could use pattern later...