fix: native io4 regression
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 139 KiB |
Binary file not shown.
Before Width: | Height: | Size: 516 KiB After Width: | Height: | Size: 360 KiB |
@ -75,6 +75,12 @@ impl Keyboard {
|
|||||||
|
|
||||||
// This is assumed to run in sync after the segatools module
|
// This is assumed to run in sync after the segatools module
|
||||||
pub fn line_up(&self, ini: &mut Ini) -> Result<()> {
|
pub fn line_up(&self, ini: &mut Ini) -> Result<()> {
|
||||||
|
if let Some(enable) = ini.section(Some("io4")).and_then(|s| s.get("enable")) {
|
||||||
|
// io4 was disabled by the Segatools module -> abort
|
||||||
|
if enable == "0" {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
}
|
||||||
match self {
|
match self {
|
||||||
Keyboard::Ongeki(kb) => {
|
Keyboard::Ongeki(kb) => {
|
||||||
if kb.enabled {
|
if kb.enabled {
|
||||||
|
@ -181,6 +181,8 @@ impl Segatools {
|
|||||||
IOSelection::Hardware => {
|
IOSelection::Hardware => {
|
||||||
ini_out.with_section(Some("io4"))
|
ini_out.with_section(Some("io4"))
|
||||||
.set("enable", "0");
|
.set("enable", "0");
|
||||||
|
ini_out.with_section(Some("slider"))
|
||||||
|
.set("enable", "0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user