diff --git a/server/src/modules/plugin/PluginManager.ts b/server/src/modules/plugin/PluginManager.ts index c84fc2d..bae7673 100644 --- a/server/src/modules/plugin/PluginManager.ts +++ b/server/src/modules/plugin/PluginManager.ts @@ -39,8 +39,8 @@ export class PluginManager { constructor(logger: winston.Logger) { this.logger = logger - // this.pluginsDir = path.join(__dirname, '../../../data/plugins') - this.pluginsDir = path.join(__dirname, '../../data/plugins') + this.pluginsDir = path.join(__dirname, '../../../data/plugins') + // this.pluginsDir = path.join(__dirname, '../../data/plugins') this.initializePluginsDirectory() } diff --git a/server/src/modules/terminal/TerminalManager.ts b/server/src/modules/terminal/TerminalManager.ts index 1a10ec1..0bd5a96 100644 --- a/server/src/modules/terminal/TerminalManager.ts +++ b/server/src/modules/terminal/TerminalManager.ts @@ -63,8 +63,8 @@ export class TerminalManager { const arch = os.arch() if (platform === 'win32') { - // this.ptyPath = path.resolve(__dirname, '../../../PTY/pty_win32_x64.exe') - this.ptyPath = path.resolve(__dirname, '../../PTY/pty_win32_x64.exe') + this.ptyPath = path.resolve(__dirname, '../../../PTY/pty_win32_x64.exe') + // this.ptyPath = path.resolve(__dirname, '../../PTY/pty_win32_x64.exe') } else { // Linux平台根据架构选择对应的PTY文件 if (arch === 'arm64' || arch === 'aarch64') { diff --git a/server/src/routes/gameDeployment.ts b/server/src/routes/gameDeployment.ts index 2b6cf65..822c8da 100644 --- a/server/src/routes/gameDeployment.ts +++ b/server/src/routes/gameDeployment.ts @@ -80,8 +80,8 @@ export function setGameDeploymentManagers( // 获取可安装的游戏列表 router.get('/games', authenticateToken, async (req: Request, res: Response) => { try { - // const gamesFilePath = path.join(__dirname, '../../data/games/installgame.json') - const gamesFilePath = path.join(__dirname, '../data/games/installgame.json') + const gamesFilePath = path.join(__dirname, '../../data/games/installgame.json') + // const gamesFilePath = path.join(__dirname, '../data/games/installgame.json') const gamesData = await fs.readFile(gamesFilePath, 'utf-8') const allGames: { [key: string]: SteamGameInfo } = JSON.parse(gamesData)