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
b31b53cc
Commit
b31b53cc
authored
Sep 25, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
parents
1d114d6b
3022d8ef
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
458 additions
and
51 deletions
+458
-51
gframe/duelclient.cpp
gframe/duelclient.cpp
+13
-12
gframe/irrUString.h
gframe/irrUString.h
+18
-18
lflist.conf
lflist.conf
+409
-17
strings.conf
strings.conf
+18
-4
No files found.
gframe/duelclient.cpp
View file @
b31b53cc
...
@@ -1146,21 +1146,22 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1146,21 +1146,22 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
wchar_t
vic_buf
[
256
];
wchar_t
vic_buf
[
256
];
if
(
player
==
2
)
if
(
player
==
2
)
mainGame
->
showcardcode
=
3
;
mainGame
->
showcardcode
=
3
;
else
if
(
mainGame
->
LocalPlayer
(
player
)
==
0
)
{
else
{
mainGame
->
showcardcode
=
1
;
wchar_t
vic_name
[
20
];
if
(
match_kill
)
if
(
mainGame
->
LocalPlayer
(
player
)
==
0
)
{
myswprintf
(
vic_buf
,
dataManager
.
GetVictoryString
(
0xffff
),
dataManager
.
GetName
(
match_kill
));
mainGame
->
showcardcode
=
1
;
else
if
(
type
<
0x10
)
myswprintf
(
vic_name
,
L"%ls"
,
mainGame
->
dInfo
.
clientname
);
myswprintf
(
vic_buf
,
L"[%ls] %ls"
,
mainGame
->
dInfo
.
clientname
,
dataManager
.
GetVictoryString
(
type
));
}
else
else
{
myswprintf
(
vic_buf
,
L"%ls"
,
dataManager
.
GetVictoryString
(
type
));
mainGame
->
showcardcode
=
2
;
mainGame
->
dInfo
.
vic_string
=
vic_buf
;
myswprintf
(
vic_name
,
L"%ls"
,
mainGame
->
dInfo
.
hostname
);
}
else
{
}
mainGame
->
showcardcode
=
2
;
if
(
mainGame
->
gameConf
.
hide_player_name
)
myswprintf
(
vic_name
,
L"********"
);
if
(
match_kill
)
if
(
match_kill
)
myswprintf
(
vic_buf
,
dataManager
.
GetVictoryString
(
0xffff
),
dataManager
.
GetName
(
match_kill
));
myswprintf
(
vic_buf
,
dataManager
.
GetVictoryString
(
0xffff
),
dataManager
.
GetName
(
match_kill
));
else
if
(
type
<
0x10
)
else
if
(
type
<
0x10
)
myswprintf
(
vic_buf
,
L"[%ls] %ls"
,
mainGame
->
dInfo
.
host
name
,
dataManager
.
GetVictoryString
(
type
));
myswprintf
(
vic_buf
,
L"[%ls] %ls"
,
vic_
name
,
dataManager
.
GetVictoryString
(
type
));
else
else
myswprintf
(
vic_buf
,
L"%ls"
,
dataManager
.
GetVictoryString
(
type
));
myswprintf
(
vic_buf
,
L"%ls"
,
dataManager
.
GetVictoryString
(
type
));
mainGame
->
dInfo
.
vic_string
=
vic_buf
;
mainGame
->
dInfo
.
vic_string
=
vic_buf
;
...
...
gframe/irrUString.h
View file @
b31b53cc
...
@@ -111,9 +111,9 @@ inline uchar16_t swapEndian16(const uchar16_t& c) {
...
@@ -111,9 +111,9 @@ inline uchar16_t swapEndian16(const uchar16_t& c) {
//! \return The new value.
//! \return The new value.
inline
uchar32_t
swapEndian32
(
const
uchar32_t
&
c
)
{
inline
uchar32_t
swapEndian32
(
const
uchar32_t
&
c
)
{
return
((
c
>>
24
)
&
0x000000FF
)
|
return
((
c
>>
24
)
&
0x000000FF
)
|
((
c
>>
8
)
&
0x0000FF00
)
|
((
c
>>
8
)
&
0x0000FF00
)
|
((
c
<<
8
)
&
0x00FF0000
)
|
((
c
<<
8
)
&
0x00FF0000
)
|
((
c
<<
24
)
&
0xFF000000
);
((
c
<<
24
)
&
0xFF000000
);
}
}
//! The Unicode byte order mark.
//! The Unicode byte order mark.
...
@@ -138,21 +138,21 @@ const u8 BOM_ENCODE_UTF32_LEN = 4;
...
@@ -138,21 +138,21 @@ const u8 BOM_ENCODE_UTF32_LEN = 4;
//! Unicode encoding type.
//! Unicode encoding type.
enum
EUTF_ENCODE
{
enum
EUTF_ENCODE
{
EUTFE_NONE
=
0
,
EUTFE_NONE
=
0
,
EUTFE_UTF8
,
EUTFE_UTF8
,
EUTFE_UTF16
,
EUTFE_UTF16
,
EUTFE_UTF16_LE
,
EUTFE_UTF16_LE
,
EUTFE_UTF16_BE
,
EUTFE_UTF16_BE
,
EUTFE_UTF32
,
EUTFE_UTF32
,
EUTFE_UTF32_LE
,
EUTFE_UTF32_LE
,
EUTFE_UTF32_BE
EUTFE_UTF32_BE
};
};
//! Unicode endianness.
//! Unicode endianness.
enum
EUTF_ENDIAN
{
enum
EUTF_ENDIAN
{
EUTFEE_NATIVE
=
0
,
EUTFEE_NATIVE
=
0
,
EUTFEE_LITTLE
,
EUTFEE_LITTLE
,
EUTFEE_BIG
EUTFEE_BIG
};
};
//! Returns the specified unicode byte order mark in a byte array.
//! Returns the specified unicode byte order mark in a byte array.
...
@@ -2234,7 +2234,7 @@ public:
...
@@ -2234,7 +2234,7 @@ public:
for
(
u32
j
=
0
;
j
<
count
;
++
j
)
{
for
(
u32
j
=
0
;
j
<
count
;
++
j
)
{
if
(
ch
==
c
[
j
])
{
if
(
ch
==
c
[
j
])
{
if
((
!
ignoreEmptyTokens
||
pos
-
lastpos
!=
0
)
&&
if
((
!
ignoreEmptyTokens
||
pos
-
lastpos
!=
0
)
&&
!
lastWasSeparator
)
!
lastWasSeparator
)
ret
.
push_back
(
ustring16
<
TAlloc
>
(
&
array
[
lastpospos
],
pos
-
lastpos
));
ret
.
push_back
(
ustring16
<
TAlloc
>
(
&
array
[
lastpospos
],
pos
-
lastpos
));
foundSeparator
=
true
;
foundSeparator
=
true
;
lastpos
=
(
keepSeparators
?
pos
:
pos
+
1
);
lastpos
=
(
keepSeparators
?
pos
:
pos
+
1
);
...
@@ -2836,7 +2836,7 @@ public:
...
@@ -2836,7 +2836,7 @@ public:
//! \return An enum describing the endianness of this string.
//! \return An enum describing the endianness of this string.
const
unicode
::
EUTF_ENDIAN
getEndianness
()
const
{
const
unicode
::
EUTF_ENDIAN
getEndianness
()
const
{
if
(
encoding
==
unicode
::
EUTFE_UTF16_LE
||
if
(
encoding
==
unicode
::
EUTFE_UTF16_LE
||
encoding
==
unicode
::
EUTFE_UTF32_LE
)
encoding
==
unicode
::
EUTFE_UTF32_LE
)
return
unicode
::
EUTFEE_LITTLE
;
return
unicode
::
EUTFEE_LITTLE
;
else
return
unicode
::
EUTFEE_BIG
;
else
return
unicode
::
EUTFEE_BIG
;
}
}
...
@@ -2964,7 +2964,7 @@ template <typename TAlloc>
...
@@ -2964,7 +2964,7 @@ template <typename TAlloc>
inline
ustring16
<
TAlloc
>
&&
operator
+
(
ustring16
<
TAlloc
>
&&
left
,
ustring16
<
TAlloc
>
&&
right
)
{
inline
ustring16
<
TAlloc
>
&&
operator
+
(
ustring16
<
TAlloc
>
&&
left
,
ustring16
<
TAlloc
>
&&
right
)
{
//std::cout << "MOVE operator+(&&, &&)" << std::endl;
//std::cout << "MOVE operator+(&&, &&)" << std::endl;
if
((
right
.
size_raw
()
<=
left
.
capacity
()
-
left
.
size_raw
())
||
if
((
right
.
size_raw
()
<=
left
.
capacity
()
-
left
.
size_raw
())
||
(
right
.
capacity
()
-
right
.
size_raw
()
<
left
.
size_raw
()))
{
(
right
.
capacity
()
-
right
.
size_raw
()
<
left
.
size_raw
()))
{
left
.
append
(
right
);
left
.
append
(
right
);
return
std
::
move
(
left
);
return
std
::
move
(
left
);
}
else
{
}
else
{
...
@@ -3052,7 +3052,7 @@ namespace unicode {
...
@@ -3052,7 +3052,7 @@ namespace unicode {
//! Hashing algorithm for hashing a ustring. Used for things like unordered_maps.
//! Hashing algorithm for hashing a ustring. Used for things like unordered_maps.
//! Algorithm taken from std::hash<std::string>.
//! Algorithm taken from std::hash<std::string>.
class
hash
:
public
std
::
unary_function
<
core
::
ustring
,
size_t
>
{
class
uhash
{
public:
public:
size_t
operator
()(
const
core
::
ustring
&
s
)
const
{
size_t
operator
()(
const
core
::
ustring
&
s
)
const
{
size_t
ret
=
2166136261U
;
size_t
ret
=
2166136261U
;
...
...
lflist.conf
View file @
b31b53cc
This diff is collapsed.
Click to expand it.
strings.conf
View file @
b31b53cc
...
@@ -655,6 +655,8 @@
...
@@ -655,6 +655,8 @@
!
counter
0
x66
指示物(推荐捏军贯)
!
counter
0
x66
指示物(推荐捏军贯)
!
counter
0
x67
指示物(战斗车轮)
!
counter
0
x67
指示物(战斗车轮)
!
counter
0
x68
指示物(图腾柱)
!
counter
0
x68
指示物(图腾柱)
!
counter
0
x69
指示物(吠陀-优婆尼沙昙)
!
counter
0
x6a
响鸣指示物
#setnames, using tab for comment
#setnames, using tab for comment
!
setname
0
x1
正义盟军
A
・
O
・
J
!
setname
0
x1
正义盟军
A
・
O
・
J
!
setname
0
x2
次世代 ジェネクス
!
setname
0
x2
次世代 ジェネクス
...
@@ -776,7 +778,7 @@
...
@@ -776,7 +778,7 @@
!
setname
0
x1050
凶饿毒|蛇毒 スターヴ・ヴェノム
!
setname
0
x1050
凶饿毒|蛇毒 スターヴ・ヴェノム
!
setname
0
x51
零件 ガジェット
!
setname
0
x51
零件 ガジェット
!
setname
0
x52
守护者 ガーディアン
!
setname
0
x52
守护者 ガーディアン
!
setname
0
x1052
门之守护神|守护者
Gate
Guardian
!
setname
0
x1052
门之守护神|守护者
ゲート・ガーディアン
!
setname
0
x53
星圣 セイクリッド
!
setname
0
x53
星圣 セイクリッド
!
setname
0
x54
我我我 ガガガ
!
setname
0
x54
我我我 ガガガ
!
setname
0
x55
光子 フォトン
!
setname
0
x55
光子 フォトン
...
@@ -818,6 +820,7 @@
...
@@ -818,6 +820,7 @@
!
setname
0
x73
超量 エクシーズ
!
setname
0
x73
超量 エクシーズ
!
setname
0
x1073
混沌超量
CX
(カオスエクシーズ)
!
setname
0
x1073
混沌超量
CX
(カオスエクシーズ)
!
setname
0
x2073
超量龙 エクシーズ・ドラゴン
!
setname
0
x2073
超量龙 エクシーズ・ドラゴン
!
setname
0
x4073
铠装超量 アーマード・エクシーズ
!
setname
0
x74
水精鳞 水精鱗
!
setname
0
x74
水精鳞 水精鱗
!
setname
0
x75
深渊 アビス
!
setname
0
x75
深渊 アビス
!
setname
0
x76
纹章兽 紋章獣
!
setname
0
x76
纹章兽 紋章獣
...
@@ -1170,7 +1173,7 @@
...
@@ -1170,7 +1173,7 @@
!
setname
0
x187
桥梁 架け橋
!
setname
0
x187
桥梁 架け橋
!
setname
0
x188
深渊之兽 ビーステッド
!
setname
0
x188
深渊之兽 ビーステッド
!
setname
0
x189
俱舍怒威族 クシャトリラ
!
setname
0
x189
俱舍怒威族 クシャトリラ
!
setname
0
x18a
魊影
Ghoti
!
setname
0
x18a
魊影
ゴーティス
!
setname
0
x18b
救援
ACE
队
R
-
ACE
!
setname
0
x18b
救援
ACE
队
R
-
ACE
!
setname
0
x18c
纯爱妖精 ピュアリィ
!
setname
0
x18c
纯爱妖精 ピュアリィ
!
setname
0
x18d
御巫
!
setname
0
x18d
御巫
...
@@ -1178,11 +1181,22 @@
...
@@ -1178,11 +1181,22 @@
!
setname
0
x18f
防火 ファイアウォール
!
setname
0
x18f
防火 ファイアウォール
!
setname
0
x190
末那愚子族 マナドゥム
!
setname
0
x190
末那愚子族 マナドゥム
!
setname
0
x191
妮穆蕾莉娅 ネムレリア
!
setname
0
x191
妮穆蕾莉娅 ネムレリア
!
setname
0
x192
黄金荣耀
Gold
Pride
!
setname
0
x192
金傲大奖赛
GP
(ゴールド・プライド)
!
setname
0
x193
迷宫壁
Labyrinth
Wall
!
setname
0
x193
迷宫壁
ラビリンス・ウォール
!
setname
0
x194
至爱 フェイバリット
!
setname
0
x194
至爱 フェイバリット
!
setname
0
x195
征服斗魂
VS
(ヴァンキッシュ・ソウル)
!
setname
0
x195
征服斗魂
VS
(ヴァンキッシュ・ソウル)
!
setname
0
x196
新式魔厨 ヌーベルズ
!
setname
0
x196
新式魔厨 ヌーベルズ
!
setname
0
x197
食谱 レシピ
!
setname
0
x197
食谱 レシピ
!
setname
0
x198
维萨斯 ヴィサス
!
setname
0
x198
维萨斯 ヴィサス
!
setname
0
x199
反击 カウンター
!
setname
0
x199
反击 カウンター
!
setname
0
x19a
吠陀 ヴェーダ
!
setname
0
x19b
迪亚贝尔斯塔尔 ディアベルスター
!
setname
0
x19c
蛇眼 スネークアイ
!
setname
0
x19d
荷鲁斯 ホルス
!
setname
0
x19e
罪宝
!
setname
0
x19f
圣菓使 聖菓使
!
setname
0
x1a0
哈特 ハート
!
setname
0
x1a1
莫忘 メメント
!
setname
0
x1a2
百夫长骑士 センチュリオン
!
setname
0
x1a3
异响鸣 ヴァルモニカ
!
setname
0
x1a4
蒂斯蒂娜
Tistina
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