From fc243eaa0edc61c521819c5a26cf0f155d3f3af0 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 17 Jul 2023 23:09:41 +0100 Subject: [PATCH] Asteroids can use APP_DATA_PATH() again --- applications/external/asteroids/app.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/applications/external/asteroids/app.c b/applications/external/asteroids/app.c index cd2f50357..fa116a3cd 100644 --- a/applications/external/asteroids/app.c +++ b/applications/external/asteroids/app.c @@ -28,9 +28,7 @@ #define MAXPOWERUPS 3 /* Max powerups allowed on screen */ #define POWERUPSTTL 400 /* Max powerup time to live, in ticks. */ #define SHIP_HIT_ANIMATION_LEN 15 -// Tick runs in thread, cant use APP_DATA_PATH() -#define SAVING_DIRECTORY EXT_PATH("apps_data/asteroids") -#define SAVING_FILENAME SAVING_DIRECTORY "/game_asteroids.save" +#define SAVING_FILENAME APP_DATA_PATH("game_asteroids.save") #ifndef PI #define PI 3.14159265358979f #endif @@ -1147,7 +1145,6 @@ void game_tick(void* ctx) { bool load_game(AsteroidsApp* app) { Storage* storage = furi_record_open(RECORD_STORAGE); - storage_common_mkdir(storage, SAVING_DIRECTORY); storage_common_migrate(storage, EXT_PATH("apps/Games/game_asteroids.save"), SAVING_FILENAME); File* file = storage_file_alloc(storage);