Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 5700f46

Browse files
committed
添加xlua
1 parent 668dbb9 commit 5700f46

File tree

474 files changed

+63866
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

474 files changed

+63866
-0
lines changed

Assets/GameFramework/HotFix.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//-----------------------------------------------------------------------
2+
// <copyright>
3+
// Copyright (c) 2018 Zhang Yang. All rights reserved.
4+
// </copyright>
5+
// <describe> #热更新管理器# </describe>
6+
// <email> [email protected] </email>
7+
// <time> #2019年2月4日 15点11分# </time>
8+
//-----------------------------------------------------------------------
9+
10+
using System.Collections;
11+
using System.Collections.Generic;
12+
13+
namespace GameFramework.Taurus
14+
{
15+
public sealed class HotFixManager:GameFrameworkModule
16+
{
17+
18+
19+
public override void OnClose()
20+
{
21+
}
22+
23+
}
24+
}

Assets/GameFramework/HotFix/HotFixManager.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins.meta

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/Android.meta

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/Android/libs.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/Android/libs/armeabi-v7a.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/ThirdParty/Plugins/Android/libs/armeabi-v7a/libxlua.so.meta

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/Android/libs/x86.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Assets/ThirdParty/Plugins/Android/libs/x86/libxlua.so.meta

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/WSA.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/WSA/ARM.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
196 KB
Binary file not shown.

Assets/ThirdParty/Plugins/WSA/ARM/xlua.dll.meta

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/WSA/x64.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
271 KB
Binary file not shown.

Assets/ThirdParty/Plugins/WSA/x64/xlua.dll.meta

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/WSA/x86.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
217 KB
Binary file not shown.

Assets/ThirdParty/Plugins/WSA/x86/xlua.dll.meta

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/WebGL.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
extern "C" {
2+
#include "../../../WebGLPlugins/lapi.c"
3+
#include "../../../WebGLPlugins/lauxlib.c"
4+
#include "../../../WebGLPlugins/lbaselib.c"
5+
#include "../../../WebGLPlugins/lbitlib.c"
6+
#include "../../../WebGLPlugins/lcode.c"
7+
#include "../../../WebGLPlugins/lcorolib.c"
8+
#include "../../../WebGLPlugins/lctype.c"
9+
#include "../../../WebGLPlugins/ldblib.c"
10+
#include "../../../WebGLPlugins/ldebug.c"
11+
#include "../../../WebGLPlugins/ldo.c"
12+
#include "../../../WebGLPlugins/ldump.c"
13+
#include "../../../WebGLPlugins/lfunc.c"
14+
#include "../../../WebGLPlugins/lgc.c"
15+
#include "../../../WebGLPlugins/linit.c"
16+
#include "../../../WebGLPlugins/liolib.c"
17+
#include "../../../WebGLPlugins/llex.c"
18+
#include "../../../WebGLPlugins/lmathlib.c"
19+
#include "../../../WebGLPlugins/lmem.c"
20+
#include "../../../WebGLPlugins/loadlib.c"
21+
#include "../../../WebGLPlugins/lobject.c"
22+
#include "../../../WebGLPlugins/lopcodes.c"
23+
#include "../../../WebGLPlugins/loslib.c"
24+
#include "../../../WebGLPlugins/lparser.c"
25+
#include "../../../WebGLPlugins/lstate.c"
26+
#include "../../../WebGLPlugins/lstring.c"
27+
#include "../../../WebGLPlugins/lstrlib.c"
28+
#include "../../../WebGLPlugins/ltable.c"
29+
#include "../../../WebGLPlugins/ltablib.c"
30+
#include "../../../WebGLPlugins/ltm.c"
31+
#include "../../../WebGLPlugins/lundump.c"
32+
#include "../../../WebGLPlugins/lutf8lib.c"
33+
#include "../../../WebGLPlugins/lvm.c"
34+
#include "../../../WebGLPlugins/lzio.c"
35+
#include "../../../WebGLPlugins/i64lib.c"
36+
#include "../../../WebGLPlugins/perflib.c"
37+
#include "../../../WebGLPlugins/xlua.c"
38+
}
39+
40+
41+

Assets/ThirdParty/Plugins/WebGL/xlua_webgl.cpp.meta

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/ThirdParty/Plugins/iOS.meta

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#include <stddef.h>
2+
#include <stdlib.h>
3+
4+
int* xlua_hotfix_flags = NULL;
5+
int xlua_hotfix_flags_len = 0;
6+
7+
extern "C" {
8+
9+
int xlua_get_hotfix_flag(int idx) {
10+
if (idx >= xlua_hotfix_flags_len) {
11+
return 0;
12+
} else {
13+
return xlua_hotfix_flags[idx];
14+
}
15+
}
16+
17+
void xlua_set_hotfix_flag(int idx, int flag) {
18+
int i = 0;
19+
int* new_hotfix_flags = NULL;
20+
if (idx >= xlua_hotfix_flags_len) {
21+
if (xlua_hotfix_flags == NULL) {
22+
xlua_hotfix_flags = (int*)malloc((idx + 1) * sizeof(int));
23+
} else {
24+
new_hotfix_flags = (int*)realloc(xlua_hotfix_flags, (idx + 1) * sizeof(int));
25+
if (NULL == new_hotfix_flags) { // just skip operation
26+
return;
27+
}
28+
xlua_hotfix_flags = new_hotfix_flags;
29+
}
30+
for(i = xlua_hotfix_flags_len; i < (idx + 1); i++) {
31+
xlua_hotfix_flags[i] = 0;
32+
}
33+
xlua_hotfix_flags_len = idx + 1;
34+
}
35+
xlua_hotfix_flags[idx] = flag;
36+
}
37+
}

0 commit comments

Comments
 (0)