Feature/app launcher - #49
Open
goldorakiller wants to merge 2 commits into
Open
Conversation
- Fix: propagate --external-launcher to the intro video, so it no longer
forces focus back to EmulationStation when launched from an external
frontend.
- Fix: align FocusDelay/VideoDelay fallback defaults with the values
written to the default retrobat.ini (previously inconsistent).
- Fix: preserve original exception stack trace in IniFile's constructor
(`throw ex;` -> `throw;`).
- Cleanup: remove RawInput.cs (dead code, never referenced) and the
orphaned SharpDX packages.config entry (no longer referenced by the
project).
- Cleanup: replace empty `catch { }` blocks with logged warnings across
Program.cs, SplashVideo.cs and VideoPlayerForm.cs.
- Refactor: split the ~900-line Main() into focused, testable classes:
StartupFileChecker, RetroBatConfigLoader, AutostartManager,
DpiAwarenessManager, EmulationStationSettings and
EmulationStationLauncher. Behavior is preserved, including edge cases
(early return when EmulationStation fails to start still skips the
final success log, same as before).
Adds a retrobat.ini option to launch one or more external programs (.exe, .bat, .cmd...) alongside EmulationStation, useful for companion tools such as DMD emulators, overlays, or other launcher utilities. - New [RetroBat] key AppLauncher (and AppLauncher2, AppLauncher3, ... for additional apps). Empty by default, fully opt-in. - Optional "-nowindow" suffix on the value to start the app without a visible window (uses CreateNoWindow, only effective when paired with UseShellExecute=false). - Apps are launched fire-and-forget as early as possible in the startup sequence (right after retrobat.ini is loaded), so they run in parallel with the rest of RetroBat's startup instead of waiting for the splash video and EmulationStation to be ready. - Missing files or launch failures are logged as warnings and never block RetroBat's own startup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add AppLauncher: launch companion apps in parallel with RetroBat