Skip to content

Commit 3fd66d1

Browse files
committed
[MISC] fixed parameter naming and some logs
1 parent 9ec0177 commit 3fd66d1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/core/Resolver.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static void createRelativeJump(int from, int to)
3636
#endif
3737

3838
void StructResolver::initialize(
39-
bool& initialized, bool isImplemented, int gameAddress, const void* funcPtr, const char* funcName)
39+
bool& initialized, bool isImplemented, int gameAddress, const void* structPtr, const char* typeName)
4040
{
4141
if (initialized) {
4242
#ifdef OPEN_SHC_EXE
@@ -58,9 +58,9 @@ void StructResolver::initialize(
5858
}
5959
std::ostringstream oss;
6060
if (isImplemented) {
61-
oss << "Implemented '" << (void*)gameAddress << "' at address '" << funcPtr << "' as a '" << funcName;
61+
oss << "Implemented '" << (void*)gameAddress << "' at address '" << structPtr << "' as '" << typeName << "'";
6262
} else {
63-
oss << "Use '" << (void*)gameAddress << "' as a '" << funcName;
63+
oss << "Use '" << (void*)gameAddress << "' as '" << typeName << "'";
6464
}
6565
ucp_log(Verbosity_1, oss.str().c_str());
6666
#endif
@@ -93,9 +93,9 @@ void FunctionResolver::initialize(
9393
}
9494
std::ostringstream oss;
9595
if (isImplemented) {
96-
oss << "Implemented '" << (void*)gameAddress << "' at address '" << funcPtr << "' as '" << funcName;
96+
oss << "Implemented '" << (void*)gameAddress << "' at address '" << funcPtr << "' as '" << funcName << "'";
9797
} else {
98-
oss << "Use '" << (void*)gameAddress << "' as '" << funcName;
98+
oss << "Use '" << (void*)gameAddress << "' as '" << funcName << "'";
9999
}
100100
ucp_log(Verbosity_1, oss.str().c_str());
101101
#endif

0 commit comments

Comments
 (0)