mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-03 07:10:42 -07:00
[+] Hide sides on gitadora 𝛿 (#705)
## Description of change Added an option to only disable the left/right screens of gitadora gw delta while exposing the touch panel screen. ## Testing Tested by hand on CachyOS + hyprland + gamescope + wine + vnc + phone + cat 🐈⬛ <img width="2560" height="1707" alt="image" src="https://github.com/user-attachments/assets/a2ef0172-68e2-43c2-89c3-4863698f2f00" />
This commit is contained in:
@@ -645,11 +645,26 @@ int main_implementation(int argc, char *argv[]) {
|
||||
if (options[launcher::Options::GitaDoraCabinetType].is_active()) {
|
||||
games::gitadora::CAB_TYPE = options[launcher::Options::GitaDoraCabinetType].value_uint32();
|
||||
}
|
||||
if (options[launcher::Options::GitaDoraArenaWindowLayout].is_active()) {
|
||||
if (GRAPHICS_WINDOWED) {
|
||||
const auto window_count = options[launcher::Options::GitaDoraArenaWindowLayout].value_uint32();
|
||||
if (window_count == 1) {
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
} else if (window_count == 2) {
|
||||
GRAPHICS_GITADORA_HIDE_SIDE_WINDOWS = true;
|
||||
}
|
||||
} else {
|
||||
log_warning("launcher", "-gdawindows only applies with -w; ignoring GitaDora Arena windowed layout");
|
||||
}
|
||||
}
|
||||
if (options[launcher::Options::GitaDoraArenaSingleWindow].value_bool()) {
|
||||
// for full screen
|
||||
GRAPHICS_FORCE_SINGLE_ADAPTER = true;
|
||||
// for windowed
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
if (GRAPHICS_WINDOWED) {
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
GRAPHICS_GITADORA_HIDE_SIDE_WINDOWS = false;
|
||||
} else {
|
||||
GRAPHICS_FORCE_SINGLE_ADAPTER = true;
|
||||
GRAPHICS_PREVENT_SECONDARY_WINDOW = true;
|
||||
}
|
||||
}
|
||||
if (options[launcher::Options::GitaDoraWailHold].is_active()) {
|
||||
socd::TILT_HOLD_MS = options[launcher::Options::GitaDoraWailHold].value_uint32();
|
||||
|
||||
@@ -1104,6 +1104,24 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.game_name = "GitaDora",
|
||||
.category = "Game Options",
|
||||
},
|
||||
{
|
||||
// GitaDoraArenaWindowLayout
|
||||
.title = "GitaDora Arena Windowed Layout (EXPERIMENTAL)",
|
||||
.name = "gdawindows",
|
||||
.desc = "For Arena Model windowed mode (-w): select how many windows to create.\n\n"
|
||||
"4 windows: main + LEFT + RIGHT + SMALL.\n\n"
|
||||
"2 windows: main + SMALL.\n\n"
|
||||
"1 window: main only; use the subscreen overlay for SMALL.\n\n"
|
||||
"Ignored in fullscreen mode.",
|
||||
.type = OptionType::Enum,
|
||||
.game_name = "GitaDora",
|
||||
.category = "Game Options",
|
||||
.elements = {
|
||||
{"4", "4 windows"},
|
||||
{"2", "2 windows"},
|
||||
{"1", "1 window"},
|
||||
},
|
||||
},
|
||||
{
|
||||
// GitaDoraLefty
|
||||
.title = "GitaDora Lefty Guitar (for Digital Wailing)",
|
||||
|
||||
@@ -110,6 +110,7 @@ namespace launcher {
|
||||
GitaDoraTwoChannelAudio,
|
||||
GitaDoraCabinetType,
|
||||
GitaDoraArenaSingleWindow,
|
||||
GitaDoraArenaWindowLayout,
|
||||
GitaDoraLefty,
|
||||
GitaDoraWailHold,
|
||||
GitaDoraPickAlgo,
|
||||
|
||||
Reference in New Issue
Block a user