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
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
MyCard
ygopro-core
Commits
7bfb1c75
Commit
7bfb1c75
authored
Oct 12, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preload in debug
parent
8b12f244
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
libdebug.cpp
libdebug.cpp
+4
-0
ocgapi.cpp
ocgapi.cpp
+1
-0
No files found.
libdebug.cpp
View file @
7bfb1c75
...
@@ -36,6 +36,10 @@ int32 scriptlib::debug_add_card(lua_State *L) {
...
@@ -36,6 +36,10 @@ int32 scriptlib::debug_add_card(lua_State *L) {
return
0
;
return
0
;
if
(
playerid
!=
0
&&
playerid
!=
1
)
if
(
playerid
!=
0
&&
playerid
!=
1
)
return
0
;
return
0
;
if
(
!
pduel
->
lua
->
preloaded
)
{
pduel
->
lua
->
preloaded
=
TRUE
;
pduel
->
lua
->
call_code_function
(
0
,
(
char
*
)
"PreloadUds"
,
0
,
0
);
}
if
(
pduel
->
game_field
->
is_location_useable
(
playerid
,
location
,
sequence
))
{
if
(
pduel
->
game_field
->
is_location_useable
(
playerid
,
location
,
sequence
))
{
card
*
pcard
=
pduel
->
new_card
(
code
);
card
*
pcard
=
pduel
->
new_card
(
code
);
pcard
->
owner
=
owner
;
pcard
->
owner
=
owner
;
...
...
ocgapi.cpp
View file @
7bfb1c75
...
@@ -61,6 +61,7 @@ extern "C" DECL_DLLEXPORT ptr create_duel(uint32 seed) {
...
@@ -61,6 +61,7 @@ extern "C" DECL_DLLEXPORT ptr create_duel(uint32 seed) {
duel
*
pduel
=
new
duel
();
duel
*
pduel
=
new
duel
();
duel_set
.
insert
(
pduel
);
duel_set
.
insert
(
pduel
);
pduel
->
random
.
reset
(
seed
);
pduel
->
random
.
reset
(
seed
);
pduel
->
lua
->
preloaded
=
FALSE
;
return
(
ptr
)
pduel
;
return
(
ptr
)
pduel
;
}
}
extern
"C"
DECL_DLLEXPORT
void
start_duel
(
ptr
pduel
,
int32
options
)
{
extern
"C"
DECL_DLLEXPORT
void
start_duel
(
ptr
pduel
,
int32
options
)
{
...
...
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