Skip to content

Commit

Permalink
Merge pull request #27 from CookiePLMonster/master
Browse files Browse the repository at this point in the history
Fix H_DoReflection (fixes PS2 loadscreens in VC)
  • Loading branch information
aap authored Aug 30, 2016
2 parents 3f4262c + 4e0987f commit edb56a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/limits/ModelInfo/StoreAdjuster.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StoreAdjuster : public SimpleAdjuster
PointerAdjuster ptrs; // Pointers to be replaced in rellocations
CDynamicStore<T> store; // The new dynamic store

injector::hook_back<void(*)(void*)> hb_r; // < for reflector
injector::hook_back<void(*)(void*,void*,void*)> hb_r; // < for reflector
injector::hook_back<T*(*)(int)> hb[2]; // Go back to the original call for CModelInfo::AddSomething
injector::memory_pointer_raw pgrow[2]; // Pointer to the grower call

Expand Down Expand Up @@ -98,10 +98,10 @@ class StoreAdjuster : public SimpleAdjuster
}

// Called after reading all IDEs to make a reflection of this CStore in the default CStore
static void H_DoReflection(void* a)
static void H_DoReflection(void* a, void* b, void* c)
{
Instance()->ApplyReflection();
return Instance()->hb_r.fun(a);
return Instance()->hb_r.fun(a, b, c);
}

// Checks if it's possible to add another element in the CStore (called only if 'unlimited')
Expand Down

0 comments on commit edb56a9

Please sign in to comment.