mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 01:18:35 -07:00
Temporarily backport app updates from apps repo
This commit is contained in:
@@ -6,12 +6,13 @@ App(
|
||||
cdefines=["APP_ROOTS_OF_LIFE_GAME"],
|
||||
requires=["gui"],
|
||||
stack_size=1 * 1024,
|
||||
order=30,
|
||||
fap_icon="roots_of_life_10px.png",
|
||||
fap_category="Games",
|
||||
fap_icon_assets="images",
|
||||
fap_icon_assets_symbol="roots_of_life_game",
|
||||
fap_author="@Xorboo",
|
||||
fap_weburl="https://github.com/Xorboo/root-of-life",
|
||||
fap_version="1.0",
|
||||
fap_version="1.1",
|
||||
fap_description="A zen-puzzle game for FlipperZero, puzzle made on GlobalGameJam23 (theme: Roots)",
|
||||
)
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <notification/notification_messages.h>
|
||||
|
||||
#include "roots_of_life_game_icons.h"
|
||||
#include <assets_icons.h>
|
||||
|
||||
#define TAG "RootsOfLife"
|
||||
|
||||
@@ -85,6 +84,7 @@ typedef struct {
|
||||
|
||||
int rerolls;
|
||||
int score;
|
||||
|
||||
FuriMutex* mutex;
|
||||
} GameState;
|
||||
|
||||
@@ -730,8 +730,8 @@ int32_t roots_of_life_game_app(void* p) {
|
||||
}
|
||||
}
|
||||
|
||||
view_port_update(view_port);
|
||||
furi_mutex_release(state->mutex);
|
||||
view_port_update(view_port);
|
||||
}
|
||||
|
||||
furi_timer_free(timer);
|
||||
@@ -741,11 +741,12 @@ int32_t roots_of_life_game_app(void* p) {
|
||||
furi_record_close(RECORD_NOTIFICATION);
|
||||
view_port_free(view_port);
|
||||
furi_mutex_free(state->mutex);
|
||||
|
||||
free_and_exit:
|
||||
furi_message_queue_free(event_queue);
|
||||
//FURI_LOG_D(TAG, "Quitting game...");
|
||||
game_state_free(state);
|
||||
free(state);
|
||||
furi_message_queue_free(event_queue);
|
||||
|
||||
return return_code;
|
||||
}
|
||||
Reference in New Issue
Block a user