Matchmaker & some improvements.

**Changes**

- Added the websocket for matchmaker into the server so you can use the matchmaker again. (more infos in the ReadMe file)
- Added some fixes into the cloudstorage to fix long waiting on nintendo switch & mobile when checking server connection.
- Added support for the F8 key to bring up the console.
- Removed a console.log in functions to clean up the log (no longer showing the season in log for no reason)
This commit is contained in:
Secret1337
2023-09-27 20:17:13 +02:00
committed by GitHub
parent 2ea81cbde5
commit f7457bc92d
7 changed files with 118 additions and 5 deletions

View File

@@ -1,6 +1,12 @@
const XMLBuilder = require("xmlbuilder");
const uuid = require("uuid");
async function sleep(ms) {
await new Promise((resolve, reject) => {
setTimeout(resolve, ms);
})
}
function GetVersionInfo(req) {
var memory = {
season: 0,
@@ -236,7 +242,6 @@ function getContentPages(req) {
try {
const backgrounds = contentpages.dynamicbackgrounds.backgrounds.backgrounds;
const season = `season${memory.season}${memory.season >= 21 ? "00" : ""}`;
console.log(season)
backgrounds[0].stage = season;
backgrounds[1].stage = season;
@@ -354,6 +359,7 @@ function DecodeBase64(str) {
}
module.exports = {
sleep,
GetVersionInfo,
getItemShop,
getTheater,