Implement Missing NGS2 System Functions Lock & Unlock (#1542)

* Implement NGS2 SystemLock

* Implement NGS2 SystemUnlock

* Add guard for system_handle value of 0

* Return correct error code from system_handle guard

* Validate NGS2 system handles before locking

---------

Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
Mr. Big Britches
2026-10-15 16:39:40 -07:00
committed by GitHub
parent 57c4a6ee11
commit 6568fe9a84
3 changed files with 44 additions and 8 deletions
+2
View File
@@ -1147,6 +1147,8 @@ LIB_DEFINE(InitAudio_1_Ngs2) {
LIB_FUNC("mPYgU4oYpuY", Ngs2::Ngs2SystemCreateWithAllocator);
LIB_FUNC("u-WrYDaJA3k", Ngs2::Ngs2SystemDestroy);
LIB_FUNC("vU7TQ62pItw", Ngs2::Ngs2SystemGetInfo);
LIB_FUNC("gThZqM5PYlQ", Ngs2::Ngs2SystemLock);
LIB_FUNC("JXRC5n0RQls", Ngs2::Ngs2SystemUnlock);
LIB_FUNC("U546k6orxQo", Ngs2::Ngs2RackCreateWithAllocator);
LIB_FUNC("cLV4aiT9JpA", Ngs2::Ngs2RackCreate);
LIB_FUNC("0eFLVCfWVds", Ngs2::Ngs2RackQueryBufferSize);