ref: d947de563534f7690620c6b3b6934a3aa1fdec73
parent: 1279ee85e49ea373676d707cc77a499a793175c3
author: Snesrev <[email protected]>
date: Sat Sep 10 12:33:52 EDT 2022
Change title bar text (Fixes #68)
--- a/main.c
+++ b/main.c
@@ -23,13 +23,7 @@
extern Dsp *GetDspForRendering();
extern Snes *g_snes;
extern uint8 g_emulated_ram[0x20000];
-bool g_run_without_emu = false;
-static int g_input1_state;
-static bool g_display_perf;
-static int g_curr_fps;
-static int g_ppu_render_flags = 0;
-
void PatchRom(uint8 *rom);
void SetSnes(Snes *snes);
void RunAudioPlayer();
@@ -58,6 +52,7 @@
kDefaultSamples = 2048,
};
+static const char kWindowTitle[] = "The Legend of Zelda: A Link to the Past";
static uint32 g_win_flags = SDL_WINDOW_RESIZABLE;
static SDL_Window *g_window;
@@ -66,7 +61,13 @@
static uint8 g_current_zoom;
static int g_samples_per_block;
static uint8 g_gamepad_buttons;
+static int g_input1_state;
+static bool g_display_perf;
+static int g_curr_fps;
+static int g_ppu_render_flags = 0;
+bool g_run_without_emu = false;
+
void NORETURN Die(const char *error) {
fprintf(stderr, "Error: %s\n", error);
exit(1);
@@ -189,7 +190,7 @@
printf("Failed to init SDL: %s\n", SDL_GetError());
return 1;
}
- SDL_Window* window = SDL_CreateWindow("Zelda3", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, kRenderWidth, kRenderHeight, g_win_flags);
+ SDL_Window* window = SDL_CreateWindow(kWindowTitle, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, kRenderWidth, kRenderHeight, g_win_flags);
if(window == NULL) {
printf("Failed to create window: %s\n", SDL_GetError());
return 1;