Skip to content

Commit

Permalink
Remove GetModuleHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
Umbranoxio committed Dec 17, 2023
1 parent 6f55e00 commit eff5344
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ScoreSaber/Core/Utils/OpenXRManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
// Adapted from https://forum.unity.com/threads/openxr-is-it-no-longer-possible-to-get-descriptive-device-names.1051493/#post-8316300

namespace ScoreSaber.Core.Utils {
internal static unsafe class OpenXRManager {
[DllImport("kernel32", CharSet = CharSet.Auto)]
private static extern IntPtr GetModuleHandle(string lpModuleName);

internal static unsafe class OpenXRManager {
[DllImport("kernel32.dll")]
public static extern bool ReadProcessMemory(IntPtr hProcess, ulong lpBaseAddress, byte[] lpBuffer, int dwSize, int lpNumberOfBytesRead = 0);

Expand Down

0 comments on commit eff5344

Please sign in to comment.