mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-27 10:29:07 +00:00
Change JitState::downcountAmount to u32
This commit is contained in:
parent
1805f6e381
commit
65ff0146b9
6 changed files with 8 additions and 8 deletions
|
|
@ -48,7 +48,7 @@ constexpr std::array<const char*, 3> s_patch_type_strings{{
|
|||
static std::vector<Patch> s_on_frame;
|
||||
static std::vector<std::size_t> s_on_frame_memory;
|
||||
static std::mutex s_on_frame_memory_mutex;
|
||||
static std::map<u32, int> s_speed_hacks;
|
||||
static std::map<u32, u32> s_speed_hacks;
|
||||
|
||||
const char* PatchTypeAsString(PatchType type)
|
||||
{
|
||||
|
|
@ -192,13 +192,13 @@ static void LoadSpeedhacks(const std::string& section, Common::IniFile& ini)
|
|||
success &= TryParse(value, &cycles);
|
||||
if (success)
|
||||
{
|
||||
s_speed_hacks[address] = static_cast<int>(cycles);
|
||||
s_speed_hacks[address] = cycles;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int GetSpeedhackCycles(const u32 addr)
|
||||
u32 GetSpeedhackCycles(const u32 addr)
|
||||
{
|
||||
const auto iter = s_speed_hacks.find(addr);
|
||||
if (iter == s_speed_hacks.end())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue