win32: Readd version to title string.

This commit is contained in:
Brandon Wright 2019-02-19 14:26:48 -06:00
parent 34970d3e2a
commit 504be0917b
2 changed files with 9 additions and 12 deletions

View File

@ -28,14 +28,12 @@ static const int APU_DENOMINATOR_PAL = 709379;
// for use with SoundSync, multiplied by 2, for left and right samples. // for use with SoundSync, multiplied by 2, for left and right samples.
static const int MINIMUM_BUFFER_SIZE = 550 * 2; static const int MINIMUM_BUFFER_SIZE = 550 * 2;
namespace SNES namespace SNES {
{
#include "bapu/dsp/blargg_endian.h" #include "bapu/dsp/blargg_endian.h"
CPU cpu; CPU cpu;
} // namespace SNES } // namespace SNES
namespace spc namespace spc {
{
static apu_callback callback = NULL; static apu_callback callback = NULL;
static void *callback_data = NULL; static void *callback_data = NULL;
@ -57,8 +55,7 @@ static uint32 ratio_denominator = APU_DENOMINATOR_NTSC;
static double dynamic_rate_multiplier = 1.0; static double dynamic_rate_multiplier = 1.0;
} // namespace spc } // namespace spc
namespace msu namespace msu {
{
// Always 16-bit, Stereo; 1.5x dsp buffer to never overflow // Always 16-bit, Stereo; 1.5x dsp buffer to never overflow
static Resampler *resampler = NULL; static Resampler *resampler = NULL;
static std::vector<int16> resample_buffer; static std::vector<int16> resample_buffer;

View File

@ -684,15 +684,15 @@ static void CenterCursor()
void S9xRestoreWindowTitle () void S9xRestoreWindowTitle ()
{ {
TCHAR buf [100]; TCHAR buf [1024];
if (Memory.ROMFilename[0]) if (Memory.ROMFilename[0])
{ {
char drive[_MAX_DRIVE + 1], dir[_MAX_DIR + 1], def[_MAX_FNAME + 1], ext[_MAX_EXT + 1]; char def[_MAX_FNAME]];
_splitpath(Memory.ROMFilename, drive, dir, def, ext); _splitpath(Memory.ROMFilename, NULL, NULL def, NULL);
_stprintf(buf, TEXT("%s - %s"), (wchar_t *)Utf8ToWide(def), WINDOW_TITLE); _stprintf(buf, TEXT("%s - %s %s"), (wchar_t *)Utf8ToWide(def), WINDOW_TITLE, TEXT(VERSION));
} }
else else
_stprintf(buf, WINDOW_TITLE); _stprintf(buf, TEXT("%s %s"), WINDOW_TITLE, TEXT(VERSION));
SetWindowText (GUI.hWnd, buf); SetWindowText (GUI.hWnd, buf);
} }
@ -2604,7 +2604,7 @@ BOOL WinInit( HINSTANCE hInstance)
#endif #endif
TCHAR buf [100]; TCHAR buf [100];
_stprintf (buf, WINDOW_TITLE); _stprintf(buf, TEXT("%s %s"), WINDOW_TITLE, TEXT(VERSION));
DWORD dwExStyle; DWORD dwExStyle;
DWORD dwStyle; DWORD dwStyle;