Change perform_reset() to ssnes_game_reset() to better advertise itself

as a public function.
This commit is contained in:
Themaister 2012-02-02 20:39:28 +01:00
parent 15bc0e0813
commit e3a2ab0347
3 changed files with 4 additions and 4 deletions

View File

@ -392,7 +392,7 @@ void config_set_defaults(void);
bool config_load_file(const char *path); bool config_load_file(const char *path);
#endif #endif
void perform_reset(void); void ssnes_game_reset(void);
void ssnes_main_clear_state(void); void ssnes_main_clear_state(void);
int ssnes_main_init(int argc, char *argv[]); int ssnes_main_init(int argc, char *argv[]);
bool ssnes_main_iterate(void); bool ssnes_main_iterate(void);

View File

@ -588,7 +588,7 @@ static void ingame_menu(void)
ingame_menu_item = 0; ingame_menu_item = 0;
g_console.ingame_menu_enable = false; g_console.ingame_menu_enable = false;
g_console.mode_switch = MODE_EMULATION; g_console.mode_switch = MODE_EMULATION;
perform_reset(); ssnes_game_reset();
} }
ingame_menu_reset_entry_colors (ingame_menu_item); ingame_menu_reset_entry_colors (ingame_menu_item);
strcpy(comment, "Press 'CROSS' to reset the game."); strcpy(comment, "Press 'CROSS' to reset the game.");

View File

@ -1847,7 +1847,7 @@ static void check_oneshot(void)
old_rewind_state = new_rewind_state; old_rewind_state = new_rewind_state;
} }
void perform_reset(void) void ssnes_game_reset(void)
{ {
SSNES_LOG("Resetting game!\n"); SSNES_LOG("Resetting game!\n");
msg_queue_clear(g_extern.msg_queue); msg_queue_clear(g_extern.msg_queue);
@ -1861,7 +1861,7 @@ static void check_reset(void)
static bool old_state = false; static bool old_state = false;
bool new_state = driver.input->key_pressed(driver.input_data, SSNES_RESET); bool new_state = driver.input->key_pressed(driver.input_data, SSNES_RESET);
if (new_state && !old_state) if (new_state && !old_state)
perform_reset(); ssnes_game_reset();
old_state = new_state; old_state = new_state;
} }