first commit

This commit is contained in:
aap
2019-05-15 16:52:37 +02:00
commit 600bf03514
116 changed files with 15132 additions and 0 deletions

22
src/patcher.cpp Normal file
View 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;
}