fs revert cleanup

This commit is contained in:
liquidraver
2026-03-04 09:21:05 +01:00
parent 383f23f448
commit 22efe4da6f
13 changed files with 274 additions and 399 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ bool RegionMap::is_name_char(uint8_t c) {
}
bool RegionMap::load(const char* path) {
const char* filepath = path ? path : "/lfs/repeater/regions2";
const char* filepath = path;
struct fs_file_t file;
fs_file_t_init(&file);
@@ -76,7 +76,7 @@ bool RegionMap::load(const char* path) {
}
bool RegionMap::save(const char* path) {
const char* filepath = path ? path : "/lfs/repeater/regions2";
const char* filepath = path;
// Remove old file first
fs_unlink(filepath);