feat(settings): persisted Music level; SettingsMenu applies via GameIO
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -67,8 +67,7 @@ public final class App {
|
||||
SaveService saves = new SaveService();
|
||||
SettingsStore settingsStore = new SettingsStore();
|
||||
Settings settings = settingsStore.load();
|
||||
ConsoleIO consoleIo = io instanceof ConsoleIO c ? c : null;
|
||||
SettingsMenu.apply(settings, consoleIo);
|
||||
SettingsMenu.apply(settings, io);
|
||||
|
||||
boolean running = true;
|
||||
while (running) {
|
||||
@@ -84,7 +83,7 @@ public final class App {
|
||||
}
|
||||
}
|
||||
}
|
||||
case SETTINGS -> settings = SettingsMenu.show(io, settings, settingsStore, consoleIo);
|
||||
case SETTINGS -> settings = SettingsMenu.show(io, settings, settingsStore);
|
||||
case QUIT -> running = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user