Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
e6097269
Commit
e6097269
authored
Mar 26, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DataManager::FormatLocation()
parent
5bd86a82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
gframe/client_card.cpp
gframe/client_card.cpp
+1
-0
gframe/data_manager.cpp
gframe/data_manager.cpp
+10
-8
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
gframe/client_card.cpp
View file @
e6097269
...
@@ -22,6 +22,7 @@ ClientCard::ClientCard() {
...
@@ -22,6 +22,7 @@ ClientCard::ClientCard() {
cmdFlag
=
0
;
cmdFlag
=
0
;
code
=
0
;
code
=
0
;
chain_code
=
0
;
chain_code
=
0
;
location
=
0
;
type
=
0
;
type
=
0
;
alias
=
0
;
alias
=
0
;
level
=
0
;
level
=
0
;
...
...
gframe/data_manager.cpp
View file @
e6097269
...
@@ -219,11 +219,10 @@ const wchar_t* DataManager::FormatLocation(int location, int sequence) {
...
@@ -219,11 +219,10 @@ const wchar_t* DataManager::FormatLocation(int location, int sequence) {
else
else
return
GetSysString
(
1009
);
return
GetSysString
(
1009
);
}
}
int
filter
=
1
,
i
=
1000
;
unsigned
filter
=
1
;
while
(
filter
!=
location
)
{
int
i
=
1000
;
filter
<<=
1
;
for
(;
filter
!=
0x100
&&
filter
!=
location
;
filter
<<=
1
)
i
++
;
++
i
;
}
if
(
filter
==
location
)
if
(
filter
==
location
)
return
GetSysString
(
i
);
return
GetSysString
(
i
);
else
else
...
@@ -231,7 +230,8 @@ const wchar_t* DataManager::FormatLocation(int location, int sequence) {
...
@@ -231,7 +230,8 @@ const wchar_t* DataManager::FormatLocation(int location, int sequence) {
}
}
const
wchar_t
*
DataManager
::
FormatAttribute
(
int
attribute
)
{
const
wchar_t
*
DataManager
::
FormatAttribute
(
int
attribute
)
{
wchar_t
*
p
=
attBuffer
;
wchar_t
*
p
=
attBuffer
;
int
filter
=
1
,
i
=
1010
;
unsigned
filter
=
1
;
int
i
=
1010
;
for
(;
filter
!=
0x80
;
filter
<<=
1
,
++
i
)
{
for
(;
filter
!=
0x80
;
filter
<<=
1
,
++
i
)
{
if
(
attribute
&
filter
)
{
if
(
attribute
&
filter
)
{
BufferIO
::
CopyWStrRef
(
GetSysString
(
i
),
p
,
16
);
BufferIO
::
CopyWStrRef
(
GetSysString
(
i
),
p
,
16
);
...
@@ -247,7 +247,8 @@ const wchar_t* DataManager::FormatAttribute(int attribute) {
...
@@ -247,7 +247,8 @@ const wchar_t* DataManager::FormatAttribute(int attribute) {
}
}
const
wchar_t
*
DataManager
::
FormatRace
(
int
race
)
{
const
wchar_t
*
DataManager
::
FormatRace
(
int
race
)
{
wchar_t
*
p
=
racBuffer
;
wchar_t
*
p
=
racBuffer
;
int
filter
=
1
,
i
=
1020
;
unsigned
filter
=
1
;
int
i
=
1020
;
for
(;
filter
!=
0x1000000
;
filter
<<=
1
,
++
i
)
{
for
(;
filter
!=
0x1000000
;
filter
<<=
1
,
++
i
)
{
if
(
race
&
filter
)
{
if
(
race
&
filter
)
{
BufferIO
::
CopyWStrRef
(
GetSysString
(
i
),
p
,
16
);
BufferIO
::
CopyWStrRef
(
GetSysString
(
i
),
p
,
16
);
...
@@ -263,7 +264,8 @@ const wchar_t* DataManager::FormatRace(int race) {
...
@@ -263,7 +264,8 @@ const wchar_t* DataManager::FormatRace(int race) {
}
}
const
wchar_t
*
DataManager
::
FormatType
(
int
type
)
{
const
wchar_t
*
DataManager
::
FormatType
(
int
type
)
{
wchar_t
*
p
=
tpBuffer
;
wchar_t
*
p
=
tpBuffer
;
int
filter
=
1
,
i
=
1050
;
unsigned
filter
=
1
;
int
i
=
1050
;
for
(;
filter
!=
0x2000000
;
filter
<<=
1
,
++
i
)
{
for
(;
filter
!=
0x2000000
;
filter
<<=
1
,
++
i
)
{
if
(
type
&
filter
)
{
if
(
type
&
filter
)
{
BufferIO
::
CopyWStrRef
(
GetSysString
(
i
),
p
,
16
);
BufferIO
::
CopyWStrRef
(
GetSysString
(
i
),
p
,
16
);
...
...
ocgcore
@
627ee5b3
Subproject commit
95bc5de881cc3b0b6108b0236ecce197a40af5b3
Subproject commit
627ee5b3721037d4ffc0b5f3e6db67ae10c53bb9
script
@
c0d5188e
Subproject commit
eda89570a613c7ba4e7e23a36b2c66a8420cbc61
Subproject commit
c0d5188ed0ae14a5497276978fb65d3a67bf8095
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