Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Small code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BC46 committed Dec 12, 2023
1 parent 6c450dc commit b30b7c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion include/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b30b7c8

Please sign in to comment.