mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
Simplify default path creation
This commit is contained in:
parent
1c19f418c6
commit
52cad2114d
@ -416,8 +416,7 @@ std::string Local_Storage::get_user_appdata_path()
|
||||
} else {
|
||||
char *homedir = getenv("HOME");
|
||||
if (homedir) {
|
||||
user_appdata_path = homedir;
|
||||
user_appdata_path.append(PATH_SEPARATOR).append(".local").append(PATH_SEPARATOR).append("share");
|
||||
user_appdata_path = std::string(homedir) + "/.local/share";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user