mirror of https://github.com/mgba-emu/mgba.git
Merge branch 'master' (early part) into medusa
This commit is contained in:
commit
6d4581e8f1
|
@ -291,6 +291,9 @@ void InputController::loadConfiguration(uint32_t type) {
|
|||
}
|
||||
|
||||
void InputController::loadProfile(uint32_t type, const QString& profile) {
|
||||
if (profile.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
const InputProfile* ip = InputProfile::findProfile(profile);
|
||||
if (ip) {
|
||||
ip->apply(this);
|
||||
|
@ -321,6 +324,9 @@ void InputController::saveConfiguration(uint32_t type) {
|
|||
}
|
||||
|
||||
void InputController::saveProfile(uint32_t type, const QString& profile) {
|
||||
if (profile.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
if (m_activeKeyInfo) {
|
||||
mInputProfileSave(&m_inputMap, type, m_config->input(), profile.toUtf8().constData());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue