mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 00:14:09 +00:00
the great reorganization
This commit is contained in:
parent
219a65b81a
commit
53023eb65b
150 changed files with 45 additions and 37 deletions
22
src/core/patcher.cpp
Normal file
22
src/core/patcher.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
|
||||
StaticPatcher *StaticPatcher::ms_head;
|
||||
|
||||
StaticPatcher::StaticPatcher(Patcher func)
|
||||
: m_func(func)
|
||||
{
|
||||
m_next = ms_head;
|
||||
ms_head = this;
|
||||
}
|
||||
|
||||
void
|
||||
StaticPatcher::Apply()
|
||||
{
|
||||
StaticPatcher *current = ms_head;
|
||||
while(current){
|
||||
current->Run();
|
||||
current = current->m_next;
|
||||
}
|
||||
ms_head = nil;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue