Skip to content

Installing linux build support breaks windows dll loading #32

@emelrad12

Description

@emelrad12

In dll manipulator line 694,
it check if it is UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
and for some reason that is true, but also UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN is true
the solution is to move windows to the first if.

#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN 
            return PInvokes_Windows.FreeLibrary(libHandle);
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            return PInvokes_Osx.dlclose(libHandle) == 0;
#elif UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
            return PInvokes_Linux.dlclose(libHandle) == 0;
#else
            throw GetUnsupportedPlatformExcpetion();
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions