Skip to content

Commit

Permalink
chore: remove unnecessary debug logs in green.h and pakpatch.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Sep 4, 2024
1 parent fd62717 commit 93c9925
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/green.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ void MakeGreen() {
auto status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"MakeGreen failed: %d", status);
} else {
DebugLog(L"MakeGreen success");
}
}

Expand Down
12 changes: 0 additions & 12 deletions src/pakpatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ HANDLE WINAPI MyMapViewOfFile(_In_ HANDLE hFileMappingObject,
auto status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"Unhook RawMapViewOfFile failed %d", status);
} else {
DebugLog(L"Unhook RawMapViewOfFile success");
}

if (buffer) {
Expand Down Expand Up @@ -103,8 +101,6 @@ HANDLE WINAPI MyCreateFileMapping(_In_ HANDLE hFile,
auto status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"Unhook RawCreateFileMapping failed %d", status);
} else {
DebugLog(L"Unhook RawCreateFileMapping success");
}

DetourTransactionBegin();
Expand All @@ -113,8 +109,6 @@ HANDLE WINAPI MyCreateFileMapping(_In_ HANDLE hFile,
status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"Hook RawMapViewOfFile failed %d", status);
} else {
DebugLog(L"Hook RawMapViewOfFile success");
}

return resources_pak_map;
Expand Down Expand Up @@ -144,8 +138,6 @@ HANDLE WINAPI MyCreateFile(_In_ LPCTSTR lpFileName,
auto status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"Hook RawCreateFileMapping failed %d", status);
} else {
DebugLog(L"Hook RawCreateFileMapping success");
}

// No more hook needed.
Expand All @@ -155,8 +147,6 @@ HANDLE WINAPI MyCreateFile(_In_ LPCTSTR lpFileName,
status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"Unhook RawCreateFile failed %d", status);
} else {
DebugLog(L"Unhook RawCreateFile success");
}
}

Expand All @@ -170,8 +160,6 @@ void PakPatch() {
auto status = DetourTransactionCommit();
if (status != NO_ERROR) {
DebugLog(L"Hook RawCreateFile failed %d", status);
} else {
DebugLog(L"Hook RawCreateFile success");
}
}

Expand Down

0 comments on commit 93c9925

Please sign in to comment.