Skip to content

Commit

Permalink
Add comment inside IsGame
Browse files Browse the repository at this point in the history
  • Loading branch information
crashfort committed Aug 27, 2017
1 parent dfb2c3c commit e83b885
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/HammerPatch/Application/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e83b885

Please sign in to comment.