src/resobjects.cpp
// Reload: our function for setting the resource this object contains up,
// when it's already loaded, but needs to be reloaded.

our function for setting the resource this object contains up,
when it's already loaded, but needs to be reloaded.
our function for setting the resource this object contains up when it ' s already loaded but needs to be reloaded .
bool graphicResourceClass::reload()
{
	if (!isLoaded()) return false;
	if (!needsToBeReloaded()) return true;
	if (!surface.restore()) return true;
	if (!rawLoad()) return false;
	return true;
}
bool graphicResourceClass :: reload ( ) { if ( ! isLoaded ( ) ) return false ; if ( ! needsToBeReloaded ( ) ) return true ; if ( ! surface . restore ( ) ) return true ; if ( ! rawLoad ( ) ) return false ; return true ; }
Reload: our function for setting the resource this object contains up,
when it's already loaded, but needs to be reloaded.
Reload : our function for setting the resource this object contains up when it ' s already loaded but needs to be reloaded .
// if the surface wasn't loaded before, return an error code
 // don't ever bother reloading the surface, if it's not been lost
 // at all
 // If the surface can't be restored, it's an error, but not an
 // important one, as it only indicates that's not the time for
 // restoring the surface yet, try again later. So we return our
 // "ok" error code, true, meaning it's all ok for us.
 // Load the surface itself, and check there aren't errors.
 // all ok!
