Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Fix assembly loading on windows headless #70

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Fix assembly loading on windows headless #70

merged 1 commit into from
Aug 29, 2022

Conversation

zkxs
Copy link
Collaborator

@zkxs zkxs commented Aug 29, 2022

This fixes #53.

I don't know why. I don't know how. Send help.

Look at these docs. Nothing in them has a big ol "danger this will just be broken in some cases" label. WTF.
Assembly.LoadFrom
Assembly.LoadFile

Copy link
Member

@ljoonal ljoonal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at these docs. Nothing in them has a big ol "danger this will just be broken in some cases" label. WTF.

Stack overflow says:

Main difference is that LoadFrom can be redirected to another assembly at a different path but with same identity if it's already loaded. LoadFile just loads exactly what the caller requested.

So I'm guessing that there's some funny things on headless where the neos assembly is actually not loaded from the exe file..?

@zkxs
Copy link
Collaborator Author

zkxs commented Aug 29, 2022

I have no idea. Froox uses LoadFrom to load plugins, and I've tested this on my headed install and it didn't break. So it looks like it's 1.12.1 time. Ugh.

@zkxs zkxs merged commit 133c7cc into master Aug 29, 2022
@zkxs zkxs deleted the i-hate-microsoft branch August 29, 2022 07:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Neos Mod Loader not starting correctly on Windows Headless Host/Client
2 participants