mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 15:05:47 -04:00
Qt: Source input profiles from program and user directory
This way Linux users as well as Windows users who use the Documents user directory can use the shipped input profiles.
This commit is contained in:
@ -335,7 +335,7 @@ void ControllerSettingsWidget::onSaveProfileClicked()
|
||||
return;
|
||||
}
|
||||
|
||||
m_host_interface->saveInputProfile(m_host_interface->getPathForInputProfile(name));
|
||||
m_host_interface->saveInputProfile(m_host_interface->getSavePathForInputProfile(name));
|
||||
});
|
||||
|
||||
QAction* browse = menu.addAction(tr("Browse..."));
|
||||
|
@ -73,14 +73,11 @@ public:
|
||||
/// Fills menu with save state info and handlers.
|
||||
void populateGameListContextMenu(const char* game_code, QWidget* parent_window, QMenu* menu);
|
||||
|
||||
ALWAYS_INLINE QString getPathForInputProfile(const QString& name) const
|
||||
ALWAYS_INLINE QString getSavePathForInputProfile(const QString& name) const
|
||||
{
|
||||
return QString::fromStdString(GetPathForInputProfile(name.toUtf8().constData()));
|
||||
}
|
||||
ALWAYS_INLINE std::vector<std::pair<std::string, std::string>> getInputProfileList() const
|
||||
{
|
||||
return GetInputProfileList();
|
||||
return QString::fromStdString(GetSavePathForInputProfile(name.toUtf8().constData()));
|
||||
}
|
||||
ALWAYS_INLINE InputProfileList getInputProfileList() const { return GetInputProfileList(); }
|
||||
void saveInputProfile(const QString& profile_path);
|
||||
|
||||
/// Returns a path relative to the user directory.
|
||||
|
Reference in New Issue
Block a user