Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
fc46f6fa
Commit
fc46f6fa
authored
Apr 08, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ifdef
parent
3a436bed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
Classes/ocgcore/libduel.cpp
Classes/ocgcore/libduel.cpp
+8
-2
Classes/ocgcore/scriptlib.h
Classes/ocgcore/scriptlib.h
+3
-2
No files found.
Classes/ocgcore/libduel.cpp
View file @
fc46f6fa
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
#include "group.h"
#include "group.h"
#include "ocgapi.h"
#include "ocgapi.h"
#ifdef _IRR_ANDROID_PLATFORM_
int32_t
scriptlib
::
duel_load_script
(
lua_State
*
L
)
{
int32_t
scriptlib
::
duel_load_script
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_STRING
,
1
);
check_param
(
L
,
PARAM_TYPE_STRING
,
1
);
...
@@ -24,6 +26,10 @@ int32_t scriptlib::duel_load_script(lua_State *L) {
...
@@ -24,6 +26,10 @@ int32_t scriptlib::duel_load_script(lua_State *L) {
return
1
;
return
1
;
}
}
#endif
int32_t
scriptlib
::
duel_enable_global_flag
(
lua_State
*
L
)
{
int32_t
scriptlib
::
duel_enable_global_flag
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
int32_t
flag
=
(
int32_t
)
lua_tointeger
(
L
,
1
);
int32_t
flag
=
(
int32_t
)
lua_tointeger
(
L
,
1
);
...
@@ -4850,9 +4856,9 @@ int32_t scriptlib::duel_majestic_copy(lua_State *L) {
...
@@ -4850,9 +4856,9 @@ int32_t scriptlib::duel_majestic_copy(lua_State *L) {
}
}
static
const
struct
luaL_Reg
duellib
[]
=
{
static
const
struct
luaL_Reg
duellib
[]
=
{
//For DIY
#ifdef _IRR_ANDROID_PLATFORM_
{
"LoadScript"
,
scriptlib
::
duel_load_script
},
{
"LoadScript"
,
scriptlib
::
duel_load_script
},
//
#endif
{
"EnableGlobalFlag"
,
scriptlib
::
duel_enable_global_flag
},
{
"EnableGlobalFlag"
,
scriptlib
::
duel_enable_global_flag
},
{
"GetLP"
,
scriptlib
::
duel_get_lp
},
{
"GetLP"
,
scriptlib
::
duel_get_lp
},
...
...
Classes/ocgcore/scriptlib.h
View file @
fc46f6fa
...
@@ -29,9 +29,10 @@ public:
...
@@ -29,9 +29,10 @@ public:
static
int32_t
check_param_count
(
lua_State
*
L
,
int32_t
count
);
static
int32_t
check_param_count
(
lua_State
*
L
,
int32_t
count
);
static
int32_t
check_action_permission
(
lua_State
*
L
);
static
int32_t
check_action_permission
(
lua_State
*
L
);
//For DIY
#ifdef _IRR_ANDROID_PLATFORM_
static
int32_t
duel_load_script
(
lua_State
*
L
);
static
int32_t
duel_load_script
(
lua_State
*
L
);
#endif
//card lib
//card lib
static
int32_t
card_get_code
(
lua_State
*
L
);
static
int32_t
card_get_code
(
lua_State
*
L
);
static
int32_t
card_get_origin_code
(
lua_State
*
L
);
static
int32_t
card_get_origin_code
(
lua_State
*
L
);
...
...
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