Skip to content

Game executable lookup

Gregory Cabral De Los Santos edited this page Feb 18, 2026 · 1 revision

After a game is downloaded and extracted, Yamata Launcher attempts to automatically determine which file should be used to launch the game.

This process is necessary because many downloads contain multiple files, folders, or executables. In some cases, the actual game file is not located at the root level or there may be several candidates.

The goal of the executable detection system is to minimize manual configuration and allow games to be launched immediately after installation.


Why Detection is Needed

Downloaded content may include:

  • Multiple executable files
  • Installers and launchers
  • Tools or configuration utilities
  • Documentation files
  • Nested folder structures

For ROM-based systems, archives may contain:

  • Multiple ROM variants
  • BIOS files
  • Readme files
  • Extra resources

Because of this, Yamata performs an automatic lookup to determine the most appropriate file.


Detection Strategies

The detection method depends on the platform type.

ROM-Based Platforms (Emulation)

For emulation systems (NES, SNES, GB, PSX, etc.), Yamata uses a size-based heuristic.

Behavior

  1. All extracted files are scanned
  2. Files matching known ROM extensions for the platform are filtered
  3. The system selects the largest file

This works because:

  • The main ROM is typically the largest file
  • Additional files (readme, BIOS, patches) are usually smaller

Windows Games

Windows downloads often contain multiple .exe files, such as:

  • Launchers
  • Installers
  • Updaters
  • Configuration tools
  • Anti-cheat components

To handle this, Yamata uses a name-based detection system.

Behavior

  1. All .exe files are scanned recursively
  2. The scan includes:
    • Root folder
    • All subfolders
  3. Each executable name is compared against a predefined list of known game executable patterns
  4. The best match is selected

Example Matching Names

The lookup list may include patterns such as:

  • game.exe
  • launcher.exe
  • <game_name>.exe
  • start.exe
  • play.exe

Executables with installer-related names (e.g., setup.exe, uninstall.exe) are ignored when possible.


Recursive Search

For Windows games, the detection system searches:

  • All nested directories
  • Deep folder structures
  • Common distribution layouts

This ensures compatibility with packages such as:

Clone this wiki locally