Skip to content

Commit d8022c1

Browse files
committed
feat(game): update frontend header to use new versioning format and name
1 parent 235ed56 commit d8022c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electron/main/game/game.socket.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import net from 'node:net';
22
import * as rxjs from 'rxjs';
33
import { waitUntil } from '../../common/async/async.utils.js';
44
import { ReplayFirstSubscriberOnlySubject } from '../../common/observable/replay-first-subscriber-only.subject.js';
5+
import { VERSION } from '../../common/version.js';
56
import type { SGEGameCredentials } from '../sge/types.js';
67
import { gameSocketLogger as logger } from './logger.js';
78
import type { GameSocket } from './types.js';
@@ -241,7 +242,7 @@ export class GameSocketImpl implements GameSocket {
241242
// it was renamed to "Wrayth". The version is something I found common
242243
// on GitHub among other clients. I did not notice a theme for the platform
243244
// of the code I reviewed. I assume the last flag is to request XML formatted feed.
244-
const frontendHeader = `FE:WRAYTH /VERSION:1.0.1.26 /P:${process.platform.toUpperCase()} /XML`;
245+
const frontendHeader = `FE:PHOENIX /VERSION:${VERSION} /P:${process.platform.toUpperCase()} /XML`;
245246

246247
socket.write(`${this.credentials.accessToken}\n`);
247248
socket.write(`${frontendHeader}\n`);

0 commit comments

Comments
 (0)