Billions must commit

This commit is contained in:
unexp 2023-01-20 08:55:17 -03:00
parent 83bfdcf281
commit 5c89e6743a
No known key found for this signature in database
GPG Key ID: BF66F09641C584C8
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@ app.use("/render/game", require("./routes/render/game.js"))
app.use("*", require("./routes/index.js"))
app.listen(process.env.PORT || 64989, () => {
logger.info(`Listening on http://127.0.0.1:${process.env.PORT || 64989}/`)
logger.boot(`Listening on http://127.0.0.1:${process.env.PORT || 64989}/`)
})
process.on("uncaughtException", (err) => {

View File

@ -12,7 +12,11 @@ class RCCService extends EventEmitter {
Start(options = { cwd: this.path }) {
return new Promise((resolve, reject) => {
try {
this.proc = child_process.spawn("RCCService.exe", ["-Console", "-PlaceId:-1", `-Port`, port], options)
if(process.platform == "win32") {
this.proc = child_process.spawn("RCCService.exe", ["-Console", "-PlaceId:-1", `-Port`, port], options)
} else {
this.proc = child_process.spawn("wine", ["RCCService.exe", "-Console", "-PlaceId:-1", `-Port`, port], options)
}
this.proc.once("spawn", () => {
logger.info(`Spawning RCCService instance on port ${port}`);
resolve(this.proc)