Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro-core
Commits
9139d20c
Commit
9139d20c
authored
Mar 25, 2022
by
salix5
Committed by
GitHub
Mar 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable coroutine library (#441)
parent
d1c63f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
interpreter.cpp
interpreter.cpp
+4
-0
No files found.
interpreter.cpp
View file @
9139d20c
...
@@ -30,6 +30,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
...
@@ -30,6 +30,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal
(
lua_state
,
"package"
);
lua_setglobal
(
lua_state
,
"package"
);
lua_pushnil
(
lua_state
);
lua_pushnil
(
lua_state
);
lua_setglobal
(
lua_state
,
"debug"
);
lua_setglobal
(
lua_state
,
"debug"
);
lua_pushnil
(
lua_state
);
lua_setglobal
(
lua_state
,
"coroutine"
);
luaL_getsubtable
(
lua_state
,
LUA_REGISTRYINDEX
,
"_LOADED"
);
luaL_getsubtable
(
lua_state
,
LUA_REGISTRYINDEX
,
"_LOADED"
);
lua_pushnil
(
lua_state
);
lua_pushnil
(
lua_state
);
lua_setfield
(
lua_state
,
-
2
,
"io"
);
lua_setfield
(
lua_state
,
-
2
,
"io"
);
...
@@ -39,6 +41,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
...
@@ -39,6 +41,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setfield
(
lua_state
,
-
2
,
"package"
);
lua_setfield
(
lua_state
,
-
2
,
"package"
);
lua_pushnil
(
lua_state
);
lua_pushnil
(
lua_state
);
lua_setfield
(
lua_state
,
-
2
,
"debug"
);
lua_setfield
(
lua_state
,
-
2
,
"debug"
);
lua_pushnil
(
lua_state
);
lua_setfield
(
lua_state
,
-
2
,
"coroutine"
);
lua_pop
(
lua_state
,
1
);
lua_pop
(
lua_state
,
1
);
//open all libs
//open all libs
scriptlib
::
open_cardlib
(
lua_state
);
scriptlib
::
open_cardlib
(
lua_state
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment