beatsaber-hook
beatsaber-hook copied to clipboard
poc for oculus quest beatsaber function hooking (il2cpp)
So due to special method names, our current implementation relies on method name lookups which is bad. An alternative to this would be to create a method, say, `RunVirtualMethod` which...
Maybe I'll fix it using something like moxygen? Unsure yet, but here you go
The current implementation of these functions do not properly convert between the unicode encodings and have caused bugs in the past. This new implementation makes use of std::codecvt and std::wstring_convert....
Now that `ConstString` has made it into master and has some pretty significant benefits over previous methods of allocating manual strings (constexpr, entirely static memory, allocation-less, known AOT), it is...
Add xref traces for `il2cpp_gc_register_thread` and `il2cpp_gc_unregister_thread` at the very least. This should allow us to make stack locals gc-safe, which hardly matters at all (since nearly all code is...
So currently, we use `ByRef` which works fine for `ref/out` but in the case that it is `in` passed, we don't need it to be `T` but rather `const T`....