mirror of https://github.com/snes9xgit/snes9x.git
Snes9x, not Snes9X
Win32 title will display "ROM base name - Snes9x"
This commit is contained in:
parent
191b82f14d
commit
6757f93830
|
@ -1,8 +1,8 @@
|
||||||
These are all the known ports of Snes9X to other consoles/handhelds/etc as of
|
These are all the known ports of Snes9x to other consoles/handhelds/etc as of
|
||||||
2011/08/28. They are all supported and welcomed on the official Snes9X site.
|
2011/08/28. They are all supported and welcomed on the official Snes9x site.
|
||||||
|
|
||||||
**If you know of anyone who is currently working on a port of Snes9X, or if you
|
**If you know of anyone who is currently working on a port of Snes9x, or if you
|
||||||
have some interest in making a port, please have them go to the Snes9X forums
|
have some interest in making a port, please have them go to the Snes9x forums
|
||||||
(http://www.snes9x.com/phpbb2/) and have them register an account there. After
|
(http://www.snes9x.com/phpbb2/) and have them register an account there. After
|
||||||
that, speak to Ryan and/or Jerremy so you can be let into the devs area and the
|
that, speak to Ryan and/or Jerremy so you can be let into the devs area and the
|
||||||
git so you can have access to the most current code, collaborate with the other
|
git so you can have access to the most current code, collaborate with the other
|
||||||
|
@ -10,7 +10,7 @@ developers, make the port officialized, etc.**
|
||||||
|
|
||||||
Ports and how to get them running are as follows:
|
Ports and how to get them running are as follows:
|
||||||
|
|
||||||
*PSP Version of Snes9X*
|
*PSP Version of Snes9x*
|
||||||
Name: Snes9X Euphoria
|
Name: Snes9X Euphoria
|
||||||
Latest version: R5 Beta
|
Latest version: R5 Beta
|
||||||
Homepage/forum: http://code.google.com/p/snes9x-euphoria/
|
Homepage/forum: http://code.google.com/p/snes9x-euphoria/
|
||||||
|
@ -48,7 +48,7 @@ Note: as of right now, there is no one to maintain the PSP port; I am leaving
|
||||||
these instructions up just in case someone wants to take it over, and you can
|
these instructions up just in case someone wants to take it over, and you can
|
||||||
use these tips to get other homebrews going.
|
use these tips to get other homebrews going.
|
||||||
|
|
||||||
*Wii/Gamecube version of Snes9X*
|
*Wii/Gamecube version of Snes9x*
|
||||||
Name: Snes9X GX
|
Name: Snes9X GX
|
||||||
Latest Version: 4.2.8
|
Latest Version: 4.2.8
|
||||||
Homepage/forum: http://code.google.com/p/snes9x-gx
|
Homepage/forum: http://code.google.com/p/snes9x-gx
|
||||||
|
@ -74,7 +74,7 @@ installer from the Homebrew Channel, and you'll be good to go!
|
||||||
|
|
||||||
Gamecube: You might need a modchip.
|
Gamecube: You might need a modchip.
|
||||||
|
|
||||||
*Android and iOS (Apple iPhone/iPod Touch) version of Snes9X*
|
*Android and iOS (Apple iPhone/iPod Touch) version of Snes9x*
|
||||||
Name: Snes9X EX
|
Name: Snes9X EX
|
||||||
Latest Version: 1.4.2 (iOS); 1.4.7.1 (Android)
|
Latest Version: 1.4.2 (iOS); 1.4.7.1 (Android)
|
||||||
Homepage/forum: http://www.explusalpha.com/home/snes9x-ex
|
Homepage/forum: http://www.explusalpha.com/home/snes9x-ex
|
||||||
|
@ -101,7 +101,7 @@ Hint: a more detailed description of copying your ROMs/saves/etc over to the
|
||||||
iOS device can be found here:
|
iOS device can be found here:
|
||||||
http://snes9x.com/phpbb2/viewtopic.php?t=5107
|
http://snes9x.com/phpbb2/viewtopic.php?t=5107
|
||||||
|
|
||||||
*PS3 version of Snes9X*
|
*PS3 version of Snes9x*
|
||||||
Name: Snes9X PS3
|
Name: Snes9X PS3
|
||||||
Latest Version: 4.4.9
|
Latest Version: 4.4.9
|
||||||
Homepage/forum: https://code.google.com/p/snes9x-ps3/ (although for some
|
Homepage/forum: https://code.google.com/p/snes9x-ps3/ (although for some
|
||||||
|
@ -118,7 +118,7 @@ upgrade or downgrade your PS3’s firmware as needed). After that, it should be
|
||||||
as simple as copy the emulator, ROMs, saves, etc over to the PS3 and it should
|
as simple as copy the emulator, ROMs, saves, etc over to the PS3 and it should
|
||||||
work :)
|
work :)
|
||||||
|
|
||||||
*X-Box Version of Snes9X*
|
*X-Box Version of Snes9x*
|
||||||
Name: Snes9xbox
|
Name: Snes9xbox
|
||||||
Latest Version: V2 (V3 should be out soon)
|
Latest Version: V2 (V3 should be out soon)
|
||||||
Homepage/forum: http://forums.xbox-scene.com/index.php?showforum=96
|
Homepage/forum: http://forums.xbox-scene.com/index.php?showforum=96
|
||||||
|
@ -132,4 +132,4 @@ Really, it's not hard. Read the readme, and use a softmod or modchip and a
|
||||||
replacement dashboard. After that's installed, it should be as simple as
|
replacement dashboard. After that's installed, it should be as simple as
|
||||||
copying over the emulator, ROMs, saves, etc to the X-Box and it should work.
|
copying over the emulator, ROMs, saves, etc to the X-Box and it should work.
|
||||||
|
|
||||||
Updated most recently by: 2011/11/2 adventure_of_link
|
Updated most recently by: 2011/11/2 adventure_of_link
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Snes9X\n"
|
"Project-Id-Version: Snes9x\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-12-17 19:18-0600\n"
|
"POT-Creation-Date: 2018-12-17 19:18-0600\n"
|
||||||
"PO-Revision-Date: 2017-26-08 02:55-0300\n"
|
"PO-Revision-Date: 2017-26-08 02:55-0300\n"
|
||||||
|
|
|
@ -155,7 +155,7 @@ int Snes9xConfig::load_defaults ()
|
||||||
use_fences = false;
|
use_fences = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Snes9X Variables */
|
/* Snes9x Variables */
|
||||||
Settings.MouseMaster = true;
|
Settings.MouseMaster = true;
|
||||||
Settings.SuperScopeMaster = true;
|
Settings.SuperScopeMaster = true;
|
||||||
Settings.JustifierMaster = true;
|
Settings.JustifierMaster = true;
|
||||||
|
|
|
@ -149,7 +149,7 @@ up correctly?");
|
||||||
#ifdef NP_DEBUG
|
#ifdef NP_DEBUG
|
||||||
printf ("CLIENT: Trying to connect to server @%ld...\n", S9xGetMilliTime () - START);
|
printf ("CLIENT: Trying to connect to server @%ld...\n", S9xGetMilliTime () - START);
|
||||||
#endif
|
#endif
|
||||||
S9xNPSetAction ("Trying to connect to Snes9X server...");
|
S9xNPSetAction ("Trying to connect to Snes9x server...");
|
||||||
|
|
||||||
if (connect (NetPlay.Socket, (struct sockaddr *) &address, sizeof (address)) < 0)
|
if (connect (NetPlay.Socket, (struct sockaddr *) &address, sizeof (address)) < 0)
|
||||||
{
|
{
|
||||||
|
@ -162,7 +162,7 @@ up correctly?");
|
||||||
{
|
{
|
||||||
S9xNPSetError ("\
|
S9xNPSetError ("\
|
||||||
Connection to remote server socket refused:\n\n\
|
Connection to remote server socket refused:\n\n\
|
||||||
Is there actually a Snes9X NetPlay server running\n\
|
Is there actually a Snes9x NetPlay server running\n\
|
||||||
on the remote machine on this port?");
|
on the remote machine on this port?");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -251,7 +251,7 @@ on the remote machine on this port?");
|
||||||
if (data [0] != NP_VERSION)
|
if (data [0] != NP_VERSION)
|
||||||
{
|
{
|
||||||
S9xNPSetError ("\
|
S9xNPSetError ("\
|
||||||
The Snes9X NetPlay server implements a different\n\
|
The Snes9x NetPlay server implements a different\n\
|
||||||
version of the protocol. Disconnecting.");
|
version of the protocol. Disconnecting.");
|
||||||
delete[] data;
|
delete[] data;
|
||||||
S9xNPDisconnect ();
|
S9xNPDisconnect ();
|
||||||
|
@ -775,7 +775,7 @@ void S9xNPStepJoypadHistory ()
|
||||||
NetPlay.JoypadReadInd = (NetPlay.JoypadReadInd + 1) % NP_JOYPAD_HIST_SIZE;
|
NetPlay.JoypadReadInd = (NetPlay.JoypadReadInd + 1) % NP_JOYPAD_HIST_SIZE;
|
||||||
if (NetPlay.FrameCount != NetPlay.Frame [NetPlay.JoypadReadInd])
|
if (NetPlay.FrameCount != NetPlay.Frame [NetPlay.JoypadReadInd])
|
||||||
{
|
{
|
||||||
S9xNPSetWarning ("This Snes9X session may be out of sync with the server.");
|
S9xNPSetWarning ("This Snes9x session may be out of sync with the server.");
|
||||||
#ifdef NP_DEBUG
|
#ifdef NP_DEBUG
|
||||||
printf ("*** CLIENT: client out of sync with server (%d, %d) @%ld\n", NetPlay.FrameCount, NetPlay.Frame [NetPlay.JoypadReadInd], S9xGetMilliTime () - START);
|
printf ("*** CLIENT: client out of sync with server (%d, %d) @%ld\n", NetPlay.FrameCount, NetPlay.Frame [NetPlay.JoypadReadInd], S9xGetMilliTime () - START);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -70,7 +70,7 @@ bool CDirectDraw::Initialize (HWND hWnd)
|
||||||
if (!SetDisplayMode (GUI.FullscreenMode.width, GUI.FullscreenMode.height, max(GetFilterScale(GUI.Scale), GetFilterScale(GUI.ScaleHiRes)), GUI.FullscreenMode.depth, GUI.FullscreenMode.rate,
|
if (!SetDisplayMode (GUI.FullscreenMode.width, GUI.FullscreenMode.height, max(GetFilterScale(GUI.Scale), GetFilterScale(GUI.ScaleHiRes)), GUI.FullscreenMode.depth, GUI.FullscreenMode.rate,
|
||||||
TRUE, GUI.DoubleBuffered))
|
TRUE, GUI.DoubleBuffered))
|
||||||
{
|
{
|
||||||
MessageBox( GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9X - DirectDraw(7)"), MB_OK | MB_ICONSTOP);
|
MessageBox( GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9x - DirectDraw(7)"), MB_OK | MB_ICONSTOP);
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -596,7 +596,7 @@ bool CDirectDraw::SetFullscreen(bool fullscreen)
|
||||||
{
|
{
|
||||||
if (!SetDisplayMode (GUI.FullscreenMode.width, GUI.FullscreenMode.height, max(GetFilterScale(GUI.Scale), GetFilterScale(GUI.ScaleHiRes)), GUI.FullscreenMode.depth, GUI.FullscreenMode.rate, !fullscreen, GUI.DoubleBuffered))
|
if (!SetDisplayMode (GUI.FullscreenMode.width, GUI.FullscreenMode.height, max(GetFilterScale(GUI.Scale), GetFilterScale(GUI.ScaleHiRes)), GUI.FullscreenMode.depth, GUI.FullscreenMode.rate, !fullscreen, GUI.DoubleBuffered))
|
||||||
{
|
{
|
||||||
MessageBox( GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9X - DirectDraw(2)"), MB_OK | MB_ICONSTOP);
|
MessageBox( GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9x - DirectDraw(2)"), MB_OK | MB_ICONSTOP);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -819,12 +819,12 @@ BEGIN
|
||||||
BLOCK "080904b0"
|
BLOCK "080904b0"
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "http://www.snes9x.com"
|
VALUE "CompanyName", "http://www.snes9x.com"
|
||||||
VALUE "FileDescription", "Snes9X"
|
VALUE "FileDescription", "Snes9x"
|
||||||
VALUE "FileVersion", "1.58"
|
VALUE "FileVersion", "1.58"
|
||||||
VALUE "InternalName", "Snes9X"
|
VALUE "InternalName", "Snes9x"
|
||||||
VALUE "LegalCopyright", "Copyright 1996-2018"
|
VALUE "LegalCopyright", "Copyright 1996-2018"
|
||||||
VALUE "OriginalFilename", "Snes9X.exe"
|
VALUE "OriginalFilename", "Snes9x.exe"
|
||||||
VALUE "ProductName", "Snes9X SNES Emulator"
|
VALUE "ProductName", "Snes9x SNES Emulator"
|
||||||
VALUE "ProductVersion", "1.58"
|
VALUE "ProductVersion", "1.58"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
|
@ -826,7 +826,7 @@ void S9xDetectJoypads()
|
||||||
sizeof( JOYCAPS)) == JOYERR_NOERROR;
|
sizeof( JOYCAPS)) == JOYERR_NOERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitSnes9X( void)
|
void InitSnes9x( void)
|
||||||
{
|
{
|
||||||
#ifdef DEBUGGER
|
#ifdef DEBUGGER
|
||||||
// extern FILE *trace;
|
// extern FILE *trace;
|
||||||
|
|
|
@ -133,7 +133,7 @@ bool WinDisplayReset(void)
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
MessageBox (GUI.hWnd, Languages[ GUI.Language].errInitDD, TEXT("Snes9X - Display Failure"), MB_OK | MB_ICONSTOP);
|
MessageBox (GUI.hWnd, Languages[ GUI.Language].errInitDD, TEXT("Snes9x - Display Failure"), MB_OK | MB_ICONSTOP);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -420,7 +420,7 @@ void RestoreGUIDisplay ()
|
||||||
(GUI.FullscreenMode.width < 640 || GUI.FullscreenMode.height < 400) &&
|
(GUI.FullscreenMode.width < 640 || GUI.FullscreenMode.height < 400) &&
|
||||||
!DirectDraw.SetDisplayMode (640, 480, 1, 0, 60, !GUI.FullScreen, false))
|
!DirectDraw.SetDisplayMode (640, 480, 1, 0, 60, !GUI.FullScreen, false))
|
||||||
{
|
{
|
||||||
MessageBox (GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9X - DirectDraw(1)"), MB_OK | MB_ICONSTOP);
|
MessageBox (GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9x - DirectDraw(1)"), MB_OK | MB_ICONSTOP);
|
||||||
S9xClearPause (PAUSE_RESTORE_GUI);
|
S9xClearPause (PAUSE_RESTORE_GUI);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -437,7 +437,7 @@ void RestoreSNESDisplay ()
|
||||||
|
|
||||||
if (!DirectDraw.SetFullscreen(GUI.FullScreen))
|
if (!DirectDraw.SetFullscreen(GUI.FullScreen))
|
||||||
{
|
{
|
||||||
MessageBox (GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9X - DirectDraw(4)"), MB_OK | MB_ICONSTOP);
|
MessageBox (GUI.hWnd, Languages[ GUI.Language].errModeDD, TEXT("Snes9x - DirectDraw(4)"), MB_OK | MB_ICONSTOP);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
|
|
||||||
/* This is where all the GUI text strings will eventually end up */
|
/* This is where all the GUI text strings will eventually end up */
|
||||||
|
|
||||||
#define WINDOW_TITLE TEXT("Snes9X v%s for Windows")
|
#define WINDOW_TITLE TEXT("Snes9x")
|
||||||
|
|
||||||
// the windows registry is no longer used
|
// the windows registry is no longer used
|
||||||
//#define MY_REG_KEY "Software\\Emulators\\Snes9X"
|
//#define MY_REG_KEY "Software\\Emulators\\Snes9x"
|
||||||
//#define REG_KEY_VER "1.31"
|
//#define REG_KEY_VER "1.31"
|
||||||
|
|
||||||
#define DISCLAIMER_TEXT TEXT("Snes9X v%s for Windows.\r\n\
|
#define DISCLAIMER_TEXT TEXT("Snes9x v%s for Windows.\r\n\
|
||||||
(c) Copyright 1996 - 2002 Gary Henderson and Jerremy Koot (jkoot@snes9x.com)\r\n\
|
(c) Copyright 1996 - 2002 Gary Henderson and Jerremy Koot (jkoot@snes9x.com)\r\n\
|
||||||
(c) Copyright 2002 - 2004 Matthew Kendora\r\n\
|
(c) Copyright 2002 - 2004 Matthew Kendora\r\n\
|
||||||
(c) Copyright 2002 - 2005 Peter Bortas\r\n\
|
(c) Copyright 2002 - 2005 Peter Bortas\r\n\
|
||||||
|
@ -22,21 +22,21 @@
|
||||||
(c) Copyright 2006 - 2007 nitsuja\r\n\
|
(c) Copyright 2006 - 2007 nitsuja\r\n\
|
||||||
(c) Copyright 2009 - 2018 BearOso, OV2\r\n\r\n\
|
(c) Copyright 2009 - 2018 BearOso, OV2\r\n\r\n\
|
||||||
Windows Port Authors: Matthew Kendora, funkyass, nitsuja, Nach, blip, OV2.\r\n\r\n\
|
Windows Port Authors: Matthew Kendora, funkyass, nitsuja, Nach, blip, OV2.\r\n\r\n\
|
||||||
Snes9X is a Super Nintendo Entertainment System\r\n\
|
Snes9x is a Super Nintendo Entertainment System\r\n\
|
||||||
emulator that allows you to play most games designed\r\n\
|
emulator that allows you to play most games designed\r\n\
|
||||||
for the SNES on your PC.\r\n\r\n\
|
for the SNES on your PC.\r\n\r\n\
|
||||||
Please visit http://www.snes9x.com for\r\n\
|
Please visit http://www.snes9x.com for\r\n\
|
||||||
up-to-the-minute information and help on Snes9X.\r\n\r\n\
|
up-to-the-minute information and help on Snes9x.\r\n\r\n\
|
||||||
Nintendo is a trade mark.")
|
Nintendo is a trademark.")
|
||||||
|
|
||||||
|
|
||||||
#define APP_NAME TEXT("Snes9x")
|
#define APP_NAME TEXT("Snes9x")
|
||||||
// possible global strings
|
// possible global strings
|
||||||
#define SNES9X_INFO TEXT("Snes9x: Information")
|
#define SNES9X_INFO TEXT("Snes9x: Information")
|
||||||
#define SNES9X_WARN TEXT("Snes9x: WARNING!")
|
#define SNES9X_WARN TEXT("Snes9x: WARNING!")
|
||||||
#define SNES9X_DXS TEXT("Snes9X: DirectSound")
|
#define SNES9X_DXS TEXT("Snes9x: DirectSound")
|
||||||
#define SNES9X_SNDQ TEXT("Snes9X: Sound CPU Question")
|
#define SNES9X_SNDQ TEXT("Snes9x: Sound CPU Question")
|
||||||
#define SNES9X_NP_ERROR TEXT("Snes9X: NetPlay Error")
|
#define SNES9X_NP_ERROR TEXT("Snes9x: NetPlay Error")
|
||||||
#define BUTTON_OK TEXT("&OK")
|
#define BUTTON_OK TEXT("&OK")
|
||||||
#define BUTTON_CANCEL TEXT("&Cancel")
|
#define BUTTON_CANCEL TEXT("&Cancel")
|
||||||
|
|
||||||
|
|
|
@ -427,7 +427,7 @@ static uint32 FrameTimings[] = {
|
||||||
4000, 4000, 8333, 11667, 16667, 20000, 33333, 66667, 133333, 300000, 500000, 1000000, 1000000
|
4000, 4000, 8333, 11667, 16667, 20000, 33333, 66667, 133333, 300000, 500000, 1000000, 1000000
|
||||||
};
|
};
|
||||||
|
|
||||||
// Languages supported by Snes9X: Windows
|
// Languages supported by Snes9x: Windows
|
||||||
// 0 - English [Default]
|
// 0 - English [Default]
|
||||||
struct sLanguages Languages[] = {
|
struct sLanguages Languages[] = {
|
||||||
{ IDR_MENU_US,
|
{ IDR_MENU_US,
|
||||||
|
@ -435,7 +435,7 @@ struct sLanguages Languages[] = {
|
||||||
TEXT("DirectDraw failed to set the selected display mode!"),
|
TEXT("DirectDraw failed to set the selected display mode!"),
|
||||||
TEXT("DirectSound failed to initialize; no sound will be played."),
|
TEXT("DirectSound failed to initialize; no sound will be played."),
|
||||||
TEXT("These settings won't take effect until you restart the emulator."),
|
TEXT("These settings won't take effect until you restart the emulator."),
|
||||||
TEXT("The frame timer failed to initialize, please do NOT select the automatic framerate option or Snes9X will crash!")}
|
TEXT("The frame timer failed to initialize, please do NOT select the automatic framerate option or Snes9x will crash!")}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct OpenMovieParams
|
struct OpenMovieParams
|
||||||
|
@ -685,7 +685,15 @@ static void CenterCursor()
|
||||||
void S9xRestoreWindowTitle ()
|
void S9xRestoreWindowTitle ()
|
||||||
{
|
{
|
||||||
TCHAR buf [100];
|
TCHAR buf [100];
|
||||||
_stprintf (buf, WINDOW_TITLE, TEXT(VERSION));
|
if (Memory.ROMFilename[0])
|
||||||
|
{
|
||||||
|
char drive[_MAX_DRIVE + 1], dir[_MAX_DIR + 1], def[_MAX_FNAME + 1], ext[_MAX_EXT + 1];
|
||||||
|
_splitpath(Memory.ROMFilename, drive, dir, def, ext);
|
||||||
|
_stprintf(buf, TEXT("%s - %s"), (wchar_t *)Utf8ToWide(def), WINDOW_TITLE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
_stprintf(buf, WINDOW_TITLE);
|
||||||
|
|
||||||
SetWindowText (GUI.hWnd, buf);
|
SetWindowText (GUI.hWnd, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2569,7 +2577,7 @@ BOOL WinInit( HINSTANCE hInstance)
|
||||||
wndclass.hIconSm = NULL;
|
wndclass.hIconSm = NULL;
|
||||||
wndclass.hCursor = NULL;
|
wndclass.hCursor = NULL;
|
||||||
wndclass.lpszMenuName = NULL;
|
wndclass.lpszMenuName = NULL;
|
||||||
wndclass.lpszClassName = TEXT("Snes9X: WndClass");
|
wndclass.lpszClassName = TEXT("Snes9x: WndClass");
|
||||||
wndclass.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);
|
wndclass.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);
|
||||||
|
|
||||||
GUI.hInstance = hInstance;
|
GUI.hInstance = hInstance;
|
||||||
|
@ -2583,7 +2591,7 @@ BOOL WinInit( HINSTANCE hInstance)
|
||||||
GUI.hMenu = LoadMenu(GUI.hInstance, MAKEINTRESOURCE(IDR_MENU_US));
|
GUI.hMenu = LoadMenu(GUI.hInstance, MAKEINTRESOURCE(IDR_MENU_US));
|
||||||
if (GUI.hMenu == NULL)
|
if (GUI.hMenu == NULL)
|
||||||
{
|
{
|
||||||
MessageBox (NULL, TEXT("Failed to initialize the menu.\nThis could indicate a failure of your operating system;\ntry closing some other windows or programs, or restart your computer, before opening Snes9x again.\nOr, if you compiled this program yourself, ensure that Snes9x was built with the proper resource files."), TEXT("Snes9X - Menu Initialization Failure"), MB_OK | MB_ICONSTOP);
|
MessageBox (NULL, TEXT("Failed to initialize the menu.\nThis could indicate a failure of your operating system;\ntry closing some other windows or programs, or restart your computer, before opening Snes9x again.\nOr, if you compiled this program yourself, ensure that Snes9x was built with the proper resource files."), TEXT("Snes9x - Menu Initialization Failure"), MB_OK | MB_ICONSTOP);
|
||||||
// return FALSE; // disabled: try to function without the menu
|
// return FALSE; // disabled: try to function without the menu
|
||||||
}
|
}
|
||||||
#ifdef DEBUGGER
|
#ifdef DEBUGGER
|
||||||
|
@ -2596,7 +2604,7 @@ BOOL WinInit( HINSTANCE hInstance)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TCHAR buf [100];
|
TCHAR buf [100];
|
||||||
_stprintf (buf, WINDOW_TITLE, TEXT(VERSION));
|
_stprintf (buf, WINDOW_TITLE);
|
||||||
|
|
||||||
DWORD dwExStyle;
|
DWORD dwExStyle;
|
||||||
DWORD dwStyle;
|
DWORD dwStyle;
|
||||||
|
@ -2611,7 +2619,7 @@ BOOL WinInit( HINSTANCE hInstance)
|
||||||
AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);
|
AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);
|
||||||
if ((GUI.hWnd = CreateWindowEx (
|
if ((GUI.hWnd = CreateWindowEx (
|
||||||
dwExStyle,
|
dwExStyle,
|
||||||
TEXT("Snes9X: WndClass"),
|
TEXT("Snes9x: WndClass"),
|
||||||
buf,
|
buf,
|
||||||
WS_CLIPSIBLINGS |
|
WS_CLIPSIBLINGS |
|
||||||
WS_CLIPCHILDREN |
|
WS_CLIPCHILDREN |
|
||||||
|
@ -3269,8 +3277,8 @@ int WINAPI WinMain(
|
||||||
|
|
||||||
RestoreMainWinPos();
|
RestoreMainWinPos();
|
||||||
|
|
||||||
void InitSnes9X (void);
|
void InitSnes9x (void);
|
||||||
InitSnes9X ();
|
InitSnes9x ();
|
||||||
|
|
||||||
if(GUI.FullScreen) {
|
if(GUI.FullScreen) {
|
||||||
GUI.FullScreen = false;
|
GUI.FullScreen = false;
|
||||||
|
@ -3315,7 +3323,7 @@ int WINAPI WinMain(
|
||||||
|
|
||||||
if (GUI.hFrameTimer == 0)
|
if (GUI.hFrameTimer == 0)
|
||||||
{
|
{
|
||||||
MessageBox( GUI.hWnd, Languages[ GUI.Language].errFrameTimer, TEXT("Snes9X - Frame Timer"), MB_OK | MB_ICONINFORMATION);
|
MessageBox( GUI.hWnd, Languages[ GUI.Language].errFrameTimer, TEXT("Snes9x - Frame Timer"), MB_OK | MB_ICONINFORMATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rom_filename)
|
if (rom_filename)
|
||||||
|
@ -3635,8 +3643,8 @@ void CheckDirectoryIsWritable (const char *filename)
|
||||||
FILE *fs = fopen (filename, "w+");
|
FILE *fs = fopen (filename, "w+");
|
||||||
|
|
||||||
if (fs == NULL)
|
if (fs == NULL)
|
||||||
MessageBox (GUI.hWnd, TEXT("The folder where Snes9X saves emulated save RAM files and\ngame save positions (freeze files) is currently set to a\nread-only folder.\n\nIf you do not change the game save folder, Snes9X will be\nunable to save your progress in this game. Change the folder\nfrom the Settings Dialog available from the Options menu.\n\nThe default save folder is called Saves, if no value is set.\n"),
|
MessageBox (GUI.hWnd, TEXT("The folder where Snes9x saves emulated save RAM files and\ngame save positions (freeze files) is currently set to a\nread-only folder.\n\nIf you do not change the game save folder, Snes9x will be\nunable to save your progress in this game. Change the folder\nfrom the Settings Dialog available from the Options menu.\n\nThe default save folder is called Saves, if no value is set.\n"),
|
||||||
TEXT("Snes9X: Unable to save file warning"),
|
TEXT("Snes9x: Unable to save file warning"),
|
||||||
MB_OK | MB_ICONINFORMATION);
|
MB_OK | MB_ICONINFORMATION);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3988,6 +3996,7 @@ static bool LoadROM(const TCHAR *filename, const TCHAR *filename2 /*= NULL*/) {
|
||||||
GUI.CursorTimer = 60;
|
GUI.CursorTimer = 60;
|
||||||
}
|
}
|
||||||
Settings.Paused = false;
|
Settings.Paused = false;
|
||||||
|
S9xRestoreWindowTitle();
|
||||||
|
|
||||||
return !Settings.StopEmulation;
|
return !Settings.StopEmulation;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
\*****************************************************************************/
|
\*****************************************************************************/
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Snes9X: Win32 */
|
/* Snes9x: Win32 */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
#if !defined(SNES9X_H_INCLUDED)
|
#if !defined(SNES9X_H_INCLUDED)
|
||||||
#define SNES9X_H_INCLUDED
|
#define SNES9X_H_INCLUDED
|
||||||
|
|
Loading…
Reference in New Issue