From e83b88563480dc0e3d8d7730b3db89e07ba0dfd8 Mon Sep 17 00:00:00 2001 From: crashfort Date: Sun, 27 Aug 2017 16:31:47 +0200 Subject: [PATCH] Add comment inside IsGame --- Source/HammerPatch/Application/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/HammerPatch/Application/Application.cpp b/Source/HammerPatch/Application/Application.cpp index 00656d5..06ef467 100644 --- a/Source/HammerPatch/Application/Application.cpp +++ b/Source/HammerPatch/Application/Application.cpp @@ -246,6 +246,11 @@ void HAP::AddModule(HookModuleBase* module) bool HAP::IsGame(const wchar_t* test) { + /* + Takes the current directory, goes up a step, gets the directory name and compares + against parameter "test". + */ + wchar_t directory[4096]; GetCurrentDirectoryW(sizeof(directory), directory); PathRemoveFileSpecW(directory);