Skip to content

Commit

Permalink
fix: missing dots at the end of some debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementDreptin committed Dec 24, 2024
1 parent cae353f commit 0e40a61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/DashLaunch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ HRESULT Init()
GetOptionValueByName = static_cast<DLAUNCHGETOPTVALBYNAME>(Memory::ResolveFunction(LAUNCH_MODULE, DL_ORDINALS_GETOPTVALBYNAME));
if (GetOptionValueByName == nullptr)
{
DebugPrint("[XexUtils][DashLaunch]: Error: Could not resolve the GetOptionValueByName function");
DebugPrint("[XexUtils][DashLaunch]: Error: Could not resolve the GetOptionValueByName function.");
return E_FAIL;
}

SetOptionValueByName = static_cast<DLAUNCHSETOPTVALBYNAME>(Memory::ResolveFunction(LAUNCH_MODULE, DL_ORDINALS_SETOPTVALBYNAME));
if (SetOptionValueByName == nullptr)
{
DebugPrint("[XexUtils][DashLaunch]: Error: Could not resolve the SetOptionValueByName function");
DebugPrint("[XexUtils][DashLaunch]: Error: Could not resolve the SetOptionValueByName function.");
return E_FAIL;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Detour.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void *Detour::GetModuleImport(const std::string &baseModuleName, const std::stri
}

DebugPrint(
"[XexUtils][Detour]: Error: Could not find function number %d exported by %s used in %s",
"[XexUtils][Detour]: Error: Could not find function number %d exported by %s used in %s.",
ordinal,
importedModuleName.c_str(),
baseModuleName.c_str()
Expand Down
4 changes: 2 additions & 2 deletions src/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void Write(void *pDestination, const T &data)
{
if (pDestination == nullptr || !Xam::IsAddressValid(pDestination))
{
DebugPrint("Invalid address: %p", pDestination);
DebugPrint("[XexUtils][Memory]: Error: Invalid address: %p.", pDestination);
return;
}

Expand All @@ -37,7 +37,7 @@ inline T Read(void *pSource)
{
if (pSource == nullptr || !Xam::IsAddressValid(pSource))
{
DebugPrint("Invalid address: %p", pSource);
DebugPrint("[XexUtils][Memory]: Error: Invalid address: %p.", pSource);
return T();
}

Expand Down
4 changes: 2 additions & 2 deletions src/Socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ HRESULT Socket::Init()
int err = XNetStartup(&xNetStartupParams);
if (err != 0)
{
DebugPrint("[XexUtils][Socket]: Error: XNetStartup failed with code %d", err);
DebugPrint("[XexUtils][Socket]: Error: XNetStartup failed with code %d.", err);
return E_FAIL;
}

// Initialize Winsock
err = WSAStartup(&wsaData);
if (err != 0)
{
DebugPrint("[XexUtils][Socket]: Error: WSAStartup failed with code %d", err);
DebugPrint("[XexUtils][Socket]: Error: WSAStartup failed with code %d.", err);
return E_FAIL;
}

Expand Down

0 comments on commit 0e40a61

Please sign in to comment.