From 42cffcbe624df424e08d443e8de0e2e3d23438e9 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Sat, 9 Dec 2023 20:49:30 -0400 Subject: [PATCH] Fix fallback to pif.json if included - pif.json is only to be used in building the module if at some point in the future it's safe to include pif.json in the module zip again - custom.pif.json is still the correct name to use for retaining the custom file through a module update --- app/src/main/cpp/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/main.cpp b/app/src/main/cpp/main.cpp index 142273b..e951f5d 100644 --- a/app/src/main/cpp/main.cpp +++ b/app/src/main/cpp/main.cpp @@ -251,7 +251,7 @@ static void companion(int fd) { FILE *json = fopen(CUSTOM_JSON_FILE_PATH, "r"); if (!json) - FILE *json = fopen(JSON_FILE_PATH, "r"); + json = fopen(JSON_FILE_PATH, "r"); if (json) { fseek(json, 0, SEEK_END);