mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 14:36:15 -04:00
Build 29085898
This commit is contained in:
parent
ae2f43be0e
commit
de485e5598
7 changed files with 41 additions and 27 deletions
|
@ -26,6 +26,7 @@ Other translation are very welcome, contact me if you'd like to submit one.
|
|||
|
||||
## Done
|
||||
|
||||
- toast an error if storage is blocked
|
||||
- in apk, video download doesn't work
|
||||
- ask for permanent storage
|
||||
- option: reuse past frame's light in new frame lighting computation when there are 150+ coins on screen, to limit the performance impact of rendering lots of lights
|
||||
|
|
|
@ -29,8 +29,8 @@ android {
|
|||
applicationId = "me.lecaro.breakout"
|
||||
minSdk = 21
|
||||
targetSdk = 34
|
||||
versionCode = 29085883
|
||||
versionName = "29085883"
|
||||
versionCode = 29085898
|
||||
versionName = "29085898"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
|
|
File diff suppressed because one or more lines are too long
50
dist/index.html
vendored
50
dist/index.html
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
// The version of the cache.
|
||||
const VERSION = "29085883";
|
||||
const VERSION = "29085898";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29085883"
|
||||
"29085898"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
// Settings
|
||||
|
||||
import { toast } from "./toast";
|
||||
|
||||
let cachedSettings: { [key: string]: unknown } = {};
|
||||
|
||||
try {
|
||||
|
@ -26,6 +28,7 @@ export function setSettingValue<T>(key: string, value: T) {
|
|||
cachedSettings[key] = value;
|
||||
}
|
||||
|
||||
let warnedUserAboutLSIssue = false;
|
||||
export function commitSettingsChangesToLocalStorage() {
|
||||
try {
|
||||
for (let key of needsSaving) {
|
||||
|
@ -33,6 +36,10 @@ export function commitSettingsChangesToLocalStorage() {
|
|||
}
|
||||
needsSaving.clear();
|
||||
} catch (e) {
|
||||
if (!warnedUserAboutLSIssue) {
|
||||
warnedUserAboutLSIssue = true;
|
||||
toast(`Storage issue : ${(e as Error)?.message}`);
|
||||
}
|
||||
console.warn(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue