From 06337c9b132d62e640cf442ce2137362862ec019 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 8 Feb 2018 13:53:13 +0000 Subject: [PATCH] Declare the init function of the joystick as restartable, so some of the dynamic settings work. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4076 --- src/dosbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dosbox.cpp b/src/dosbox.cpp index 8f017c60..df040f09 100644 --- a/src/dosbox.cpp +++ b/src/dosbox.cpp @@ -665,7 +665,7 @@ void DOSBOX_Init(void) { secprop=control->AddSection_prop("joystick",&BIOS_Init,false);//done secprop->AddInitFunction(&INT10_Init); secprop->AddInitFunction(&MOUSE_Init); //Must be after int10 as it uses CurMode - secprop->AddInitFunction(&JOYSTICK_Init); + secprop->AddInitFunction(&JOYSTICK_Init,true); const char* joytypes[] = { "auto", "2axis", "4axis", "4axis_2", "fcs", "ch", "none",0}; Pstring = secprop->Add_string("joysticktype",Property::Changeable::WhenIdle,"auto"); Pstring->Set_values(joytypes);