Skip to content

Commit

Permalink
Update libscetool
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Jan 17, 2024
1 parent 99ccca2 commit b7a2c92
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions SCEToolSharp/LibSCEToolSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static unsafe partial class LibSceToolSharp
private static partial void rap_set_directory(byte* dirPath);

[LibraryImport("scetool")]
private static partial void set_idps_file_path(byte* filePath);
private static partial void set_idps_key(byte* key);

[LibraryImport("scetool")]
private static partial void set_act_dat_file_path(byte* filePath);
Expand Down Expand Up @@ -85,12 +85,10 @@ public static void SetRapDirectory(string dirPath)
rap_set_directory(dirPtr);
}

public static void SetIdpsFilePath(string filePath)
public static void SetIdpsKey(byte[] key)
{
if (!File.Exists(filePath)) throw new FileNotFoundException(filePath);

fixed (byte* dirPtr = Encoding.UTF8.GetBytes(filePath + '\0'))
set_idps_file_path(dirPtr);
fixed (byte* keyPtr = key)
set_idps_key(keyPtr);
}

public static void SetActDatFilePath(string filePath)
Expand Down
Binary file modified SCEToolSharp/runtimes/linux-arm64/native/libscetool.so
Binary file not shown.
Binary file modified SCEToolSharp/runtimes/linux-x64/native/libscetool.so
Binary file not shown.
Binary file modified SCEToolSharp/runtimes/osx-arm64/native/libscetool.dylib
Binary file not shown.
Binary file modified SCEToolSharp/runtimes/osx-x64/native/libscetool.dylib
Binary file not shown.
Binary file modified SCEToolSharp/runtimes/win-arm64/native/scetool.dll
Binary file not shown.
Binary file modified SCEToolSharp/runtimes/win-x64/native/scetool.dll
Binary file not shown.

0 comments on commit b7a2c92

Please sign in to comment.