From 79abd409130667de1f801a73b89e78090f6cbc71 Mon Sep 17 00:00:00 2001 From: thesource Date: Sun, 31 Oct 2021 09:22:47 +0300 Subject: [PATCH] Update menu state on setting frameskip value and also print new value --- desmume/src/frontend/posix/gtk/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desmume/src/frontend/posix/gtk/main.cpp b/desmume/src/frontend/posix/gtk/main.cpp index 8eecbda74..f324b6b9b 100644 --- a/desmume/src/frontend/posix/gtk/main.cpp +++ b/desmume/src/frontend/posix/gtk/main.cpp @@ -2373,6 +2373,11 @@ static void Modify_Frameskip(GSimpleAction *action, GVariant *parameter, gpointe if (!autoframeskip) { Frameskip = autoFrameskipMax; } + char buf[255]; + memset(buf, 0, 255); + sprintf(buf, "Frameskip value is set to %s", string); + driver->AddLine(buf); + g_simple_action_set_state(action, parameter); } /////////////////////////////// TOOLS MANAGEMENT ///////////////////////////////