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
MobiusMei
ygopro
Commits
84c0d7fd
Commit
84c0d7fd
authored
Oct 01, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro
parents
48d36486
3ecfeece
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
421 additions
and
216 deletions
+421
-216
gframe/config.h
gframe/config.h
+0
-1
gframe/gframe.cpp
gframe/gframe.cpp
+7
-5
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+13
-3
gframe/replay.cpp
gframe/replay.cpp
+1
-1
lflist.conf
lflist.conf
+395
-201
strings.conf
strings.conf
+5
-5
No files found.
gframe/config.h
View file @
84c0d7fd
...
...
@@ -92,7 +92,6 @@ extern int enable_log;
extern
bool
exit_on_return
;
extern
bool
open_file
;
extern
wchar_t
open_file_name
[
256
];
extern
wchar_t
open_file_name_with_category
[
256
];
extern
bool
bot_mode
;
#endif
gframe/gframe.cpp
View file @
84c0d7fd
...
...
@@ -11,7 +11,6 @@ int enable_log = 0;
bool
exit_on_return
=
false
;
bool
open_file
=
false
;
wchar_t
open_file_name
[
256
]
=
L""
;
wchar_t
open_file_name_with_category
[
256
]
=
L""
;
bool
bot_mode
=
false
;
void
ClickButton
(
irr
::
gui
::
IGUIElement
*
btn
)
{
...
...
@@ -128,11 +127,14 @@ int main(int argc, char* argv[]) {
exit_on_return
=
!
keep_on_return
;
if
(
i
<
wargc
)
{
open_file
=
true
;
wcscpy
(
open_file_name
,
wargv
[
i
]);
if
(
deckCategorySpecified
&&
wcslen
(
ygo
::
mainGame
->
gameConf
.
lastcategory
))
{
swprintf
(
open_file_name_with_category
,
256
,
L"%ls/%ls"
,
ygo
::
mainGame
->
gameConf
.
lastcategory
,
open_file_name
);
if
(
deckCategorySpecified
)
{
#ifdef WIN32
myswprintf
(
open_file_name
,
L"%ls
\\
%ls"
,
ygo
::
mainGame
->
gameConf
.
lastcategory
,
wargv
[
i
]);
#else
myswprintf
(
open_file_name
,
L"%ls/%ls"
,
ygo
::
mainGame
->
gameConf
.
lastcategory
,
wargv
[
i
]);
#endif
}
else
{
wcscpy
(
open_file_name
_with_category
,
open_file_name
);
wcscpy
(
open_file_name
,
wargv
[
i
]
);
}
}
ClickButton
(
ygo
::
mainGame
->
btnDeckEdit
);
...
...
gframe/menu_handler.cpp
View file @
84c0d7fd
...
...
@@ -399,14 +399,14 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
}
case
BUTTON_DECK_EDIT
:
{
mainGame
->
RefreshCategoryDeck
(
mainGame
->
cbDBCategory
,
mainGame
->
cbDBDecks
);
if
(
open_file
&&
deckManager
.
LoadDeck
(
open_file_name
_with_category
))
{
if
(
open_file
&&
deckManager
.
LoadDeck
(
open_file_name
))
{
#ifdef WIN32
wchar_t
*
dash
=
wcsrchr
(
open_file_name
,
L'\\'
);
#else
wchar_t
*
dash
=
wcsrchr
(
open_file_name
,
L'/'
);
#endif
wchar_t
*
dot
=
wcsrchr
(
open_file_name
,
L'.'
);
if
(
dash
&&
dot
)
{
if
(
dash
&&
dot
&&
!
mywcsncasecmp
(
dot
,
L".ydk"
,
4
))
{
// full path
wchar_t
deck_name
[
256
];
wcsncpy
(
deck_name
,
dash
+
1
,
dot
-
dash
-
1
);
deck_name
[
dot
-
dash
-
1
]
=
L'\0'
;
...
...
@@ -416,7 +416,17 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
mainGame
->
btnManageDeck
->
setEnabled
(
false
);
mainGame
->
cbDBCategory
->
setEnabled
(
false
);
mainGame
->
cbDBDecks
->
setEnabled
(
false
);
}
else
{
}
else
if
(
dash
)
{
// has category
wchar_t
deck_name
[
256
];
wcsncpy
(
deck_name
,
dash
+
1
,
256
);
for
(
size_t
i
=
0
;
i
<
mainGame
->
cbDBDecks
->
getItemCount
();
++
i
)
{
if
(
!
wcscmp
(
mainGame
->
cbDBDecks
->
getItem
(
i
),
deck_name
))
{
wcscpy
(
mainGame
->
gameConf
.
lastdeck
,
deck_name
);
mainGame
->
cbDBDecks
->
setSelected
(
i
);
break
;
}
}
}
else
{
// only deck name
for
(
size_t
i
=
0
;
i
<
mainGame
->
cbDBDecks
->
getItemCount
();
++
i
)
{
if
(
!
wcscmp
(
mainGame
->
cbDBDecks
->
getItem
(
i
),
open_file_name
))
{
wcscpy
(
mainGame
->
gameConf
.
lastdeck
,
open_file_name
);
...
...
gframe/replay.cpp
View file @
84c0d7fd
...
...
@@ -228,7 +228,7 @@ bool Replay::CheckReplay(const wchar_t* name) {
ReplayHeader
rheader
;
size_t
count
=
fread
(
&
rheader
,
sizeof
(
ReplayHeader
),
1
,
rfp
);
fclose
(
rfp
);
return
count
==
1
&&
rheader
.
id
==
0x31707279
&&
rheader
.
version
>=
0x12d0u
;
return
count
==
1
&&
rheader
.
id
==
0x31707279
&&
rheader
.
version
>=
0x12d0u
&&
(
rheader
.
version
<
0x1353u
||
(
rheader
.
flag
&
REPLAY_UNIFORM
))
;
}
bool
Replay
::
DeleteReplay
(
const
wchar_t
*
name
)
{
wchar_t
fname
[
256
];
...
...
lflist.conf
View file @
84c0d7fd
This diff is collapsed.
Click to expand it.
strings.conf
View file @
84c0d7fd
...
...
@@ -729,9 +729,9 @@
!
setname
0
x41
LV
LV
(レベル)
!
setname
0
x42
极星 極星
!
setname
0
x3042
极星天 極星天
!
setname
0
x5042
极星宝 極星宝
!
setname
0
x6042
极星兽 極星獣
!
setname
0
xa042
极星灵 極星霊
!
setname
0
x5042
极星宝 極星宝
!
setname
0
x43
废品 ジャンク
!
setname
0
x44
代行者
!
setname
0
x45
恶魔 デーモン
...
...
@@ -749,8 +749,8 @@
#setname 0x4d N/A
#setname 0x4e 进化 エヴォル
!
setname
0
x304e
进化虫 エヴォルド
!
setname
0
x604e
进化龙 エヴォルダー
!
setname
0
x504e
进化帝 エヴォルカイザー
!
setname
0
x604e
进化龙 エヴォルダー
#setname 0x4f 爆裂 バスター
!
setname
0
x104f
/爆裂体 /バスター
!
setname
0
x50
蛇毒 ヴェノム
...
...
@@ -1086,7 +1086,7 @@
!
setname
0
x154
龙辉巧 ドライトロン
!
setname
0
x155
护宝炮妖 スプリガンズ
!
setname
0
x156
治安战警队
S
-
Force
!
setname
0
x157
突变体
Myutant
!
setname
0
x157
秘异三变 ミュートリア
#setname 0x158 圣 サン
!
setname
0
x1158
圣蔓 サンヴァイン
!
setname
0
x2158
圣天树 サンアバロン
...
...
@@ -1097,8 +1097,8 @@
!
setname
0
x15c
游乐设施 アトラクション
!
setname
0
x15d
烙印
!
setname
0
x15e
降阶魔法
RDM
!
setname
0
x15f
岩战
War
Rock
!
setname
0
x160
源质兽
Materiactor
!
setname
0
x15f
战吼 ウォークライ
!
setname
0
x160
物质炉 マテリアクトル
!
setname
0
x161
溟界
!
setname
0
x162
七音服 ドレミコード
!
setname
0
x163
北极天熊 ベアルクティ
...
...
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