mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Remove update check
This commit is contained in:
parent
c434f7a59f
commit
e9f0a45f2a
@ -92,9 +92,9 @@ export const globalConfig = {
|
|||||||
// disableZoomLimits: true,
|
// disableZoomLimits: true,
|
||||||
// showChunkBorders: true,
|
// showChunkBorders: true,
|
||||||
// rewardsInstant: true,
|
// rewardsInstant: true,
|
||||||
// allBuildingsUnlocked: true,
|
allBuildingsUnlocked: true,
|
||||||
// blueprintsNoCost: true,
|
blueprintsNoCost: true,
|
||||||
// upgradesNoCost: true,
|
upgradesNoCost: true,
|
||||||
// disableUnlockDialog: true,
|
// disableUnlockDialog: true,
|
||||||
// disableLogicTicks: true,
|
// disableLogicTicks: true,
|
||||||
// testClipping: true,
|
// testClipping: true,
|
||||||
|
@ -68,38 +68,6 @@ export class PreloadState extends GameState {
|
|||||||
startLoading() {
|
startLoading() {
|
||||||
this.setStatus("Booting")
|
this.setStatus("Booting")
|
||||||
|
|
||||||
.then(() => this.setStatus("Checking for updates"))
|
|
||||||
.then(() => {
|
|
||||||
if (G_IS_STANDALONE) {
|
|
||||||
return Promise.race([
|
|
||||||
new Promise(resolve => setTimeout(resolve, 10000)),
|
|
||||||
fetch(
|
|
||||||
"https://itch.io/api/1/x/wharf/latest?target=tobspr/shapezio&channel_name=windows",
|
|
||||||
{
|
|
||||||
cache: "no-cache",
|
|
||||||
}
|
|
||||||
)
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(({ latest }) => {
|
|
||||||
if (latest !== G_BUILD_VERSION) {
|
|
||||||
const { ok } = this.dialogs.showInfo(
|
|
||||||
T.dialogs.newUpdate.title,
|
|
||||||
T.dialogs.newUpdate.desc,
|
|
||||||
["ok:good"]
|
|
||||||
);
|
|
||||||
|
|
||||||
return new Promise(resolve => {
|
|
||||||
ok.add(resolve);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(err => {
|
|
||||||
logger.log("Failed to fetch version:", err);
|
|
||||||
}),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
.then(() => this.setStatus("Creating platform wrapper"))
|
.then(() => this.setStatus("Creating platform wrapper"))
|
||||||
.then(() => this.app.platformWrapper.initialize())
|
.then(() => this.app.platformWrapper.initialize())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user