dolphin/Source/Core/DolphinQt/Config/Mapping
JosJuice 6cf55ab1ee InputCommon: Unify GetProfileName and GetProfileDirectoryName
After reading the previous commit, you might think "hold on, what's the
difference between GetProfileName and GetProfileDirectoryName"? These
two are being used for the exact same thing - figuring out where
profiles are stored - yet they return different values for certain
controllers like GC keyboards! As far as I can tell, the existing code
has been broken for GC keyboards since they were introduced a decade
ago. The GUI (and more recently, also InputCycler) would write and read
profiles in one location, and our code for loading profiles specified in
a game INI file would read profiles in another location.

This commit gets rid of the set of values used by the game INI code in
favor of the other set. This does breaking existing setups where a
GCKey profile has been configured in a game INI, but I think the number
of working such setups is vanishingly small. The alternative would make
existing GCKey profiles go missing from the profile dropdown in the GUI,
which I think would be more disruptive. The alternative would also force
new GCKey profiles into the same directory as GCPad profiles.

This commit also fixes a regression from d6c0f8e749. The Android GUI was
using GetProfileName to figure out what key to use in the game INI,
which made it use incorrect game INI entries for GameCube controller
profiles but not Wii Remote profiles. Now the Android GUI uses
GetProfileKey for this, fixing the problem.
2024-02-04 17:55:08 +01:00
..
FreeLookGeneral.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FreeLookGeneral.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FreeLookRotation.cpp DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
FreeLookRotation.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GBAPadEmu.cpp Qt: GBA Pad config 2021-07-13 16:43:00 +02:00
GBAPadEmu.h Qt: GBA Pad config 2021-07-13 16:43:00 +02:00
GCKeyboardEmu.cpp DolphinQt: Rename "Keyboard" to "Keyboard Controller" and add warning text. 2022-11-11 22:26:35 -06:00
GCKeyboardEmu.h DolphinQt: Rename "Keyboard" to "Keyboard Controller" and add warning text. 2022-11-11 22:26:35 -06:00
GCMicrophone.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
GCMicrophone.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GCPadEmu.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GCPadEmu.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
GCPadWiiUConfigDialog.cpp Config: Port GC Adapter settings to new config system. 2022-01-05 03:25:19 +01:00
GCPadWiiUConfigDialog.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
Hotkey3D.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
Hotkey3D.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyControllerProfile.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyControllerProfile.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyDebugging.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyDebugging.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyGBA.cpp Qt/Core: Implement GBA Hotkeys 2021-07-13 16:43:42 +02:00
HotkeyGBA.h Qt/Core: Implement GBA Hotkeys 2021-07-13 16:43:42 +02:00
HotkeyGeneral.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyGeneral.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyGraphics.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyGraphics.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyStates.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyStates.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyStatesOther.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyStatesOther.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyTAS.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyTAS.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyUSBEmu.cpp Add Hotkeys for Skylanders Portal and Infinity Base Menus 2023-05-26 13:36:08 -07:00
HotkeyUSBEmu.h Add Hotkeys for Skylanders Portal and Infinity Base Menus 2023-05-26 13:36:08 -07:00
HotkeyWii.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
HotkeyWii.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
IOWindow.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
IOWindow.h DolphinQt: Renamed "Range" to "Multiplier" in advanced mapping window. Removed the slider. Moved the spin box. 2022-06-26 22:52:20 -05:00
MappingButton.cpp DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
MappingButton.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
MappingCommon.cpp Move parts of MappingCommon out of DolphinQt 2022-03-06 14:30:49 +01:00
MappingCommon.h Move parts of MappingCommon out of DolphinQt 2022-03-06 14:30:49 +01:00
MappingIndicator.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
MappingIndicator.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
MappingNumeric.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
MappingNumeric.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
MappingWidget.cpp DolphinQt/Mapping: Add "Use Mouse Controlled Pointing" button. 2023-12-29 20:31:39 +01:00
MappingWidget.h DolphinQt: Allow mapping buttons to expand horizontally. 2022-11-11 23:14:03 -06:00
MappingWindow.cpp InputCommon: Unify GetProfileName and GetProfileDirectoryName 2024-02-04 17:55:08 +01:00
MappingWindow.h DolphinQt: Make "All Devices" mapping hopefully less confusing. 2022-10-09 17:27:25 -05:00
WiimoteEmuExtension.cpp Add emulated Shinkansen controller 2022-09-11 17:12:19 +01:00
WiimoteEmuExtension.h Add emulated Shinkansen controller 2022-09-11 17:12:19 +01:00
WiimoteEmuExtensionMotionInput.cpp DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
WiimoteEmuExtensionMotionInput.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WiimoteEmuExtensionMotionSimulation.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WiimoteEmuExtensionMotionSimulation.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WiimoteEmuGeneral.cpp DolphinQt: Remove unnecessary qOverloads 2023-11-04 14:14:14 -07:00
WiimoteEmuGeneral.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WiimoteEmuMotionControl.cpp treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WiimoteEmuMotionControl.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
WiimoteEmuMotionControlIMU.cpp DolphinQt: Set window decorations for all top-level QWidgets. 2023-08-12 16:54:54 +02:00
WiimoteEmuMotionControlIMU.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00