Skip to content

Mac Editor Fix#26

Open
MadkevOP7 wants to merge 11 commits into
FakeByte:masterfrom
MadkevOP7:master
Open

Mac Editor Fix#26
MadkevOP7 wants to merge 11 commits into
FakeByte:masterfrom
MadkevOP7:master

Conversation

@MadkevOP7

Copy link
Copy Markdown

Changes:

  1. Added Mac OS dynamic library loading in EOSSDKComponent
  2. Fixed .dylib extension in Config

Updated:
-Added EOSSDK.framework
-iOS Post Process build to automatically disable bitcode for running correctly
Changes:
-EOSSDK.framework couldn't be uploaded as it exceeds 100 MB
-iOSPostProcessBuild to automatically disable bitcode
@spennythug

Copy link
Copy Markdown

I tried to update this transport a few days ago and kept getting an EntryPointNotFoundException error involving libEOSSDK-Mac-Shipping.dylib. Does this fix this? If so I'll test it out.

#elif EOS_PLATFORM_OSX && EOS_UNITY
"libEOSSDK-Mac-Shipping"
#elif UNITY_EDITOR_OSX
"libEOSSDK-Mac-Shipping.dylib"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Since the string is the same in the editor and in builds, we don't need separate checks any more. Just one #elif EOS_PLATFORM_OSX should suffice

/// In the unity editor the OnDestroy function will not run so that we dont have to restart the editor after play.
/// </summary>
namespace EpicTransport {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This chunk is only whitespace changes. I'd leave it out.

return;
}
instance = this;
DontDestroyOnLoad(instance);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I didn't need this and in fact don't want it. This should be optional or left out.


// Free until the module ref count is 0
while (FreeLibrary(libraryPointer) != 0) { }
Bindings.Unhook();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Only formatting changed in this block and it didn't get better. I'd omit this chunk.


private void OnApplicationQuit() {
if (EOS != null) {
#if !UNITY_EDITOR

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nitpick: the block after this has #if UNITY_EDITOR while this is the inverse of that test. In this case I would move this block to the #else case of the if. This would only give you one affirmative test (no ! in the test) which is slightly easier to read.

@Tubeliar

Copy link
Copy Markdown

I tried to update this transport a few days ago and kept getting an EntryPointNotFoundException error involving libEOSSDK-Mac-Shipping.dylib. Does this fix this? If so I'll test it out.

I came here looking for a solution to the exact same issue you're describing. This PR fixed it for me so go ahead and try it out.

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

Successfully merging this pull request may close these issues.

3 participants