Lakifume / True-Randomization

A new randomizer for Bloodstained: Ritual of the Night
MIT License
13 stars 7 forks source link

Generation fails when using a game path that isn't the same folder as the Steam installation #39

Closed Tourmi closed 4 months ago

Tourmi commented 4 months ago

DLC fails to be detected, and generation ends up failing due to this.

Fixing this shouldn't be too bad, as the Steam library folder has a libraryfolder.vdf file at its root that points to the Steam executable.

So before going into Steam/config/loginusers.vdf, we should first check that we aren't in a different library, by checking if the {Steam}/libraryfolder.vdf file exists. If it exists, open the vdf file, check the libraryfolder.launcher value, and adjust the steam path based on that

libraryfolder.vdf file structure

"libraryfolder"
{
    "contentid"     "6614107190113200476"
    "label"     ""
    "launcher"      "C:\\Program Files (x86)\\Steam\\steam.exe"
}
Tourmi commented 4 months ago

Potentially fixed: 461f15d567b0243bde945b71547adbcd8c1cfff0

Tourmi commented 4 months ago

Solution works!