relocated version.txt

This commit is contained in:
Shaun Inman 2023-02-16 22:36:41 -05:00
parent 467a66438b
commit bf431be48f
4 changed files with 5 additions and 8 deletions

View file

@ -29,6 +29,7 @@
#define SDCARD_PATH "/mnt/sdcard"
#define ROMS_PATH SDCARD_PATH "/Roms"
#define ROOT_SYSTEM_PATH SDCARD_PATH "/.system/"
#define SYSTEM_PATH SDCARD_PATH "/.system/" PLATFORM
#define RES_PATH SDCARD_PATH "/.system/res"
#define FONT_PATH RES_PATH "/BPreplayBold-unhinted.otf"

View file

@ -1335,7 +1335,7 @@ int main (int argc, char *argv[]) {
if (!version) {
// TODO: load from a file
char release[256];
getFile("./version.txt", release, 256);
getFile(ROOT_SYSTEM_PATH "/version.txt", release, 256);
char *tmp,*commit;
commit = strrchr(release, '\n');