New input system
This commit is contained in:
@@ -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