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
YGOPRO-520DIY
ygopro
Commits
5369971f
Commit
5369971f
authored
Nov 07, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix room pass
parent
0fcb47f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
gframe/game.cpp
gframe/game.cpp
+1
-6
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+1
-0
system.conf
system.conf
+1
-0
No files found.
gframe/game.cpp
View file @
5369971f
...
...
@@ -259,13 +259,8 @@ bool Game::Initialize() {
env
->
addStaticText
(
dataManager
.
GetSysString
(
1221
),
rect
<
s32
>
(
10
,
360
,
220
,
380
),
false
,
false
,
wLanWindow
);
ebJoinHost
=
env
->
addEditBox
(
gameConf
.
lasthost
,
rect
<
s32
>
(
110
,
355
,
350
,
380
),
true
,
wLanWindow
);
ebJoinHost
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
wchar_t
lastPortText
[
6
];
if
(
gameConf
.
lastport
)
myswprintf
(
lastPortText
,
L"%ls"
,
gameConf
.
lastport
);
else
myswprintf
(
lastPortText
,
L""
);
editbox_list
.
push_back
(
ebJoinHost
);
ebJoinPort
=
env
->
addEditBox
(
lastPortTex
t
,
rect
<
s32
>
(
360
,
355
,
420
,
380
),
true
,
wLanWindow
);
ebJoinPort
=
env
->
addEditBox
(
gameConf
.
lastpor
t
,
rect
<
s32
>
(
360
,
355
,
420
,
380
),
true
,
wLanWindow
);
ebJoinPort
->
setTextAlignment
(
irr
::
gui
::
EGUIA_CENTER
,
irr
::
gui
::
EGUIA_CENTER
);
editbox_list
.
push_back
(
ebJoinPort
);
env
->
addStaticText
(
dataManager
.
GetSysString
(
1222
),
rect
<
s32
>
(
10
,
390
,
220
,
410
),
false
,
false
,
wLanWindow
);
...
...
gframe/menu_handler.cpp
View file @
5369971f
...
...
@@ -86,6 +86,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
}
BufferIO
::
CopyWideString
(
pstr
,
mainGame
->
gameConf
.
lasthost
);
BufferIO
::
CopyWideString
(
portstr
,
mainGame
->
gameConf
.
lastport
);
BufferIO
::
CopyWideString
(
mainGame
->
ebJoinPass
->
getText
(),
mainGame
->
gameConf
.
roompass
);
if
(
DuelClient
::
StartClient
(
remote
.
host
,
remote
.
port
,
false
))
{
mainGame
->
btnCreateHost
->
setEnabled
(
false
);
mainGame
->
btnJoinHost
->
setEnabled
(
false
);
...
...
system.conf
View file @
5369971f
...
...
@@ -14,6 +14,7 @@ numfont = ./fonts/arial.ttf
serverport
=
7911
lasthost
=
127
.
0
.
0
.
1
lastport
=
0
roompass
=
automonsterpos
=
0
autospellpos
=
0
randompos
=
0
...
...
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