mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
misc changes
- Add dumper script - Fill importer code - other fixes
This commit is contained in:
@@ -665,6 +665,10 @@ std::unordered_map<UserPath, std::string> g_paths;
|
||||
}
|
||||
|
||||
void SetUserPath(const std::string& path) {
|
||||
if (!g_paths.empty()) {
|
||||
g_paths.clear();
|
||||
}
|
||||
|
||||
std::string& user_path = g_paths[UserPath::UserDir];
|
||||
|
||||
if (!path.empty() && CreateFullPath(path)) {
|
||||
@@ -717,7 +721,6 @@ const std::string& GetUserPath(UserPath path) {
|
||||
return g_paths[path];
|
||||
}
|
||||
|
||||
|
||||
std::size_t WriteStringToFile(bool text_file, const std::string& filename, std::string_view str) {
|
||||
return IOFile(filename, text_file ? "w" : "wb").WriteString(str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user