RWELabs / Stardew-Valley-Mod-Manager

[Passion Project] The Stardew Valley Mod Manager is a powerful tool that is designed to be used alongside SMAPI to help you install and manage mods, automatically install modpacks and manage your game saves.
Other
26 stars 1 forks source link

[Issue] Stardew directory auto-detection includes the executable name in the path. #131

Open RyanWalpole opened 2 months ago

RyanWalpole commented 2 months ago

The Issue or Bug

During first run setup, if the application detects an installation on any drive other than the C drive - at the defined "expected" locations, it pre-fills the directory textbox with the correct path but includes the file name for the executable, which the "directory is valid" flag is not expecting.

Version

240402, 240501

Operating System

Windows 11

Steps to reproduce the behavior

  1. Have Stardew Valley/SMAPI installed at a directory that is fetched by the auto-detection but not on the C drive (e.g. D:\SteamLibrary\steamapps\common\Stardew Valley)

  2. Run the first run setup

  3. Observe that the detected directory includes the file name and extension.

Log Files

No response

Screenshots

image

Additional Context

No response

Suggested Resolution

Likely the auto detection is coded to include the executable name and extension. It would be as simple as removing Stardew Valley.exe from this code.