-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Describe the problem
I downloaded QModManager 4.0.2.3-201-4-0-2-3-1600476097.exe, installed it on a Windows VM, copied the latest BepInEx folder over to my Mac (10.15.6). While attempting to run mono QModManager.exe, I kept getting a "Could not find Managed directory" error, no matter where I put the BepInEx directory.
A quick survey of the code
QModManager/Executable/Program.cs
Lines 54 to 55 in 77217a2
| string gameRootDirectory = Path.Combine(Environment.CurrentDirectory, "../../.."); | |
| string snManagedDirectory = Path.Combine(gameRootDirectory, "Subnautica_Data", "Managed"); |
../../../Subnautica_Data/Managed, and can fail with the above error before it calls GetOS QModManager/Executable/Program.cs
Line 79 in 77217a2
| os = GetOS(); |
~/Library/ApplicationSupport/Steam/steamapps/common/Subnautica/Subnautica.app/Contents/Resources/Data/Managed, so the check for the managed directory always fails.
I also couldn't run the QModManager.exe with out importing the BepInEx dlls to the local folder since the relative paths require me to execute the file from its own directory?
Workaround
Since the first check expected the Data folder to 3 dirctories down, I placed the BepInEx folder in ~/Library/ApplicationSupport/Steam/steamapps/common/Subnautica/Subnautica.app/Contents/Resources and ran:
cd ~/Library/ApplicationSupport/Steam/steamapps/common/Subnautica/Subnautica.app/Contents/Resources
ln -s Data Subnautica_Data
cd BepInEx/patchers/QModManager
ln -s ../../core/* .
mono QModManager.exe