From 618edf99dd4d51daaa7554e87cf31a7695f22c5d 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. --- AppleWin/source/Debug.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/AppleWin/source/Debug.cpp b/AppleWin/source/Debug.cpp index 9b0ae330..da3552ef 100644 --- a/AppleWin/source/Debug.cpp +++ b/AppleWin/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) {