Skip to content

Lotd-v2.1

Latest

Choose a tag to compare

@Tibbee Tibbee released this 09 Nov 12:50

Improve game detection and add configuration fallback

This commit introduces a more robust system for detecting game installations and provides a fallback mechanism for users, improving the application's reliability and user experience.

Key changes include:

  • Refactored the game installation detection logic to be more resilient. It now verifies the actual game version in a found directory by checking for specific data files (e.g.,
    YGO_DATA.dat vs. YGO_2020.dat).
  • Added a new ConfigForm that allows users to manually specify the game's installation and save file paths if automatic detection fails. This configuration is saved to a config.ini.
  • Implemented an in-memory cache for installation directories to prevent redundant, slow disk and registry lookups during a single application session.
  • Added a FormClosing event to the main DuelStarterForm to reset the game's screen state to the main menu on exit, ensuring a cleaner shutdown.