Skip to content

Commit

Permalink
debug: continue logging whilst playing
Browse files Browse the repository at this point in the history
Signed-off-by: Mahyar Koshkouei <[email protected]>
  • Loading branch information
deltabeard committed Feb 1, 2025
1 parent b03b99e commit 1abafbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/debug-nuklear/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ static void render_peanut_gb(struct nk_context *ctx, struct gb_s *gb)
log_file = NULL;
}

if((gb_state == GB_STATE_FRAME_STEP && frame_step != 0) && log == nk_true)
if(((gb_state == GB_STATE_FRAME_STEP && frame_step != 0) ||
gb_state == GB_STATE_PLAYING) && log == nk_true)
{
int ret;
ret = SDL_LockTexture(gb_priv->gb_lcd_tex, NULL,
Expand Down

0 comments on commit 1abafbd

Please sign in to comment.