mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
23 lines
332 B
C++
23 lines
332 B
C++
|
#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;
|
||
|
}
|