Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
MyCard
YGOProUnity_V2
Commits
04ad3005
Commit
04ad3005
authored
Nov 29, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't save recent host when joining from command line
parent
80bf187a
Pipeline
#41790
passed with stages
in 15 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+1
-1
Assets/SibylSystem/selectServer/SelectServer.cs
Assets/SibylSystem/selectServer/SelectServer.cs
+13
-10
No files found.
Assets/SibylSystem/Program.cs
View file @
04ad3005
...
@@ -445,7 +445,7 @@ public class Program : MonoBehaviour
...
@@ -445,7 +445,7 @@ public class Program : MonoBehaviour
if
(
join
)
if
(
join
)
{
{
shiftToServant
(
selectServer
);
shiftToServant
(
selectServer
);
selectServer
.
KF_onlineGame
(
nick
,
host
,
port
,
"0x233"
,
password
);
selectServer
.
KF_onlineGame
(
nick
,
host
,
port
,
"0x233"
,
password
,
false
);
exitOnReturn
=
true
;
exitOnReturn
=
true
;
}
}
else
if
(
deck
!=
null
)
else
if
(
deck
!=
null
)
...
...
Assets/SibylSystem/selectServer/SelectServer.cs
View file @
04ad3005
...
@@ -116,7 +116,7 @@ public class SelectServer : WindowServantSP
...
@@ -116,7 +116,7 @@ public class SelectServer : WindowServantSP
}
}
public
void
KF_onlineGame
(
string
Name
,
string
ipString
,
string
portString
,
string
versionString
,
public
void
KF_onlineGame
(
string
Name
,
string
ipString
,
string
portString
,
string
versionString
,
string
pswString
=
""
)
string
pswString
=
""
,
bool
savetoList
=
true
)
{
{
name
=
Name
;
name
=
Name
;
Config
.
Set
(
"name"
,
name
);
Config
.
Set
(
"name"
,
name
);
...
@@ -128,15 +128,18 @@ public class SelectServer : WindowServantSP
...
@@ -128,15 +128,18 @@ public class SelectServer : WindowServantSP
{
{
if
(
name
!=
""
)
if
(
name
!=
""
)
{
{
var
fantasty
=
ipString
+
":"
+
portString
+
" "
+
pswString
;
if
(
savetoList
)
list
.
items
.
Remove
(
fantasty
);
{
list
.
items
.
Insert
(
0
,
fantasty
);
var
fantasty
=
ipString
+
":"
+
portString
+
" "
+
pswString
;
list
.
value
=
fantasty
;
list
.
items
.
Remove
(
fantasty
);
if
(
list
.
items
.
Count
>
5
)
list
.
items
.
RemoveAt
(
list
.
items
.
Count
-
1
);
list
.
items
.
Insert
(
0
,
fantasty
);
var
all
=
""
;
list
.
value
=
fantasty
;
for
(
var
i
=
0
;
i
<
list
.
items
.
Count
;
i
++)
all
+=
list
.
items
[
i
]
+
"\r\n"
;
if
(
list
.
items
.
Count
>
5
)
list
.
items
.
RemoveAt
(
list
.
items
.
Count
-
1
);
File
.
WriteAllText
(
"config/hosts.conf"
,
all
);
var
all
=
""
;
printFile
(
false
);
for
(
var
i
=
0
;
i
<
list
.
items
.
Count
;
i
++)
all
+=
list
.
items
[
i
]
+
"\r\n"
;
File
.
WriteAllText
(
"config/hosts.conf"
,
all
);
printFile
(
false
);
}
new
Thread
(()
=>
{
TcpHelper
.
join
(
ipString
,
name
,
portString
,
pswString
,
versionString
);
}).
Start
();
new
Thread
(()
=>
{
TcpHelper
.
join
(
ipString
,
name
,
portString
,
pswString
,
versionString
);
}).
Start
();
}
}
else
else
...
...
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