Compile fixes, needs cleaning up

This commit is contained in:
KimLS
2016-05-24 23:49:25 -07:00
parent 477bf1ba45
commit 9894c1b186
32 changed files with 38 additions and 64 deletions
+3 -3
View File
@@ -31,6 +31,7 @@
#include "../item.h"
#include "rof_structs.h"
#include "../rulesys.h"
#include "../eqemu_config.h"
#include <iostream>
#include <sstream>
@@ -67,6 +68,7 @@ namespace RoF
//create our opcode manager if we havent already
if (opcodes == nullptr) {
//TODO: get this file name from the config file
auto Config = EQEmuConfig::get();
std::string opfile = Config->PatchDir;
opfile += "patch_";
opfile += name;
@@ -98,9 +100,6 @@ namespace RoF
signature.first_length = sizeof(structs::ClientZoneEntry_Struct);
signature.first_eq_opcode = opcodes->EmuToEQ(OP_ZoneEntry);
into.RegisterPatch(signature, pname.c_str(), &opcodes, &struct_strategy);
Log.Out(Logs::General, Logs::Netcode, "[IDENTIFY] Registered patch %s", name);
}
@@ -112,6 +111,7 @@ namespace RoF
if (opcodes != nullptr) {
//TODO: get this file name from the config file
auto Config = EQEmuConfig::get();
std::string opfile = Config->PatchDir;
opfile += "patch_";
opfile += name;