1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Update standalone status

This commit is contained in:
tobspr 2022-05-30 06:41:43 +02:00
parent 57678664d4
commit c746df3a06

View File

@ -5,6 +5,7 @@ import { StaticMapEntityComponent } from "../../game/components/static_map_entit
import { RegularGameMode } from "../../game/modes/regular"; import { RegularGameMode } from "../../game/modes/regular";
import { GameRoot } from "../../game/root"; import { GameRoot } from "../../game/root";
import { InGameState } from "../../states/ingame"; import { InGameState } from "../../states/ingame";
import { SteamAchievementProvider } from "../electron/steam_achievement_provider";
import { GameAnalyticsInterface } from "../game_analytics"; import { GameAnalyticsInterface } from "../game_analytics";
import { FILE_NOT_FOUND } from "../storage"; import { FILE_NOT_FOUND } from "../storage";
@ -63,6 +64,9 @@ export class ShapezGameAnalytics extends GameAnalyticsInterface {
// Perform call to get a new key from the API // Perform call to get a new key from the API
this.sendToApi("/v1/register", { this.sendToApi("/v1/register", {
environment: this.environment, environment: this.environment,
standalone:
G_IS_STANDALONE &&
this.app.achievementProvider instanceof SteamAchievementProvider,
}) })
.then(res => { .then(res => {
// Try to read and parse the key from the api // Try to read and parse the key from the api