AromaBaseModule/source/symbolnamepatcher/symbolname.cpp

13 lines
513 B
C++
Raw Permalink Normal View History

2022-08-25 12:58:35 +02:00
#include "globals.h"
#include "logger.h"
#include "sym_function_replacements.h"
void initSymbolNamePatcher() {
DEBUG_FUNCTION_LINE("Patch SymbolNamePatcher functions");
for (uint32_t i = 0; i < symbolname_function_replacements_size; i++) {
if (!FunctionPatcherPatchFunction(&symbolname_function_replacements[i], nullptr)) {
OSFatal("AromaBaseModule: Failed to patch SymbolNamePatcher function");
}
}
DEBUG_FUNCTION_LINE("Patch SymbolNamePatcher functions finished");
}