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
ae7a3b81
Commit
ae7a3b81
authored
Jun 08, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro-core into develop
parents
b5dd9d4a
7e1ef833
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
common.h
common.h
+6
-3
libdebug.cpp
libdebug.cpp
+4
-4
No files found.
common.h
View file @
ae7a3b81
...
@@ -26,8 +26,11 @@ inline bool check_playerid(int32_t playerid) {
...
@@ -26,8 +26,11 @@ inline bool check_playerid(int32_t playerid) {
#define OPERATION_CANCELED -1
#define OPERATION_CANCELED -1
#define TRUE 1
#define TRUE 1
#define FALSE 0
#define FALSE 0
#define SIZE_MESSAGE_BUFFER 0x2000
#define SIZE_MESSAGE_BUFFER 0x2000
#define SIZE_RETURN_VALUE 512
#define SIZE_RETURN_VALUE 512
#define SIZE_AI_NAME 128
#define SIZE_HINT_MSG 1024
#define PROCESSOR_BUFFER_LEN 0x0fffffff
#define PROCESSOR_BUFFER_LEN 0x0fffffff
#define PROCESSOR_FLAG 0xf0000000
#define PROCESSOR_FLAG 0xf0000000
...
@@ -337,9 +340,9 @@ inline bool check_playerid(int32_t playerid) {
...
@@ -337,9 +340,9 @@ inline bool check_playerid(int32_t playerid) {
#define MSG_ANNOUNCE_NUMBER 143
#define MSG_ANNOUNCE_NUMBER 143
#define MSG_CARD_HINT 160
#define MSG_CARD_HINT 160
#define MSG_TAG_SWAP 161
#define MSG_TAG_SWAP 161
#define MSG_RELOAD_FIELD 162 // Debug.ReloadFieldEnd()
#define MSG_RELOAD_FIELD 162 // Debug.ReloadFieldEnd()
or query_field_info()
#define MSG_AI_NAME 163
#define MSG_AI_NAME 163
// Debug.AIName()
#define MSG_SHOW_HINT 164
#define MSG_SHOW_HINT 164
// Debug.ShowHint()
#define MSG_PLAYER_HINT 165
#define MSG_PLAYER_HINT 165
#define MSG_MATCH_KILL 170
#define MSG_MATCH_KILL 170
#define MSG_CUSTOM_MSG 180
#define MSG_CUSTOM_MSG 180
...
...
libdebug.cpp
View file @
ae7a3b81
...
@@ -174,8 +174,8 @@ int32_t scriptlib::debug_set_ai_name(lua_State *L) {
...
@@ -174,8 +174,8 @@ int32_t scriptlib::debug_set_ai_name(lua_State *L) {
pduel
->
write_buffer8
(
MSG_AI_NAME
);
pduel
->
write_buffer8
(
MSG_AI_NAME
);
const
char
*
pstr
=
lua_tostring
(
L
,
1
);
const
char
*
pstr
=
lua_tostring
(
L
,
1
);
int
len
=
(
int
)
std
::
strlen
(
pstr
);
int
len
=
(
int
)
std
::
strlen
(
pstr
);
if
(
len
>
100
)
if
(
len
>
SIZE_AI_NAME
-
1
)
len
=
100
;
len
=
SIZE_AI_NAME
-
1
;
pduel
->
write_buffer16
(
len
);
pduel
->
write_buffer16
(
len
);
pduel
->
write_buffer
(
pstr
,
len
);
pduel
->
write_buffer
(
pstr
,
len
);
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer8
(
0
);
...
@@ -190,8 +190,8 @@ int32_t scriptlib::debug_show_hint(lua_State *L) {
...
@@ -190,8 +190,8 @@ int32_t scriptlib::debug_show_hint(lua_State *L) {
pduel
->
write_buffer8
(
MSG_SHOW_HINT
);
pduel
->
write_buffer8
(
MSG_SHOW_HINT
);
const
char
*
pstr
=
lua_tostring
(
L
,
1
);
const
char
*
pstr
=
lua_tostring
(
L
,
1
);
int
len
=
(
int
)
std
::
strlen
(
pstr
);
int
len
=
(
int
)
std
::
strlen
(
pstr
);
if
(
len
>
1024
)
if
(
len
>
SIZE_HINT_MSG
-
1
)
len
=
1024
;
len
=
SIZE_HINT_MSG
-
1
;
pduel
->
write_buffer16
(
len
);
pduel
->
write_buffer16
(
len
);
pduel
->
write_buffer
(
pstr
,
len
);
pduel
->
write_buffer
(
pstr
,
len
);
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer8
(
0
);
...
...
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