summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2024-02-11EXI: Don't kill Dolphin when receiving BBA_IOBSepalani
According to @Kirbymimi it doesn't crash on real hardware. Testing was done by sending many UDP packets to an unbound port.
2024-02-11Merge pull request #12568 from noahpistilli/kd-register-default-idMai
IOS/KD: Correctly handle registration of the default user ID
2024-02-07Core: Move Emulation IOS instance to System.Admiral H. Curtiss
2024-02-07Merge pull request #12565 from LillyJadeKatrin/retroachievements-bugfixMai
Retain Save State Folder
2024-02-07Fix loading GBA configurationsGregoire L. D.
2024-02-07Correctly log register errorsSketch
2024-02-07VideoCommon: Don't use indexed output for fbfetchTellowKrinkle
A nonzero index makes no sense, and Mesa doesn't like it when you supply an index
2024-02-06Arm64Emitter: Don't optimize ADD to MOV for SPJosJuice
Unlike ADD (immediate), MOV (register) treats SP as ZR. Therefore the ADDI2R optimization that was added in 67791d227c can't optimize ADD to MOV when exactly one of the registers is SP. There currently isn't any code in Dolphin that calls ADDI2R with parameters that would trigger this case.
2024-02-05Retain Save State FolderLillyJadeKatrin
Adds a setting field under the hood to retain which folder the player last saved/loaded a state to/from, so that the dialog box to select a state to save/load reopens at that folder.
2024-02-05Merge pull request #12561 from JosJuice/profile-consistencyMai
InputCommon: Fix profile path inconsistencies
2024-02-04InputCommon: Use distinct values for profile keyJosJuice
Because the last commit made us use separate folders for GCPad and GCKey profiles, we should also use separate game INI keys for them. Otherwise setting e.g. PadProfile1 in a game INI will make both GCPad and GCKey try to load it, typically with one of them succeeding and the other one showing a panic alert due to the profile not existing in its folder. Better do this breaking change for GCKeys in the same PR as the other breaking change rather than later.
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.
2024-02-04InputCommon: Refactor away InputConfig::LoadConfig's switch caseJosJuice
By having getters for this information, other code that needs access to the same information can call the getters instead of duplicating the information.
2024-02-03BBA/HLE: Add missing PSH flagSepalani
2024-02-03Merge pull request #12551 from lioncash/cheevAdmiral H. Curtiss
AchievementManager: Minor cleanup
2024-02-03Merge pull request #12557 from mitaclaw/cpu-thread-guarantees-1Admiral H. Curtiss
CheatSearch: Remove redundant lambdas
2024-02-03Merge pull request #12550 from lioncash/deadAdmiral H. Curtiss
VertexLoaderManager: Remove unused entry struct
2024-02-01VertexLoaderManager: Use fill() in Init()Lioncash
Same behavior, less code.
2024-02-01VertexLoaderManager: Remove unused entry structLioncash
This isn't used anywhere, so it can be removed.
2024-02-01AchievementManager: Tidy up GetRichPresence()Lioncash
This can be a direct return.
2024-02-01AchievementManager: clear name in CloseGame()/LogOut()Lioncash
A little more idiomatic.
2024-02-01AchievementManager: Replace memsets where applicableLioncash
We can just use brace initialization to zero these out. Smaller to write and a little quicker to read.
2024-02-01AchievementManager: std::move leaderboard info in FetchBoardInfo()Lioncash
Avoids churning some allocations.
2024-02-01AchievementManager: Ensure update callback is always validLioncash
This way we don't need to do any validity checking aside from the initial setting of the callback. Also cuts down on line noise.
2024-02-01AchievementManager: Convert .compare() into equality operatorsLioncash
These perform a default comparison, which is the same as using the equality operators.
2024-02-01AchievementManager: Remove unnecessary .get()Lioncash
Same behavior, less code.
2024-02-01AchievementManager: Remove long qualifierLioncash
We can remove the long qualifying on some ResponseType instances to lessen the amount of reading.
2024-02-01CustomPipeline: Mark arrays as constexprLioncash
Ensures that these go into the ro section.
2024-02-01CustomPipeline: Make use of emplace_back() in GlobalConflicts()Lioncash
We can use the string_view arguments to directly construct strings inside of the global_result vector.
2024-02-01CustomPipeline: Resolve unused variable warningLioncash
We can just use holds_alternative here instead.
2024-02-01CheatSearch: Remove redundant lambdasmitaclaw
Core::RunAsCPUThread is obsoleted by CPUThreadGuard reference already passed into the function. The nonsense lambda in CheatSearchWidget is from changes in fdb7328c737f2bba148b903491b66fa62cc03703.
2024-02-01Core: Fix booting titles from NAND.Admiral H. Curtiss
2024-01-31Core/ConfigManager: Remove dead bAutomaticStart flag.Admiral H. Curtiss
2024-01-31Merge pull request #12546 from lioncash/eventAdmiral H. Curtiss
VideoCommon/Statistics: Remove global system accessor from s_after_frame_event
2024-01-31Merge pull request #12544 from lioncash/getmodAdmiral H. Curtiss
GraphicsModGroup: Allow heterogenous lookup for GetMod()
2024-01-31Merge pull request #12547 from lioncash/movieAdmiral H. Curtiss
Core/Movie: Remove lingering global system instance accessors
2024-01-31Core/Movie: Remove lingering global system instance accessorsLioncash
The movie manager is already passed in a reference to the relevant system, so we can use that instead.
2024-01-31Common/HookableEvent: std::move callback instance in Register()Lioncash
Potentially avoids reallocations if the capture buffer of the callback is quite large.
2024-01-31VideoCommon/Statistics: Remove global system accessor from s_after_frame_eventLioncash
Instead, we make the event take a reference to the system and then pass it in when the event is triggered. This does introduce two other accessors, but these are much easier to refactor out over time, and without modification to the existing event interface.
2024-01-31VertexLoaderBase: Collapse std namespace for hash and mark noexceptLioncash
Makes the hash specialization a little less noisy. Also we mark it noexcept, since hashes shouldn't be throwing exceptions (and this can be optimized on).
2024-01-31TextureConfig: Collapse std namespace for hashLioncash
Lets us collapse the namespacing and make the specialization a little less noisy.
2024-01-31RenderState: Collapse std namespace for hashLioncash
We can specify the namespace on the hash to make the specialization a little less noisy.
2024-01-31NativeVertexFormat: Collapse std namespace and mark hash noexceptLioncash
We can just tag the std:: onto the end of the specialization to make it less noisy. Also mark it as noexcept, since hashes shouldn't throw exceptions.
2024-01-31GraphicsModGroup: std::move graphics_mod in Load()Lioncash
The config object is quite heavyweight, so we should move this instead of copying.
2024-01-31GraphicsModGroup: Simplify try_add_mod()Lioncash
We can use contains() here, and also move the mod config if it's valid instead of copying it, since it contains quite a bit of allocated data.
2024-01-31GraphicsModListWidget: Pass optional by const referenceLioncash
All we do is read from it, so we don't need to copy the string if we happen to have one.
2024-01-31GraphicsModGroup: Allow heterogenous lookup for GetMod()Lioncash
Allows using keys that aren't directly std::string as the key. This lets us use std::string_view for the incoming path name, making it more flexible with other string types.
2024-01-31Merge pull request #12542 from AdmiralCurtiss/system-sconfigMai
Migrate m_is_mios and bWii from SConfig to System.
2024-01-31Migrate SConfig::bWii to System.Admiral H. Curtiss
2024-01-30Merge pull request #12540 from mitaclaw/encode-reg-to-64Mai
Add Missing EncodeRegTo64 in JitArm64::dcbx