Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to mono search path logic breaks MacOS dll loading #67

Open
CptMoore opened this issue Dec 28, 2024 · 0 comments
Open

Change to mono search path logic breaks MacOS dll loading #67

CptMoore opened this issue Dec 28, 2024 · 0 comments

Comments

@CptMoore
Copy link
Contributor

The changes introduced in #57 break env variable interpretations on MacOS.

Before we could specify the target assembly relative to the resources directory path and omit additional search paths:

DOORSTOP_TARGET_ASSEMBLY="Mods/ModTek/lib/ModTek.Preloader.dll"

Now it has to be:

DOORSTOP_TARGET_ASSEMBLY="BattleTech.app/Contents/Resources/Mods/ModTek/lib/ModTek.Preloader.dll"
DOORSTOP_MONO_DLL_SEARCH_PATH_OVERRIDE="BattleTech.app/Contents/Resources/Mods/ModTek/lib"

Note that neither Windows nor Linux are affected, its just MacOS.

Our workaround is to add via run.sh a hardcoded prefix to paths in case its Darwin:

    additional_path="BattleTech.app/Contents/Resources"
    DOORSTOP_TARGET_ASSEMBLY="$additional_path/$DOORSTOP_TARGET_ASSEMBLY"
    DOORSTOP_MONO_DLL_SEARCH_PATH_OVERRIDE="$additional_path/$DOORSTOP_MONO_DLL_SEARCH_PATH_OVERRIDE"

Additionally, the README does not mention DOORSTOP_MONO_DLL_SEARCH_PATH_OVERRIDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant