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
1
Merge Requests
1
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
Commits
f102abb6
Commit
f102abb6
authored
Mar 26, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into another
parents
3b15fa3b
4ac7d05e
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
450 additions
and
230 deletions
+450
-230
.gitignore
.gitignore
+1
-1
cards.cdb
cards.cdb
+0
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+22
-5
lflist.conf
lflist.conf
+418
-219
ocgcore
ocgcore
+1
-1
premake/gframe/ygopro.rc
premake/gframe/ygopro.rc
+2
-2
script
script
+1
-1
strings.conf
strings.conf
+5
-1
No files found.
.gitignore
View file @
f102abb6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# build files
# build files
/bin
/bin
/
build
build
/obj
/obj
# dependencies
# dependencies
...
...
cards.cdb
View file @
f102abb6
No preview for this file type
gframe/duelclient.cpp
View file @
f102abb6
...
@@ -77,6 +77,9 @@ bool DuelClient::StartClient(unsigned int ip, unsigned short port, bool create_g
...
@@ -77,6 +77,9 @@ bool DuelClient::StartClient(unsigned int ip, unsigned short port, bool create_g
return
true
;
return
true
;
}
}
void
DuelClient
::
ConnectTimeout
(
evutil_socket_t
fd
,
short
events
,
void
*
arg
)
{
void
DuelClient
::
ConnectTimeout
(
evutil_socket_t
fd
,
short
events
,
void
*
arg
)
{
if
(
auto_watch_mode
)
{
mainGame
->
device
->
closeDevice
();
}
if
(
connect_state
==
0x7
)
if
(
connect_state
==
0x7
)
return
;
return
;
if
(
!
is_closing
)
{
if
(
!
is_closing
)
{
...
@@ -2185,6 +2188,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -2185,6 +2188,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
=
*
(
mainGame
->
dField
.
deck
[
player
].
rbegin
()
+
i
);
pcard
=
*
(
mainGame
->
dField
.
deck
[
player
].
rbegin
()
+
i
);
if
(
code
!=
0
)
if
(
code
!=
0
)
pcard
->
SetCode
(
code
);
pcard
->
SetCode
(
code
);
if
(
auto_watch_mode
&&
code
>
0
)
{
mainGame
->
showcardcode
=
code
;
mainGame
->
showcarddif
=
0
;
mainGame
->
showcardp
=
0
;
mainGame
->
showcard
=
4
;
}
}
}
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
return
true
;
return
true
;
...
@@ -2223,6 +2232,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -2223,6 +2232,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
=
*
(
mainGame
->
dField
.
extra
[
player
].
rbegin
()
+
i
+
mainGame
->
dField
.
extra_p_count
[
player
]);
pcard
=
*
(
mainGame
->
dField
.
extra
[
player
].
rbegin
()
+
i
+
mainGame
->
dField
.
extra_p_count
[
player
]);
if
(
code
!=
0
)
if
(
code
!=
0
)
pcard
->
SetCode
(
code
);
pcard
->
SetCode
(
code
);
if
(
auto_watch_mode
&&
code
>
0
)
{
mainGame
->
showcardcode
=
code
;
mainGame
->
showcarddif
=
0
;
mainGame
->
showcardp
=
0
;
mainGame
->
showcard
=
4
;
}
}
}
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
return
true
;
return
true
;
...
@@ -2274,6 +2289,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -2274,6 +2289,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
=
mainGame
->
dField
.
GetCard
(
c
,
l
,
s
);
pcard
=
mainGame
->
dField
.
GetCard
(
c
,
l
,
s
);
if
(
code
!=
0
)
if
(
code
!=
0
)
pcard
->
SetCode
(
code
);
pcard
->
SetCode
(
code
);
if
(
auto_watch_mode
&&
code
>
0
)
{
mainGame
->
showcardcode
=
code
;
mainGame
->
showcarddif
=
0
;
mainGame
->
showcardp
=
0
;
mainGame
->
showcard
=
4
;
}
mainGame
->
gMutex
.
lock
();
mainGame
->
gMutex
.
lock
();
myswprintf
(
textBuffer
,
L"*[%ls]"
,
dataManager
.
GetName
(
code
));
myswprintf
(
textBuffer
,
L"*[%ls]"
,
dataManager
.
GetName
(
code
));
mainGame
->
AddLog
(
textBuffer
,
code
);
mainGame
->
AddLog
(
textBuffer
,
code
);
...
@@ -3496,14 +3517,10 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -3496,14 +3517,10 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
int
count
=
BufferIO
::
ReadInt16
(
pbuf
);
int
count
=
BufferIO
::
ReadInt16
(
pbuf
);
ClientCard
*
pc
=
mainGame
->
dField
.
GetCard
(
c
,
l
,
s
);
ClientCard
*
pc
=
mainGame
->
dField
.
GetCard
(
c
,
l
,
s
);
if
(
auto_watch_mode
&&
pc
->
code
>
0
)
{
if
(
auto_watch_mode
&&
pc
->
code
>
0
)
{
myswprintf
(
event_string
,
dataManager
.
GetSysString
(
1610
),
dataManager
.
GetName
(
pc
->
code
));
mainGame
->
showcardcode
=
pc
->
code
;
mainGame
->
showcardcode
=
pc
->
code
;
mainGame
->
showcarddif
=
0
;
mainGame
->
showcarddif
=
0
;
mainGame
->
showcardp
=
0
;
mainGame
->
showcardp
=
0
;
mainGame
->
showcard
=
5
;
mainGame
->
showcard
=
2
;
mainGame
->
WaitFrameSignal
(
30
);
mainGame
->
showcard
=
0
;
mainGame
->
WaitFrameSignal
(
11
);
}
}
if
(
pc
->
counters
.
count
(
type
))
if
(
pc
->
counters
.
count
(
type
))
pc
->
counters
[
type
]
+=
count
;
pc
->
counters
[
type
]
+=
count
;
...
...
lflist.conf
View file @
f102abb6
This diff is collapsed.
Click to expand it.
ocgcore
@
d52a922a
Subproject commit
3a6bf4a70be68ffc2d5d3c19ad719cbb4140e584
Subproject commit
d52a922a8b00b9a9ee8292a8891857343e1ed57c
premake/gframe/ygopro.rc
View file @
f102abb6
...
@@ -16,8 +16,8 @@ VALUE "InternalName", "KoishiPro"
...
@@ -16,8 +16,8 @@ VALUE "InternalName", "KoishiPro"
VALUE "LegalCopyright", "Copyright (C) 2019 Nanahira"
VALUE "LegalCopyright", "Copyright (C) 2019 Nanahira"
VALUE "OriginalFilename", "ygopro_another.exe"
VALUE "OriginalFilename", "ygopro_another.exe"
VALUE "ProductName", "KoishiPro"
VALUE "ProductName", "KoishiPro"
VALUE "FileVersion", "
Colorful
"
VALUE "FileVersion", "
Monokuro
"
VALUE "ProductVersion", "
Colorful
"
VALUE "ProductVersion", "
Monokuro
"
END
END
END
END
BLOCK "VarFileInfo"
BLOCK "VarFileInfo"
...
...
script
@
9f445929
Subproject commit
069ee66a59c210f0e972443c9e95ed41c7c8b8ef
Subproject commit
9f445929001b004212b2d90171192c994b3ec852
strings.conf
View file @
f102abb6
...
@@ -136,6 +136,8 @@
...
@@ -136,6 +136,8 @@
!
system
570
请选择要变成不能使用的卡片区域
!
system
570
请选择要变成不能使用的卡片区域
!
system
571
请选择要移动到的位置
!
system
571
请选择要移动到的位置
!
system
572
请选择要放置指示物的卡
!
system
572
请选择要放置指示物的卡
!
system
573
请选择要无效的卡
!
system
574
请选择要操作的卡
!
system
1000
卡组
!
system
1000
卡组
!
system
1001
手卡
!
system
1001
手卡
!
system
1002
怪兽区
!
system
1002
怪兽区
...
@@ -621,6 +623,7 @@
...
@@ -621,6 +623,7 @@
!
counter
0
x54
指示物(星遗物引导的前路)
!
counter
0
x54
指示物(星遗物引导的前路)
!
counter
0
x55
指示物(隐居者的大釜)
!
counter
0
x55
指示物(隐居者的大釜)
!
counter
0
x56
炎星指示物
!
counter
0
x56
炎星指示物
!
counter
0
x57
幻魔指示物
#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
次世代 ジェネクス
...
@@ -731,7 +734,7 @@
...
@@ -731,7 +734,7 @@
#setname 0x4d N/A
#setname 0x4d N/A
#setname 0x4e 进化 エヴォル
#setname 0x4e 进化 エヴォル
!
setname
0
x304e
进化虫 エヴォルド
!
setname
0
x304e
进化虫 エヴォルド
!
setname
0
x604e
进化龙 エヴォルダ
!
setname
0
x604e
进化龙 エヴォルダ
ー
!
setname
0
x504e
进化帝 エヴォルカイザー
!
setname
0
x504e
进化帝 エヴォルカイザー
#setname 0x4f 爆裂 バスター
#setname 0x4f 爆裂 バスター
!
setname
0
x104f
/爆裂体 /バスター
!
setname
0
x104f
/爆裂体 /バスター
...
@@ -1034,3 +1037,4 @@
...
@@ -1034,3 +1037,4 @@
!
setname
0
x1142
黄金国巫妖 エルドリッチ
!
setname
0
x1142
黄金国巫妖 エルドリッチ
!
setname
0
x2142
黄金国永生药 エルドリクシル
!
setname
0
x2142
黄金国永生药 エルドリクシル
!
setname
0
x143
黄金乡 黄金郷
!
setname
0
x143
黄金乡 黄金郷
!
setname
0
x144
幻魔
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