Add CD-ROM drive model configuration. Patch from EluanCM.
This commit is contained in:
parent
61bdb5c8ba
commit
53291432e8
6 changed files with 430 additions and 62 deletions
2
src/pc.c
2
src/pc.c
|
|
@ -808,6 +808,7 @@ void loadconfig(char *fn)
|
|||
bpb_disable = config_get_int(CFG_MACHINE, NULL, "bpb_disable", 0);
|
||||
|
||||
cd_speed = config_get_int(CFG_MACHINE, NULL, "cd_speed", 24);
|
||||
cd_model = cd_model_from_config((char *)config_get_string(CFG_MACHINE, NULL, "cd_model", cd_get_config_model(0)));
|
||||
|
||||
joystick_type = config_get_int(CFG_MACHINE, NULL, "joystick_type", 0);
|
||||
mouse_type = config_get_int(CFG_MACHINE, NULL, "mouse_type", 0);
|
||||
|
|
@ -955,6 +956,7 @@ void saveconfig(char *fn)
|
|||
config_set_int(CFG_MACHINE, NULL, "bpb_disable", bpb_disable);
|
||||
|
||||
config_set_int(CFG_MACHINE, NULL, "cd_speed", cd_speed);
|
||||
config_set_string(CFG_MACHINE, NULL, "cd_model", cd_model_to_config(cd_model));
|
||||
|
||||
config_set_int(CFG_MACHINE, NULL, "joystick_type", joystick_type);
|
||||
config_set_int(CFG_MACHINE, NULL, "mouse_type", mouse_type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue