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:
Florian Nücke 2014-06-08 23:45:11 +02:00
parent ac811de85d
commit 12ae22eb30
3 changed files with 58 additions and 56 deletions

View File

@ -12,6 +12,7 @@ class PersistenceAPI(owner: NativeLuaArchitecture) extends NativeLuaAPI(owner) {
lua.pushString("__persist" + UUID.randomUUID().toString.replaceAll("-", ""))
lua.setGlobal("persistKey")
if (Settings.get.allowPersistence) {
// 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 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, "perms") /* ... */
}
}
def configure() {
lua.getGlobal("eris")