Skip to content

Commit

Permalink
IsDebuggerActive requires C_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Oct 1, 2019
1 parent 433996e commit 039b198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,9 @@ void GFX_SetIcon(void)
#endif
}

#if C_DEBUG
bool IsDebuggerActive(void);
#endif

extern std::string dosbox_title;

Expand Down Expand Up @@ -739,7 +741,9 @@ void GFX_SetTitle(Bit32s cycles,Bits frameskip,Bits timing,bool paused){
}

if (paused) strcat(title," PAUSED");
#if C_DEBUG
if (IsDebuggerActive()) strcat(title," DEBUGGER");
#endif
#if defined(C_SDL2)
SDL_SetWindowTitle(sdl.window,title);
#else
Expand Down

0 comments on commit 039b198

Please sign in to comment.