Skip to content

Commit

Permalink
upd hangmangame
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Jan 11, 2024
1 parent 96cb4c0 commit 16e2482
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion non_catalog_apps/hangman_game/files/english.bolk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ english.dict
41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a
Okay
You won!
You loose!
You lose!
6 changes: 3 additions & 3 deletions non_catalog_apps/hangman_game/helpers/hangman.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void hangman_render_callback(Canvas* canvas, void* ctx) {

if(app->eog != HangmanGameOn) {
if(app->eog == HangmanGameLoose) {
hangman_text_window(canvas, app->lang->message_ok, app->lang->message_loose);
hangman_text_window(canvas, app->lang->message_ok, app->lang->message_lose);
} else {
hangman_text_window(canvas, app->lang->message_ok, app->lang->message_won);
}
Expand Down Expand Up @@ -327,7 +327,7 @@ HangmanLangConfig* hangman_load_config(char* meta_file) {

config->message_ok = hangman_read_str(stream);
config->message_won = hangman_read_str(stream);
config->message_loose = hangman_read_str(stream);
config->message_lose = hangman_read_str(stream);

furi_string_free(line);
file_stream_close(stream);
Expand Down Expand Up @@ -389,7 +389,7 @@ void hangman_app_free(HangmanApp** app) {
if((*app)->lang != NULL) {
free((*app)->lang->dict_file);
free((*app)->lang->message_ok);
free((*app)->lang->message_loose);
free((*app)->lang->message_lose);
free((*app)->lang->message_won);
free((*app)->lang);
}
Expand Down
2 changes: 1 addition & 1 deletion non_catalog_apps/hangman_game/helpers/hangman.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef struct {
uint8_t keyboard_rows;
uint8_t word_letters_gap;
uint16_t letters[HANGMAN_MAX_ALP_SIZE];
char *message_ok, *message_won, *message_loose;
char *message_ok, *message_won, *message_lose;
} HangmanLangConfig;

typedef struct {
Expand Down

0 comments on commit 16e2482

Please sign in to comment.