Skip to content

Commit

Permalink
Fix non-mssb gecko codes
Browse files Browse the repository at this point in the history
Fix for non-mssb games not having working gecko codes
  • Loading branch information
LittleCoaks committed Mar 4, 2024
1 parent 81b40e8 commit 2c9ed2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/GeckoCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static Installation InstallCodeHandlerLocked(const Core::CPUThreadGuard& guard)
// Gets the free memory location for the current game. If game has not specified a
auto free_memory_base_address = Core::getGameFreeMemory();
bool use_free_memory = Core::getGameFreeMemory().has_value();
const u32 memory_base_address = use_free_memory ? free_memory_base_address.value() : INSTALLER_BASE_ADDRESS;
const u32 memory_base_address = use_free_memory ? free_memory_base_address.value() : INSTALLER_BASE_ADDRESS + static_cast<u32>(data.size()) - CODE_SIZE;

// Install code handler
for (u32 i = 0; i < data.size(); ++i) {
Expand Down

0 comments on commit 2c9ed2b

Please sign in to comment.