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
REIKAI
ygopro
Commits
b6f5b343
Commit
b6f5b343
authored
Sep 22, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix & comment
parent
5e666ce1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
12 deletions
+7
-12
gframe/data_manager.cpp
gframe/data_manager.cpp
+3
-4
gframe/data_manager.h
gframe/data_manager.h
+1
-1
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+1
-1
gframe/deck_manager.h
gframe/deck_manager.h
+1
-1
gframe/myfilesystem.h
gframe/myfilesystem.h
+1
-2
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+0
-3
No files found.
gframe/data_manager.cpp
View file @
b6f5b343
...
...
@@ -185,7 +185,7 @@ bool DataManager::Error(spmemvfs_db_t* pDB, sqlite3_stmt* pStmt) {
spmemvfs_env_fini
();
return
false
;
}
#endif
#endif
//YGOPRO_SERVER_MODE
bool
DataManager
::
GetData
(
int
code
,
CardData
*
pData
)
{
auto
cdit
=
_datas
.
find
(
code
);
if
(
cdit
==
_datas
.
end
())
...
...
@@ -419,12 +419,11 @@ byte* DataManager::ScriptReaderEx(const char* script_name, int* slen) {
return
scriptBuffer
;
else
return
ScriptReader
(
second
,
slen
);
#endif
#endif
//YGOPRO_SERVER_MODE
}
byte
*
DataManager
::
ScriptReader
(
const
char
*
script_name
,
int
*
slen
)
{
FILE
*
fp
;
#ifdef YGOPRO_SERVER_MODE
fp
=
fopen
(
script_name
,
"rb"
);
FILE
*
fp
=
fopen
(
script_name
,
"rb"
);
if
(
!
fp
)
return
0
;
int
len
=
fread
(
scriptBuffer
,
1
,
sizeof
(
scriptBuffer
),
fp
);
...
...
gframe/data_manager.h
View file @
b6f5b343
...
...
@@ -23,7 +23,7 @@ public:
#else
void
ReadStringConfLine
(
const
char
*
linebuf
);
bool
Error
(
sqlite3
*
pDB
,
sqlite3_stmt
*
pStmt
=
0
);
#endif
#endif
//YGOPRO_SERVER_MODE
bool
GetData
(
int
code
,
CardData
*
pData
);
code_pointer
GetCodePointer
(
int
code
);
bool
GetString
(
int
code
,
CardString
*
pStr
);
...
...
gframe/deck_manager.cpp
View file @
b6f5b343
...
...
@@ -372,5 +372,5 @@ bool DeckManager::DeleteCategory(const wchar_t* name) {
return
false
;
return
FileSystem
::
DeleteDir
(
localname
);
}
#endif
#endif
//YGOPRO_SERVER_MODE
}
gframe/deck_manager.h
View file @
b6f5b343
...
...
@@ -62,7 +62,7 @@ public:
bool
CreateCategory
(
const
wchar_t
*
name
);
bool
RenameCategory
(
const
wchar_t
*
oldname
,
const
wchar_t
*
newname
);
bool
DeleteCategory
(
const
wchar_t
*
name
);
#endif
#endif
//YGOPRO_SERVER_MODE
};
extern
DeckManager
deckManager
;
...
...
gframe/myfilesystem.h
View file @
b6f5b343
...
...
@@ -209,8 +209,7 @@ public:
#ifndef YGOPRO_SERVER_MODE
std
::
vector
<
file_unit
>
file_list
;
#endif
while
((
dirp
=
readdir
(
dir
))
!=
nullptr
)
{
while
((
dirp
=
readdir
(
dir
))
!=
nullptr
)
{
#ifndef YGOPRO_SERVER_MODE
file_unit
funit
;
#endif
...
...
gframe/replay_mode.cpp
View file @
b6f5b343
...
...
@@ -165,9 +165,6 @@ bool ReplayMode::StartDuel() {
cur_replay
.
ReadName
(
mainGame
->
dInfo
.
clientname
);
}
pduel
=
create_duel
(
rnd
());
#ifdef YGOPRO_SERVER_MODE
preload_script
(
pduel
,
"./script/special.lua"
,
0
);
#endif
int
start_lp
=
cur_replay
.
ReadInt32
();
int
start_hand
=
cur_replay
.
ReadInt32
();
int
draw_count
=
cur_replay
.
ReadInt32
();
...
...
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