diff options
| author | Clayton Hughes | 2012-03-09 01:07:47 -0800 |
|---|---|---|
| committer | Clayton Hughes | 2012-03-09 01:07:47 -0800 |
| commit | 47bbe1a3ff732e45b69f632cdb3fe4eeed1b8e81 (patch) | |
| tree | ba0cc2b2e723c9bbb4c67f28a585b4f58361b1f8 /library/Hooks-windows.cpp | |
| parent | 3d1ce32785450e24ade43ed6b72aaab4c92b1788 (diff) | |
| download | dfhack-47bbe1a3ff732e45b69f632cdb3fe4eeed1b8e81.tar.gz dfhack-47bbe1a3ff732e45b69f632cdb3fe4eeed1b8e81.tar.bz2 dfhack-47bbe1a3ff732e45b69f632cdb3fe4eeed1b8e81.tar.xz | |
Fixed up formatting, debug messages in new Windows Hotkey stuff.
Diffstat (limited to 'library/Hooks-windows.cpp')
| -rw-r--r-- | library/Hooks-windows.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/Hooks-windows.cpp b/library/Hooks-windows.cpp index 16118464..f6d7b7f1 100644 --- a/library/Hooks-windows.cpp +++ b/library/Hooks-windows.cpp @@ -404,6 +404,10 @@ DFhackCExport int SDL_EnableKeyRepeat(int delay, int interval) static int (*_SDL_EnableUNICODE)(int enable) = 0; DFhackCExport int SDL_EnableUNICODE(int enable) { + if(!enable) + { + fprintf(stderr, "SDL_EnableUNICODE turned off. Keybindings may break.\n"); + } return _SDL_EnableUNICODE(enable); } @@ -800,7 +804,7 @@ bool FirstCall() _SDL_SemWait = (int (*)(void *))GetProcAddress(realSDLlib,"SDL_SemWait"); _SDL_ThreadID = (uint32_t (*)(void))GetProcAddress(realSDLlib,"SDL_ThreadID"); - _SDL_EnableUNICODE(1); + _SDL_EnableUNICODE(1); fprintf(stderr,"Initized HOOKS!\n"); inited = true; |
