Skip to content

Commit

Permalink
[win] log only on debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
thantthet committed Mar 9, 2017
1 parent 6fb3a81 commit f5b812a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/KeyMagic2/KeyMagic2/KeyMagic2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
if (CheckIfRunning()) {
return 0;
}

#ifdef DEBUG
char szPath[MAX_PATH];

if (SUCCEEDED(SHGetFolderPathA(NULL,
Expand All @@ -138,7 +138,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,

libkm::KeyMagicLogger::getInstance()->setFile(hFile);
}

#endif
RegisterWindowClass(hInstance);

// Perform application initialization:
Expand Down
2 changes: 2 additions & 0 deletions windows/KeyMagic2/KeyMagic2/KeyboardManger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ libkm::KeyMagicEngine * Keyboard::GetKeyMagicEngine()
}

m_engine = new libkm::KeyMagicEngine();
#ifdef DEBUG
m_engine->m_verbose = true;
#endif
m_engine->loadKeyboardFile(this->KeyboardFullPath().c_str());

return m_engine;
Expand Down

0 comments on commit f5b812a

Please sign in to comment.