Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
26c2446f
Commit
26c2446f
authored
Oct 08, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid wcscat
parent
f5d3cb23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
gframe/game.cpp
gframe/game.cpp
+4
-6
No files found.
gframe/game.cpp
View file @
26c2446f
...
@@ -1582,8 +1582,8 @@ void Game::ShowCardInfo(int code, bool resize) {
...
@@ -1582,8 +1582,8 @@ void Game::ShowCardInfo(int code, bool resize) {
offset_info
=
15
;
offset_info
=
15
;
if
(
!
(
cd
.
type
&
TYPE_LINK
))
{
if
(
!
(
cd
.
type
&
TYPE_LINK
))
{
const
wchar_t
*
form
=
L"\u2605"
;
const
wchar_t
*
form
=
L"\u2605"
;
if
(
cd
.
type
&
TYPE_XYZ
)
form
=
L"\u2606"
;
if
(
cd
.
type
&
TYPE_XYZ
)
myswprintf
(
formatBuffer
,
L"[%ls%d] "
,
form
,
cd
.
level
)
;
form
=
L"\u2606"
;
wchar_t
adBuffer
[
16
];
wchar_t
adBuffer
[
16
];
if
(
cd
.
attack
<
0
&&
cd
.
defense
<
0
)
if
(
cd
.
attack
<
0
&&
cd
.
defense
<
0
)
myswprintf
(
adBuffer
,
L"?/?"
);
myswprintf
(
adBuffer
,
L"?/?"
);
...
@@ -1593,16 +1593,14 @@ void Game::ShowCardInfo(int code, bool resize) {
...
@@ -1593,16 +1593,14 @@ void Game::ShowCardInfo(int code, bool resize) {
myswprintf
(
adBuffer
,
L"%d/?"
,
cd
.
attack
);
myswprintf
(
adBuffer
,
L"%d/?"
,
cd
.
attack
);
else
else
myswprintf
(
adBuffer
,
L"%d/%d"
,
cd
.
attack
,
cd
.
defense
);
myswprintf
(
adBuffer
,
L"%d/%d"
,
cd
.
attack
,
cd
.
defense
);
wcscat
(
formatBuffer
,
adBuffer
);
myswprintf
(
formatBuffer
,
L"[%ls%d] %ls"
,
form
,
cd
.
level
,
adBuffer
);
}
else
{
}
else
{
myswprintf
(
formatBuffer
,
L"[LINK-%d] "
,
cd
.
level
);
wchar_t
adBuffer
[
16
];
wchar_t
adBuffer
[
16
];
if
(
cd
.
attack
<
0
)
if
(
cd
.
attack
<
0
)
myswprintf
(
adBuffer
,
L"?/- "
);
myswprintf
(
adBuffer
,
L"?/- "
);
else
else
myswprintf
(
adBuffer
,
L"%d/- "
,
cd
.
attack
);
myswprintf
(
adBuffer
,
L"%d/- "
,
cd
.
attack
);
wcscat
(
formatBuffer
,
adBuffer
);
myswprintf
(
formatBuffer
,
L"[LINK-%d] %ls%ls"
,
cd
.
level
,
adBuffer
,
dataManager
.
FormatLinkMarker
(
cd
.
link_marker
));
wcscat
(
formatBuffer
,
dataManager
.
FormatLinkMarker
(
cd
.
link_marker
));
}
}
if
(
cd
.
type
&
TYPE_PENDULUM
)
{
if
(
cd
.
type
&
TYPE_PENDULUM
)
{
wchar_t
scaleBuffer
[
16
];
wchar_t
scaleBuffer
[
16
];
...
...
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