summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/InputProfile.cpp
AgeCommit message (Collapse)Author
2024-02-04InputCommon: Unify GetProfileName and GetProfileDirectoryNameJosJuice
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.
2023-04-13Common/IniFile: Move interface into Common namespaceLioncash
Gets this out of the global namespace and into the Common namespace
2022-07-25StripSpaces: only strip spacesShawn Hoffman
StripWhitespace maintains old behavior
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-02-27InputCommon: reduce number of image loads and texture cache invalidations by ↵iwubcode
only running dynamic input textures once for all controllers
2019-11-22InputCommon: Make use of fmt where applicableLioncash
Continues the migration over to fmt
2019-07-23StringUtil: Use std::string_view moreJosJuice
2019-05-06Reformat repo to clang-format 7.0 rulesTechjar
2018-07-07Input: Allow per-game configuration to specify directories for ↵iwubcode
input-profiles. If specified, the directories are searched recursively for inis
2018-07-07Fix lint bugsiwubcode
2018-07-07Input: Trim profile names to allow spaces between ','siwubcode
2018-07-07Input: Allow cycling to occur for each individual controlleriwubcode
2018-07-07Input: Add cycling between game specific profilesiwubcode
2018-07-07Input: Add hotkey to cycle the wiimote profile forward or backwardiwubcode
Co-authored-by: Barath Kannan <barathsotd@gmail.com>