| 127 | } |
| 128 | |
| 129 | void Patch_ResetSymbolTable() |
| 130 | { |
| 131 | u32 i = 0; |
| 132 | // Loops through all symbols, until name is nullptr |
| 133 | for (i = 0; g_PatchSymbols[i] != nullptr; i++) |
| 134 | { |
| 135 | g_PatchSymbols[i]->Found = false; |
| 136 | } |
| 137 | nPatchSymbols = i; |
| 138 | |
| 139 | for (i = 0; g_PatchVariables[i] != nullptr; i++) |
| 140 | { |
| 141 | g_PatchVariables[i]->Found = false; |
| 142 | g_PatchVariables[i]->FoundHi = false; |
| 143 | g_PatchVariables[i]->FoundLo = false; |
| 144 | } |
| 145 | nPatchVariables = i; |
| 146 | } |
| 147 | |
| 148 | void Patch_ApplyPatches() |
| 149 | { |