fix linux build (probably)
This commit is contained in:
parent
f14321113a
commit
e72202f3b8
|
@ -277,7 +277,7 @@ public:
|
|||
|
||||
// indicator for the open in archive dialog that if the load was canceled by the user.
|
||||
// TODO: Since I can't think of a better way to indicate it, hope someone could imporve it.
|
||||
bool archiveManuallyCanceled;
|
||||
extern bool archiveManuallyCanceled;
|
||||
|
||||
static BOOL CALLBACK ArchiveFileSelectorCallback(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
|
|
@ -400,6 +400,7 @@ int FDSLoad(const char *name, FCEUFILE *fp);
|
|||
int NSFLoad(const char *name, FCEUFILE *fp);
|
||||
|
||||
//char lastLoadedGameName [2048] = {0,}; // hack for movie WRAM clearing on record from poweron
|
||||
bool archiveManuallyCanceled;
|
||||
|
||||
//name should be UTF-8, hopefully, or else there may be trouble
|
||||
FCEUGI *FCEUI_LoadGameVirtual(const char *name, int OverwriteVidMode, bool silent)
|
||||
|
@ -416,7 +417,6 @@ FCEUGI *FCEUI_LoadGameVirtual(const char *name, int OverwriteVidMode, bool silen
|
|||
|
||||
if (!fp)
|
||||
{
|
||||
extern bool archiveManuallyCanceled;
|
||||
// Although !fp, if the operation was canceled from archive select dialog box, don't show the error message;
|
||||
if (!silent && !archiveManuallyCanceled)
|
||||
FCEU_PrintError("´ò¿ª \"%s\" ´íÎó£¡", name);
|
||||
|
|
Loading…
Reference in New Issue