From 552412f33b3d76c52830b2b6d77218f77f43a831 Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Wed, 28 Jun 2006 13:39:44 +0000 Subject: [PATCH] Fixed: BLOAD now prints path & file, if can't load. --- source/Debug.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/Debug.cpp b/source/Debug.cpp index 9b0ae330..da3552ef 100644 --- a/source/Debug.cpp +++ b/source/Debug.cpp @@ -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) {