diff --git a/include/Common.h b/include/Common.h index a5761fb..86e49b8 100644 --- a/include/Common.h +++ b/include/Common.h @@ -16,7 +16,6 @@ class Import INI_Reader bool is_header(LPCSTR); bool read_value(); bool is_value(LPCSTR); - UINT get_num_parameters() const; int get_value_int(UINT = 0); float get_value_float(UINT = 0); LPCSTR get_value_string(UINT = 0); diff --git a/src/main.cpp b/src/main.cpp index 9c781ab..6ecb467 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -121,10 +121,8 @@ void Init() } case Hex: { - LPCSTR strVal = reader.get_value_string(); std::string bytes; - - StringToHex(strVal, bytes); + StringToHex(reader.get_value_string(), bytes); Patch(vOffset, bytes.begin(), bytes.size()); break;