Qt: Add "New..." to input profile save button

This will ensure the profile gets saved to the correct location.
This commit is contained in:
Connor McLaughlin
2020-04-27 01:05:01 +10:00
parent a8c43b0c8c
commit 63692a012f
4 changed files with 55 additions and 20 deletions

View File

@@ -73,6 +73,10 @@ 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
{
return QString::fromStdString(GetPathForInputProfile(name.toUtf8().constData()));
}
ALWAYS_INLINE std::vector<std::pair<std::string, std::string>> getInputProfileList() const
{
return GetInputProfileList();