Skip to content

Commit

Permalink
Fix fallback to pif.json if included
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
osm0sis authored Dec 10, 2023
1 parent 9cd7ab3 commit 42cffcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42cffcb

Please sign in to comment.