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
1d68a915
Commit
1d68a915
authored
Sep 23, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
11d96665
1595ed96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
59 deletions
+8
-59
gframe/data_manager.cpp
gframe/data_manager.cpp
+1
-1
gframe/duelclient.cpp
gframe/duelclient.cpp
+6
-0
system.conf
system.conf
+1
-58
No files found.
gframe/data_manager.cpp
View file @
1d68a915
...
...
@@ -13,7 +13,6 @@ DataManager dataManager;
bool
DataManager
::
LoadDB
(
const
wchar_t
*
wfile
)
{
char
file
[
256
];
wchar_t
strBuffer
[
4096
];
BufferIO
::
EncodeUTF8
(
wfile
,
file
);
#ifdef YGOPRO_SERVER_MODE
sqlite3
*
pDB
;
...
...
@@ -53,6 +52,7 @@ bool DataManager::LoadDB(const wchar_t* wfile) {
#endif
CardDataC
cd
;
CardString
cs
;
wchar_t
strBuffer
[
4096
];
int
step
=
0
;
do
{
step
=
sqlite3_step
(
pStmt
);
...
...
gframe/duelclient.cpp
View file @
1d68a915
...
...
@@ -4427,6 +4427,12 @@ bool DuelClient::LookupSRV(char *hostname, HostResult* result) {
HostResult
DuelClient
::
ParseHost
(
char
*
hostname
)
{
HostResult
result
;
unsigned
int
tryAddress
=
htonl
(
inet_addr
(
hostname
));
if
(
tryAddress
!=
-
1
)
{
result
.
host
=
tryAddress
;
result
.
port
=
7911
;
return
result
;
}
auto
trySplitter
=
strchr
(
hostname
,
':'
);
if
(
trySplitter
==
NULL
)
{
char
srvHostname
[
114
];
...
...
system.conf
View file @
1d68a915
<<<<<<<
HEAD
#config file
#nickname & gamename should be less than 20 characters
use_d3d
=
0
...
...
@@ -19,6 +18,7 @@ autospellpos = 0
randompos
=
0
autochain
=
0
waitchain
=
0
showchain
=
0
mute_opponent
=
0
mute_spectators
=
0
use_lflist
=
1
...
...
@@ -57,60 +57,3 @@ music_mode = 1
enable_pendulum_scale
=
1
skin_index
= -
1
locale
=
default
=======
#config file
#nickname & gamename should be less than 20 characters
use_d3d
=
0
use_image_scale
=
1
pro_version
=
4947
antialias
=
2
errorlog
=
3
nickname
=
Komeiji
Koishi
gamename
=
Game
lastcategory
= 未分类卡组
lastdeck
=
new
textfont
= ./
fonts
/
simhei
.
ttf
14
numfont
= ./
fonts
/
arial
.
ttf
serverport
=
7911
lasthost
=
127
.
0
.
0
.
1
:
7911
automonsterpos
=
0
autospellpos
=
0
randompos
=
0
autochain
=
0
waitchain
=
0
showchain
=
0
mute_opponent
=
0
mute_spectators
=
0
use_lflist
=
1
default_lflist
=
0
default_rule
=
0
hide_setname
=
0
hide_hint_button
=
0
#control_mode = 0: Key A/S/D/R Chain Buttons. control_mode = 1: MouseLeft/MouseRight/NULL/F9 Without Chain Buttons
control_mode
=
0
draw_field_spell
=
1
separate_clear_button
=
1
#auto_search_limit >= 0: Start search automatically when the user enters N chars
auto_search_limit
= -
1
#search_multiple_keywords = 0: Disable. 1: Search mutiple keywords with separator " ". 2: with separator "+"
search_multiple_keywords
=
1
ignore_deck_changes
=
0
default_ot
=
1
enable_bot_mode
=
1
bot_deck_path
= ./
windbot
/
Decks
quick_animation
=
0
auto_save_replay
=
0
draw_single_chain
=
0
prefer_expansion_script
=
1
ask_mset
=
0
window_maximized
=
0
window_width
=
1280
window_height
=
800
resize_popup_menu
=
0
auto_save_replay
=
0
enable_sound
=
1
enable_music
=
1
#Volume of sound and music, between 0 and 100
sound_volume
=
50
music_volume
=
50
music_mode
=
1
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