ArmInterface: return ref instead of copy for GetTimer (#5227)
* ArmInterface: return ref instead of copy for GetTimer * ArmInterface: add const ref GetTimer * ArmInterface: return raw pointer instead of shared_ptr in GetTimer * remove more unnecessary shared_ptr usage * Fix save states * fix unit tests
This commit is contained in:
@ -137,10 +137,10 @@ public:
|
||||
}
|
||||
|
||||
void AddTicks(std::uint64_t ticks) override {
|
||||
parent.GetTimer()->AddTicks(ticks);
|
||||
parent.GetTimer().AddTicks(ticks);
|
||||
}
|
||||
std::uint64_t GetTicksRemaining() override {
|
||||
s64 ticks = parent.GetTimer()->GetDowncount();
|
||||
s64 ticks = parent.GetTimer().GetDowncount();
|
||||
return static_cast<u64>(ticks <= 0 ? 0 : ticks);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user