fix: delete redundant 0:/common directory, remove dead 0:/home fallback in Music and Video apps
This commit is contained in:
@@ -1516,7 +1516,7 @@ extern "C" void _start() {
|
||||
if (montauk::getuser(username, sizeof(username)) > 0 && username[0]) {
|
||||
snprintf(g.dir_path, sizeof(g.dir_path), "0:/users/%s/Music", username);
|
||||
} else {
|
||||
memcpy(g.dir_path, "0:/home", 8);
|
||||
snprintf(g.dir_path, sizeof(g.dir_path), "0:/users");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1260,7 +1260,7 @@ static void set_default_dir() {
|
||||
snprintf(g.dir_path, sizeof(g.dir_path), "0:/users/%s", username);
|
||||
}
|
||||
} else {
|
||||
montauk::strncpy(g.dir_path, "0:/home", (int)sizeof(g.dir_path));
|
||||
montauk::strncpy(g.dir_path, "0:/users", (int)sizeof(g.dir_path));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user