Fixed: BLOAD now prints path & file, if can't load.

This commit is contained in:
mpohoreski 2006-06-28 13:39:44 +00:00
parent b4d5b8ebd7
commit 618edf99dd

View File

@ -4086,7 +4086,13 @@ Update_t CmdMemoryLoad (int nArgs)
}
else
{
ConsoleBufferPush( TEXT( "Error: Bad filename." ) );
ConsoleBufferPush( TEXT( "ERROR: Bad filename" ) );
TCHAR sPath[ MAX_PATH + 8 ] = "Path: ";
_tcscat( sPath, g_sCurrentDir );
ConsoleBufferPush( sPath );
TCHAR sFile[ MAX_PATH + 8 ] = "File: ";
_tcscat( sFile, g_sMemoryLoadSaveFileName );
ConsoleBufferPush( sFile );
}
delete [] pMemory;
@ -4200,7 +4206,6 @@ Update_t CmdMemorySave (int nArgs)
*pDst++ = *pSrc++;
}
FILE *hFile = fopen( sLoadSaveFilePath, "rb" );
if (hFile)
{