Skip to content

This application helps you create batch files for launching your ScummVM games. It simplifies the process of setting up individual batch files for each game, allowing you to quickly launch your favorite ScummVM titles.

Notifications You must be signed in to change notification settings

drpetersonfernandes/CreateBatchFilesForScummVMGames

Repository files navigation

Batch File Creator for ScummVM Games

This application helps you create batch files for launching your ScummVM games. It simplifies the process of setting up individual batch files for each game, allowing you to quickly launch your favorite ScummVM titles.

Features

  • User-Friendly Interface: A simple and intuitive graphical user interface (GUI) with a top menu and status bar for easy interaction.
  • ScummVM Executable Selection: Allows you to browse and select the path to your scummvm.exe file.
  • Game Folder Selection: Lets you choose the root folder containing your ScummVM game folders.
  • Automated Batch File Creation: Automatically generates batch files for each game folder within the selected root folder.
  • Logging: Provides a log window to display the progress and any errors that occur during the batch file creation process.
  • Status Bar: Displays real-time status messages about the application's state.
  • Error Handling: Includes error handling and reporting to ensure smooth operation and provide helpful feedback.
  • Silent Bug Reporting: Automatically sends error reports to a backend API for tracking and fixing issues.

How to Use

  1. Select ScummVM Executable: Click the "Browse" button next to the "ScummVM Path" field and select your scummvm.exe file.
  2. Select Game Folder: Click the "Browse" button next to the "Games Folder" field and select the root folder containing your ScummVM game folders.
  3. Create Batch Files: Click the "Create Batch Files" button to generate the batch files.
  4. Locate Batch Files: The generated batch files will be created in the root folder you selected. Each batch file will be named after the corresponding game folder (e.g., game_folder_name.bat).

System Requirements

  • Windows Operating System
  • .NET 9 Desktop Runtime
  • ScummVM installed

Installation

  1. Download the compiled application.
  2. Extract the files to a folder of your choice.
  3. Run the CreateBatchFilesForScummVMGames.exe executable.

Code Structure

  • App.xaml & App.xaml.cs: Defines the application, handles global exception handling, and centrally manages the BugReportService instance.
  • MainWindow.xaml & MainWindow.xaml.cs: Defines the main window's UI and logic, including the menu, status bar, input fields, and batch file creation process.
  • AboutWindow.xaml & AboutWindow.xaml.cs: A separate window that displays application information, version, and credits.
  • BugReportService.cs: Implements a service for sending bug reports to a remote API. It uses a single, static HttpClient for efficiency.

Error Reporting

The application includes a BugReportService that silently sends error reports to a specified API endpoint. This helps the developer track and fix issues. The API URL and key are defined as constants in App.xaml.cs.

Important: The BugReportApiUrl and BugReportApiKey are placeholders. You will need to replace them with your own values if you want to use the bug reporting functionality.

Batch File Format

Each generated batch file contains the following command:

"path\to\scummvm.exe" -p "path\to\game\folder" --auto-detect --fullscreen

About

This application helps you create batch files for launching your ScummVM games. It simplifies the process of setting up individual batch files for each game, allowing you to quickly launch your favorite ScummVM titles.

Topics

Resources

Stars

Watchers

Forks

Languages