File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,17 @@ namespace
6666 }
6767 }
6868
69- throw std::runtime_error (" Cannot found the resource path: " + target);
69+ // this is now used only for g_sProgramDir
70+ // which only matters for Debug Symbols and Printer Filename
71+ // let's be tolerant and use cwd
72+
73+ char szFilename[MAX_PATH];
74+ if (GetCurrentDirectory (sizeof (szFilename), szFilename))
75+ {
76+ return std::string (szFilename) + PATH_SEPARATOR;
77+ }
78+
79+ throw std::runtime_error (" Cannot find the resource path for: " + target);
7080 }
7181
7282}
Original file line number Diff line number Diff line change 1212#include " CardManager.h"
1313#include " Log.h"
1414#include " Utilities.h"
15- #include " SoundCore .h"
15+ #include " Keyboard .h"
1616#include " CPU.h"
1717#include " Riff.h"
1818#include " SaveState.h"
@@ -117,6 +117,7 @@ void InitialiseEmulator(const AppMode_e mode)
117117 Snapshot_Startup ();
118118
119119 DebugInitialize ();
120+ KeybReset ();
120121}
121122
122123void DestroyEmulator ()
Original file line number Diff line number Diff line change @@ -71,4 +71,5 @@ HANDLE CreateFile(LPCTSTR lpFileName,
7171
7272DWORD GetFileSize (HANDLE hFile , LPDWORD lpFileSizeHigh );
7373
74+ // non "/" terminated
7475DWORD GetCurrentDirectory (DWORD , char * );
You can’t perform that action at this time.
0 commit comments