diff --git a/Makefile b/Makefile index 040f969..ae46d35 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION_MAJOR := 1 VERSION_MINOR := 0 -VERSION_REVISION := 0 +VERSION_REVISION := 1 all: mkdir -p plugin/build diff --git a/app/Makefile b/app/Makefile index 5006597..969affc 100644 --- a/app/Makefile +++ b/app/Makefile @@ -26,7 +26,7 @@ LIBRARIES := ctru VERSION_MAJOR := 1 VERSION_MINOR := 0 -VERSION_MICRO := 0 +VERSION_MICRO := 1 BUILD_FLAGS := -march=armv6k -mtune=mpcore -mfloat-abi=hard BUILD_FLAGS_CC := -g -Wall -Wno-strict-aliasing -O3 -mword-relocations \ diff --git a/app/sources/main.cpp b/app/sources/main.cpp index 3ad0b00..48bfc08 100644 --- a/app/sources/main.cpp +++ b/app/sources/main.cpp @@ -23,7 +23,7 @@ char *strdup(const char *s) { return d; } -FILE* fopen_mkdir(const char* name, const char* mode) +FILE* fopen_mkdir(const char* name, const char* mode, bool actuallyOpen = true) { char* _path = strdup(name); char *p; @@ -40,7 +40,7 @@ FILE* fopen_mkdir(const char* name, const char* mode) *p = '/'; } } - retfile = fopen(name, mode); + if (actuallyOpen) retfile = fopen(name, mode); error: free(_path); return retfile; @@ -78,6 +78,10 @@ bool extractPlugin() { bool launchPlugin() { + // Make sure the luma plugins directory exists + // so that persistent user parameters work + fopen_mkdir("/luma/plugins/a.txt", "w", false); + u32 ret = 0; PluginLoadParameters plgparam = { 0 }; u8 isPlgEnabled = 0; diff --git a/plugin/Makefile b/plugin/Makefile index ff94d27..c95c575 100644 --- a/plugin/Makefile +++ b/plugin/Makefile @@ -16,7 +16,7 @@ SOURCES := sources sources/CTRPluginFramework VERSION_MAJOR := 1 VERSION_MINOR := 0 -VERSION_REVISION := 0 +VERSION_REVISION := 1 SERVER_PORT := 5543 IP := 19