Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
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
3
Merge Requests
3
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
srvpro
Commits
b8f324de
Commit
b8f324de
authored
Aug 22, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update hostinfo to latest
parent
3a0eb259
Pipeline
#4840
passed with stages
in 76 minutes and 32 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
roomlist.coffee
roomlist.coffee
+1
-1
roomlist.js
roomlist.js
+1
-1
ygopro-server.coffee
ygopro-server.coffee
+5
-4
ygopro-server.js
ygopro-server.js
+5
-5
No files found.
roomlist.coffee
View file @
b8f324de
...
...
@@ -9,7 +9,7 @@ room_data = (room)->
title
:
room
.
title
,
user
:
{
username
:
room
.
username
}
users
:
({
username
:
client
.
name
,
position
:
client
.
pos
}
for
client
in
room
.
players
),
options
:
room
.
get_
old
_hostinfo
(),
# Should be updated when MyCard client updates
options
:
room
.
get_
roomlist
_hostinfo
(),
# Should be updated when MyCard client updates
arena
:
settings
.
modules
.
arena_mode
.
enabled
&&
room
.
arena
&&
settings
.
modules
.
arena_mode
.
mode
init
=
(
http_server
,
ROOM_all
)
->
...
...
roomlist.js
View file @
b8f324de
...
...
@@ -31,7 +31,7 @@
}
return
results
;
})(),
options
:
room
.
get_
old
_hostinfo
(),
// Should be updated when MyCard client updates
options
:
room
.
get_
roomlist
_hostinfo
(),
// Should be updated when MyCard client updates
arena
:
settings
.
modules
.
arena_mode
.
enabled
&&
room
.
arena
&&
settings
.
modules
.
arena_mode
.
mode
};
};
...
...
ygopro-server.coffee
View file @
b8f324de
...
...
@@ -1583,10 +1583,11 @@ class Room
challonge_duel_log
.
scoresCsv
=
"0-0"
return
challonge_duel_log
get_old_hostinfo
:
()
->
# Just for supporting websocket roomlist in old MyCard client....
ret
=
_
.
clone
(
@
hostinfo
)
ret
.
enable_priority
=
(
@
hostinfo
.
duel_rule
!=
5
)
return
ret
get_roomlist_hostinfo
:
()
->
# Just for supporting websocket roomlist in old MyCard client....
#ret = _.clone(@hostinfo)
#ret.enable_priority = (@hostinfo.duel_rule != 5)
#return ret
return
@
hostinfo
send_replays
:
()
->
return
false
unless
settings
.
modules
.
replay_delay
and
@
replays
.
length
and
@
hostinfo
.
mode
==
1
...
...
ygopro-server.js
View file @
b8f324de
...
...
@@ -2086,11 +2086,11 @@
return
challonge_duel_log
;
}
get_
old
_hostinfo
()
{
// Just for supporting websocket roomlist in old MyCard client....
var
ret
;
ret
=
_
.
clone
(
this
.
hostinfo
);
ret
.
enable_priority
=
this
.
hostinfo
.
duel_rule
!==
5
;
return
ret
;
get_
roomlist
_hostinfo
()
{
// Just for supporting websocket roomlist in old MyCard client....
//ret = _.clone(@hostinfo)
//ret.enable_priority = (@hostinfo.duel_rule != 5)
//return ret
return
this
.
hostinfo
;
}
send_replays
()
{
...
...
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