private static int SetLocalFileInfo(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 3); PlatformUtil platformUtil = (PlatformUtil)ToLua.CheckObject(L, 1, typeof(PlatformUtil)); string key = ToLua.CheckString(L, 2); string value = ToLua.CheckString(L, 3); platformUtil.SetLocalFileInfo(key, value); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }