mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
Updated native lib with a couple of bugfixes (for Windows for now, others will be recompiled and updated after it's confirmed that the fixes actually work).
This commit is contained in:
parent
ac811de85d
commit
12ae22eb30
Binary file not shown.
Binary file not shown.
@ -12,6 +12,7 @@ class PersistenceAPI(owner: NativeLuaArchitecture) extends NativeLuaAPI(owner) {
|
|||||||
lua.pushString("__persist" + UUID.randomUUID().toString.replaceAll("-", ""))
|
lua.pushString("__persist" + UUID.randomUUID().toString.replaceAll("-", ""))
|
||||||
lua.setGlobal("persistKey")
|
lua.setGlobal("persistKey")
|
||||||
|
|
||||||
|
if (Settings.get.allowPersistence) {
|
||||||
// These tables must contain all java callbacks (i.e. C functions, since
|
// These tables must contain all java callbacks (i.e. C functions, since
|
||||||
// they are wrapped on the native side using a C function, of course).
|
// they are wrapped on the native side using a C function, of course).
|
||||||
// They are used when persisting/unpersisting the state so that the
|
// They are used when persisting/unpersisting the state so that the
|
||||||
@ -79,6 +80,7 @@ class PersistenceAPI(owner: NativeLuaArchitecture) extends NativeLuaAPI(owner) {
|
|||||||
lua.setField(LuaState.REGISTRYINDEX, "uperms") /* ... perms */
|
lua.setField(LuaState.REGISTRYINDEX, "uperms") /* ... perms */
|
||||||
lua.setField(LuaState.REGISTRYINDEX, "perms") /* ... */
|
lua.setField(LuaState.REGISTRYINDEX, "perms") /* ... */
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def configure() {
|
def configure() {
|
||||||
lua.getGlobal("eris")
|
lua.getGlobal("eris")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user