diff options
author | neonloop | 2023-01-22 20:50:00 +0000 |
---|---|---|
committer | neonloop | 2023-01-22 20:50:00 +0000 |
commit | 48f9bc6f61f8b93bad00c931b21b9b53e1154ed7 (patch) | |
tree | 69ca3ed41f1abae8debf7bbab1b8e6a01a763ceb /menu.c | |
parent | 8aa3a79bbed36430f48466a3f7f1e5de7f5cd8af (diff) | |
download | picoarch-48f9bc6f61f8b93bad00c931b21b9b53e1154ed7.tar.gz picoarch-48f9bc6f61f8b93bad00c931b21b9b53e1154ed7.tar.bz2 picoarch-48f9bc6f61f8b93bad00c931b21b9b53e1154ed7.zip |
Moves save / config dir under .picoarch
Still uses old dir if exists to not need migration
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -240,7 +240,7 @@ const char *select_content(void) { const char **exts_with_zip = NULL; int i = 0, size = 0; - if (content && content->path) { + if (content && strlen(content->path)) { strncpy(content_path, content->path, sizeof(content_path) - 1); } else if (getenv("CONTENT_DIR")) { strncpy(content_path, getenv("CONTENT_DIR"), sizeof(content_path) - 1); |