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
8b12f244
Commit
8b12f244
authored
Oct 12, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix preload
parent
d30a3bff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
interpreter.h
interpreter.h
+1
-0
ocgapi.cpp
ocgapi.cpp
+4
-1
No files found.
interpreter.h
View file @
8b12f244
...
...
@@ -39,6 +39,7 @@ public:
int32
no_action
;
int32
call_depth
;
int32
disable_action_check
;
int32
preloaded
;
explicit
interpreter
(
duel
*
pd
);
~
interpreter
();
...
...
ocgapi.cpp
View file @
8b12f244
...
...
@@ -61,7 +61,6 @@ extern "C" DECL_DLLEXPORT ptr create_duel(uint32 seed) {
duel
*
pduel
=
new
duel
();
duel_set
.
insert
(
pduel
);
pduel
->
random
.
reset
(
seed
);
pduel
->
lua
->
call_code_function
(
0
,
(
char
*
)
"PreloadUds"
,
0
,
0
);
return
(
ptr
)
pduel
;
}
extern
"C"
DECL_DLLEXPORT
void
start_duel
(
ptr
pduel
,
int32
options
)
{
...
...
@@ -137,6 +136,10 @@ extern "C" DECL_DLLEXPORT int32 process(ptr pduel) {
}
extern
"C"
DECL_DLLEXPORT
void
new_card
(
ptr
pduel
,
uint32
code
,
uint8
owner
,
uint8
playerid
,
uint8
location
,
uint8
sequence
,
uint8
position
)
{
duel
*
ptduel
=
(
duel
*
)
pduel
;
if
(
!
ptduel
->
lua
->
preloaded
)
{
ptduel
->
lua
->
preloaded
=
TRUE
;
ptduel
->
lua
->
call_code_function
(
0
,
(
char
*
)
"PreloadUds"
,
0
,
0
);
}
if
(
ptduel
->
game_field
->
is_location_useable
(
playerid
,
location
,
sequence
))
{
card
*
pcard
=
ptduel
->
new_card
(
code
);
pcard
->
owner
=
owner
;
...
...
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