mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 18:45:45 -04:00
Qt: Add "New..." to input profile save button
This will ensure the profile gets saved to the correct location.
This commit is contained in:
@ -874,6 +874,11 @@ void CommonHostInterface::RegisterSaveStateHotkeys()
|
||||
}
|
||||
}
|
||||
|
||||
std::string CommonHostInterface::GetPathForInputProfile(const char* name) const
|
||||
{
|
||||
return GetUserDirectoryRelativePath("inputprofiles/%s.ini", name);
|
||||
}
|
||||
|
||||
std::vector<std::pair<std::string, std::string>> CommonHostInterface::GetInputProfileList() const
|
||||
{
|
||||
FileSystem::FindResultsArray results;
|
||||
|
@ -92,6 +92,9 @@ protected:
|
||||
/// Reloads the input map from config. Callable from controller interface.
|
||||
virtual void UpdateInputMap() = 0;
|
||||
|
||||
/// Returns a path where an input profile with the specified name would be saved.
|
||||
std::string GetPathForInputProfile(const char* name) const;
|
||||
|
||||
/// Returns a list of all input profiles. first - name, second - path
|
||||
std::vector<std::pair<std::string, std::string>> GetInputProfileList() const;
|
||||
|
||||
|
Reference in New Issue
Block a user