fix: native io4 regression

This commit is contained in:
2025-04-15 18:27:42 +00:00
parent b82fcc942f
commit c7ddeb53e6
4 changed files with 8 additions and 0 deletions

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

View File

@ -75,6 +75,12 @@ impl Keyboard {
// This is assumed to run in sync after the segatools module
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 {
Keyboard::Ongeki(kb) => {
if kb.enabled {

View File

@ -181,6 +181,8 @@ impl Segatools {
IOSelection::Hardware => {
ini_out.with_section(Some("io4"))
.set("enable", "0");
ini_out.with_section(Some("slider"))
.set("enable", "0");
}
}
}