Skip to content

Commit

Permalink
Add IS_LEGACY_WINDOWS for disabling old Windows Launcher (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustav87 authored Oct 5, 2023
1 parent efc9285 commit 0cb971a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "w3champions",
"version": "1.3.7",
"version": "1.3.8",
"private": true,
"description": "Always stay up to date with this Launcher for the community Ladder Warcraft 3 Champions.",
"author": "Deespul LLC",
Expand Down
13 changes: 13 additions & 0 deletions src/game/ingame-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export enum ELauncherMessageType {
REQUEST_AUTHENTICATION_TOKEN = 'REQUEST_AUTHENTICATION_TOKEN',
RECEIVED_AUTHENTICATION_TOKEN_FROM_LAUNCHER = 'RECEIVED_AUTHENTICATION_TOKEN_FROM_LAUNCHER',
INVALID_STATE = 'INVALID_STATE',
IS_LEGACY_WINDOWS = 'IS_LEGACY_WINDOWS',

CONNECTED = 'CONNECTED',
DISCONNECTED = 'DISCONNECTED',
Expand Down Expand Up @@ -141,6 +142,10 @@ export class IngameBridge extends EventEmitter {
};

this.sendLauncherVersion(pi);

if (store.state.isWindows) {
this.sendIsLegacyWindows(pi);
}
});

this.server.listen(38123);
Expand All @@ -155,6 +160,14 @@ export class IngameBridge extends EventEmitter {
playerInstance.sendMessage(message);
}

public sendIsLegacyWindows(playerInstance: IPlayerInstance) {
const message: ILauncherGameMessage = {
type: ELauncherMessageType.IS_LEGACY_WINDOWS
};

playerInstance.sendMessage(message);
}

public sendFloConnected(playerInstance: IPlayerInstance, workerVersion: string) {
const message: ILauncherGameMessage = {
type: ELauncherMessageType.FLO_CONNECTED,
Expand Down

0 comments on commit 0cb971a

Please sign in to comment.