DungeonCrawl
|
Implementation of the save menu. More...
#include "save_menu.h"
#include "../common.h"
#include "../database/database.h"
#include "../database/game/gamestate_database.h"
#include "../io/input/input_handler.h"
#include "../io/output/common/output_handler.h"
#include "../local/local_handler.h"
#include "local/save_menu_local.h"
#include "src/menu/menu.h"
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
Go to the source code of this file.
Functions | |
int | init_save_menu () |
Initialize the save menu with the needed data. | |
int | get_selected_save_file_id (void) |
Get the ID of the save file selected by the user. | |
const char * | get_save_name (void) |
Get the name of the latest save entered by the user. | |
menu_result_t | show_save_game_menu (void) |
Show save game interface to get save name from user. | |
menu_result_t | show_load_game_menu (bool game_in_progress) |
Show load game interface to select a save file. | |
void | shutdown_save_menu (void) |
Shuts down the save menu and frees associated data. |
Variables | |
int | selected_save_file_id = -1 |
char | last_save_name [50] = {0} |
Implementation of the save menu.
Definition in file save_menu.c.
const char * get_save_name | ( | void | ) |
Get the name of the latest save entered by the user.
Definition at line 44 of file save_menu.c.
int get_selected_save_file_id | ( | void | ) |
Get the ID of the save file selected by the user.
Definition at line 40 of file save_menu.c.
int init_save_menu | ( | void | ) |
Initialize the save menu with the needed data.
Definition at line 24 of file save_menu.c.
menu_result_t show_load_game_menu | ( | bool | game_in_progress | ) |
Show load game interface to select a save file.
game_in_progress | indicates whether there's an active game that might need confirmation to discard |
Definition at line 82 of file save_menu.c.
menu_result_t show_save_game_menu | ( | void | ) |
Show save game interface to get save name from user.
Definition at line 51 of file save_menu.c.
void shutdown_save_menu | ( | void | ) |
Shuts down the save menu and frees associated data.
Definition at line 209 of file save_menu.c.
char last_save_name[50] = {0} |
Definition at line 22 of file save_menu.c.
int selected_save_file_id = -1 |
Definition at line 21 of file save_menu.c.