diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index bd571776..a3f9b9b4 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -27,12 +27,15 @@ import { LocalisationService } from "../services/LocalisationService"; import { OpenZoneService } from "../services/OpenZoneService"; import { ProfileFixerService } from "../services/ProfileFixerService"; import { SeasonalEventService } from "../services/SeasonalEventService"; +import { EncodingUtil } from "../utils/EncodingUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; @injectable() export class GameController { + protected os = require("os"); + protected httpConfig: IHttpConfig; protected coreConfig: ICoreConfig; protected locationConfig: ILocationConfig; @@ -44,6 +47,7 @@ export class GameController @inject("TimeUtil") protected timeUtil: TimeUtil, @inject("PreAkiModLoader") protected preAkiModLoader: PreAkiModLoader, @inject("HttpServerHelper") protected httpServerHelper: HttpServerHelper, + @inject("EncodingUtil") protected encodingUtil: EncodingUtil, @inject("HideoutHelper") protected hideoutHelper: HideoutHelper, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("ProfileFixerService") protected profileFixerService: ProfileFixerService, @@ -461,6 +465,11 @@ export class GameController this.logger.debug(`Server version: ${this.coreConfig.akiVersion}`); this.logger.debug(`Debug enabled: ${globalThis.G_DEBUG_CONFIGURATION}`); this.logger.debug(`Mods enabled: ${globalThis.G_MODS_ENABLED}`); + this.logger.debug(`OS: ${this.os.arch()} | ${this.os.version()} | ${process.platform}`); + this.logger.debug(`CPU: ${this.os?.cpus()[0]?.model}`); + this.logger.debug(`RAM: ${this.os.totalmem() / 1024 / 1024 / 1024}GB`); + this.logger.debug(`PATH: ${this.encodingUtil.toBase64(process.argv[0])}`); + this.logger.debug(`PATH: ${this.encodingUtil.toBase64(process.execPath)}`); } public getGameConfig(sessionID: string): IGameConfigResponse