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
Note: the SteamLibrary folder can have any name, so we can only go up the hierarchy using parent accessors (../../..) or using the steamapps part of the game install path
Bloodstained install path: T:\SteamLibrary\steamapps\common\Bloodstained Ritual of the Night
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 thatlibraryfolder.vdf file structure
T:\SteamLibrary\libraryfolder.vdf
SteamLibrary
folder can have any name, so we can only go up the hierarchy using parent accessors (../../..
) or using thesteamapps
part of the game install pathT:\SteamLibrary\steamapps\common\Bloodstained Ritual of the Night
C:\Program Files (x86)\Steam
loginusers.vdf
:C:\Program Files (x86)\Steam\config\loginusers.vdf
localconfig.vdf
file is atC:\Program Files (x86)\Steam\userdata\userid\config\localconfig.vdf