From cdb9acdc4d710ef96aef1541210b89a3fc4a5dfd Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 11 May 2025 17:42:07 -0400 Subject: [PATCH] fflush after printing ideas and nocash messages --- desmume/src/debug.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/debug.cpp b/desmume/src/debug.cpp index 5eaa27a41..81e2b0b12 100644 --- a/desmume/src/debug.cpp +++ b/desmume/src/debug.cpp @@ -388,7 +388,10 @@ void IdeasLog(armcpu_t* cpu) if(!c) break; printf("%c",c); } + //don't emit a newline. that is a pain in the butt. + + fflush(stdout); } void NocashMessage(armcpu_t* cpu, int offset) @@ -437,6 +440,7 @@ void NocashMessage(armcpu_t* cpu, int offset) sprintf(tmp,"%lld",nds_timer); todo = mass_replace(todo,"%totalclks%",tmp); printf("%s",todo.c_str()); + fflush(stdout); } //-------