New input system
This commit is contained in:
1 parent
280c84ac6e
commit
070e583bd2
5 files changed
+41
-6
No files matched your search
@@ -149,3 +149,15 @@ auto autoDetermineRip(const std::string& musicFolder, const std::string& url) ->
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
auto musicFolder() -> std::string {
|
||||
#ifdef _WIN32
|
||||
const char* userProfile = std::getenv("USERPROFILE");
|
||||
if (userProfile) return std::filesystem::path(userProfile) / "Music";
|
||||
#else
|
||||
const char* home = std::getenv("HOME");
|
||||
if (home) return std::filesystem::path(home) / "Music";
|
||||
#endif
|
||||
|
||||
return "";
|
||||
}
|
||||
Reference in new issue
Block a user