Fixes and new apps (#30)
- M5 Unit Modules library + M5 Unit Test app - Minor fixes for TodoList, TwoEleven, Snake, Brainfuck and Breakout - Fixed SerialConsole to use the uart controller as it was broken in one of the many updates - Fixed keyboard input in TwoEleven, Breakout, Magic8Ball and Snake - Bluetooth Media Keys app, supports pressing physical keys to trigger the corresponding buttonmatrix button - Epub Reader app
This commit is contained in:
@@ -76,6 +76,9 @@ static bool getScriptDir(char* buf, size_t bufSize) {
|
||||
size_t size = bufSize;
|
||||
tt_app_get_user_data_path(s_appHandle, buf, &size);
|
||||
if (size == 0) return false;
|
||||
for (char* p = buf + 1; *p; ++p) {
|
||||
if (*p == '/') { *p = '\0'; mkdir(buf, 0755); *p = '/'; }
|
||||
}
|
||||
mkdir(buf, 0755);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user