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 Britchesandnmzik authored and GitHub committed 2026-10-16 01:39:40 +02:00
1 parent 57c4a6ee11
commit 6568fe9a84
3 files changed
+44 -8

No files matched your search

+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);