Skip to content

Commit

Permalink
Move lib name to common class + fix file not found
Browse files Browse the repository at this point in the history
`./Versions/Current/CoreFoundation` doesn't exist for me. Like other
definitions in this class, the `Versions/Current` part of it is not
required.

Luckily, this method doesn't look to be used anywhere.
  • Loading branch information
smoogipoo committed Jan 10, 2025
1 parent abe4ede commit 7769999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Platform/Apple/Native/CGImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public CGImage(IntPtr handle)
[LibraryImport(Interop.LIB_CORE_GRAPHICS, EntryPoint = "CGImageRelease")]
internal static partial void Release(CGImage image);

[LibraryImport("/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation", EntryPoint = "CFGetRetainCount")]
[LibraryImport(Interop.LIB_CORE_FOUNDATION, EntryPoint = "CFGetRetainCount")]
internal static partial int GetRetainCount(CGImage image);
}
}
1 change: 1 addition & 0 deletions osu.Framework/Platform/Apple/Native/Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ internal static partial class Interop
internal const string LIB_OBJ_C = "/usr/lib/libobjc.dylib";
internal const string LIB_CORE_GRAPHICS = "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics";
internal const string LIB_ACCELERATE = "/System/Library/Frameworks/Accelerate.framework/Accelerate";
internal const string LIB_CORE_FOUNDATION = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation";

internal const int RTLD_NOW = 2;

Expand Down

0 comments on commit 7769999

Please sign in to comment.