Update menu state on setting frameskip value and also print new value

This commit is contained in:
thesource 2021-10-31 09:22:47 +03:00 committed by rofl0r
parent 8461e2f08d
commit 79abd40913
1 changed files with 5 additions and 0 deletions

View File

@ -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 ///////////////////////////////