#include "game_info.h" #include #include "char_lcd.h" // static char game_state[GAME_STATE_MAX_LEN+1] = " "; static char game_state[GAME_STATE_MAX_LEN+1] = "MENU "; void set_game_state(char* new_state) { snprintf(game_state, sizeof(game_state), "%-5s", new_state); } void reset_game_state() { for (int i = 0; i < GAME_STATE_MAX_LEN; i++) { game_state[i] = '\0'; } game_state[GAME_STATE_MAX_LEN] = '\0'; } void lcd_print_header_step() { if (!lcd_header_enabled()) return; lcd_print(10, 0, game_state); }