Skip to content

Commit fdb03b5

Browse files
committed
fix naming consistency, remove redundant const, fix returning type
1 parent 023f2cd commit fdb03b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Ps3DiscDumper/Utils/MacOS/CoreFoundation.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public static partial class CoreFoundation
1111
{
1212
private const string AsLibraryName = "/System/Library/Frameworks/ApplicationServices.framework/Versions/Current/ApplicationServices";
1313
private const string CfLibraryName = "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation";
14-
private const string CfLibraryPath = "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation";
1514

1615
public const uint KernSuccess = 0;
1716
public const uint StringEncodingAscii = 0x0600;
@@ -21,7 +20,7 @@ public static partial class CoreFoundation
2120

2221
static CoreFoundation()
2322
{
24-
var library = DlOpen(CfLibraryPath, 0);
23+
var library = DlOpen(CfLibraryName, 0);
2524
TypeDictionaryKeyCallBacks = DlSym(library, "kCFTypeDictionaryKeyCallBacks");
2625
TypeDictionaryValueCallBacks = DlSym(library, "kCFTypeDictionaryValueCallBacks");
2726
}

Ps3DiscDumper/Utils/MacOS/IOKit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static partial class IOKit
2020
public static partial IntPtr IOServiceMatching(string name);
2121

2222
[LibraryImport(LibraryName), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
23-
public static partial int IOServiceGetMatchingServices(IntPtr mainPort, IntPtr matching, out IntPtr existing);
23+
public static partial uint IOServiceGetMatchingServices(IntPtr mainPort, IntPtr matching, out IntPtr existing);
2424

2525
[LibraryImport(LibraryName), UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
2626
public static partial IntPtr IOIteratorNext(IntPtr iterator);

0 commit comments

Comments
 (0)