#include "../common/emu.h"\r
#include "emu.h"\r
\r
+extern "C" char menuErrorMsg[];\r
\r
////////////////////////////////////////////////////////////////\r
//\r
CleanupStack::PushL(fileArray);\r
_LIT16(KDlgTitle, "Select a ROM file");\r
\r
- TPtrC8 text8((TUint8*) loadedRomFName);\r
+ TPtrC8 text8((TUint8*) rom_fname_loaded);\r
iCurrentConfig.iLastROMFile.Copy(text8);\r
\r
if( CQikSelectFileDlg::RunDlgLD( *mimeArray, *fileArray, &KDlgTitle, &iCurrentConfig.iLastROMFile) )\r
iROMLoaded = EFalse;\r
switch (res)\r
{\r
- case PicoErrRomOpenFailed:\r
- CEikonEnv::Static()->InfoWinL(_L("Error"), _L("Failed to open file."));\r
+ case PicoErrRomOpenFailed: {\r
+ TBuf<64> mErrorBuff;\r
+ TPtrC8 buff8((TUint8*) menuErrorMsg);\r
+ mErrorBuff.Copy(buff8);\r
+ CEikonEnv::Static()->InfoWinL(_L("Error"), mErrorBuff);\r
break;\r
+ }\r
\r
case PicoErrOutOfMem:\r
CEikonEnv::Static()->InfoWinL(_L("Error"), _L("Failed to allocate memory."));\r
break;\r
\r
- case PicoErrNotRom:\r
- CEikonEnv::Static()->InfoWinL(_L("Error"), _L("The file you selected is not a game ROM."));\r
- break;\r
-\r
- case PicoErrNoRomsInArchive:\r
- CEikonEnv::Static()->InfoWinL(_L("Error"), _L("No game ROMs found in zipfile."));\r
- break;\r
-\r
- case PicoErrUncomp:\r
- CEikonEnv::Static()->InfoWinL(_L("Error"), _L("Failed while unzipping ROM."));\r
- break;\r
-\r
case PicoErrEmuThread:\r
CEikonEnv::Static()->InfoWinL(_L("Error"), _L("Failed to create emulation thread. Try to restart this application."));\r
break;\r