} */
initialize() {
- if (!G_IS_STANDALONE) {
- logger.warn("Steam unavailable. Achievements won't sync.");
- return Promise.resolve();
- }
-
return ipcRenderer.invoke("steam:is-initialized").then(initialized => {
this.initialized = initialized;
diff --git a/src/js/platform/sound.js b/src/js/platform/sound.js
index 28274111..8f8fae87 100644
--- a/src/js/platform/sound.js
+++ b/src/js/platform/sound.js
@@ -33,16 +33,12 @@ export const SOUNDS = {
export const MUSIC = {
// The theme always depends on the standalone only, even if running the full
// version in the browser
- theme: G_IS_STANDALONE ? "theme-full" : "theme-short",
+ theme: "theme-full",
};
-if (G_IS_STANDALONE) {
- MUSIC.menu = "menu";
-}
+MUSIC.menu = "menu";
-if (G_IS_STANDALONE) {
- MUSIC.puzzle = "puzzle-full";
-}
+MUSIC.puzzle = "puzzle-full";
export class SoundInstanceInterface {
constructor(key, url) {
diff --git a/src/js/profile/application_settings.js b/src/js/profile/application_settings.js
index e31dab9e..b454c163 100644
--- a/src/js/profile/application_settings.js
+++ b/src/js/profile/application_settings.js
@@ -189,7 +189,7 @@ function initializeSettings() {
},
/**
* @param {Application} app
- */ app => G_IS_STANDALONE
+ */ app => true
),
new BoolSetting(
@@ -288,7 +288,7 @@ function initializeSettings() {
class SettingsStorage {
constructor() {
this.uiScale = "regular";
- this.fullscreen = G_IS_STANDALONE;
+ this.fullscreen = true;
this.soundVolume = 1.0;
this.musicVolume = 1.0;
diff --git a/src/js/states/mods.js b/src/js/states/mods.js
index 80bcb4b5..2cb41109 100644
--- a/src/js/states/mods.js
+++ b/src/js/states/mods.js
@@ -13,7 +13,7 @@ export class ModsState extends TextualGameState {
}
get modsSupported() {
- return G_IS_STANDALONE || G_IS_DEV;
+ return true;
}
internalGetFullHtml() {
@@ -23,15 +23,11 @@ export class ModsState extends TextualGameState {
${
- this.modsSupported && MODS.mods.length > 0
+ MODS.mods.length > 0
? ``
: ""
}
- ${
- this.modsSupported
- ? ``
- : ""
- }
+
`;
@@ -45,18 +41,6 @@ export class ModsState extends TextualGameState {
}
getMainContentHTML() {
- if (!this.modsSupported) {
- return `
-
-
-
${T.mods.noModSupport}
-
-
-
-
- `;
- }
-
if (MODS.mods.length === 0) {
return `
@@ -121,10 +105,6 @@ export class ModsState extends TextualGameState {
}
openModsFolder() {
- if (!G_IS_STANDALONE) {
- this.dialogs.showWarning(T.global.error, T.mods.folderOnlyStandalone);
- return;
- }
ipcRenderer.invoke("open-mods-folder");
}
diff --git a/src/js/states/preload.js b/src/js/states/preload.js
index 5b170dfd..37144612 100644
--- a/src/js/states/preload.js
+++ b/src/js/states/preload.js
@@ -172,10 +172,6 @@ export class PreloadState extends GameState {
return;
}
- if (!G_IS_STANDALONE) {
- return;
- }
-
return this.app.storage
.readFileAsync("lastversion.bin")
.catch(err => {