Skip to content

Commit 393e1b4

Browse files
committed
Fixes for #17750
1 parent 05cefc9 commit 393e1b4

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
- CLOUDSYNC: Handle ignored directories properly
2323
- EMSCRIPTEN: Scale window to correct size
2424
- EMSCRIPTEN: Additional platform functions
25+
- EMSCRIPTEN: Add new default video context driver: emscriptenwebgl_ctx
26+
- EMSCRIPTEN: Add new audio driver: AudioWorklet
27+
- EMSCRIPTEN: Add new modernized web player which will eventually replace the existing one
2528
- EMSCRIPTEN/RWEBINPUT: Add touch input support
2629
- GENERAL: Fix save state auto increment
2730
- GENERAL: Fix softpatching with periods/dots in the file name

config.def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@
11741174

11751175
/* Desired audio latency in milliseconds. Might not be honored
11761176
* if driver can't provide given latency. */
1177-
#if defined(ANDROID) || defined(EMSCRIPTEN) || defined(RETROFW) || defined(MIYOO)
1177+
#if defined(ANDROID) || defined(RETROFW) || defined(MIYOO) || (defined(EMSCRIPTEN) && !defined(HAVE_AUDIOWORKLET))
11781178
/* For most Android devices, 64ms is way too low. */
11791179
#define DEFAULT_OUT_LATENCY 128
11801180
#define DEFAULT_IN_LATENCY 128

pkg/emscripten/libretro-thread/libretro.worker.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ FS.rm = async function() {
140140
const child = path.substr(dir_end + 1);
141141
const parent_dir = await getDirHandle(parent);
142142
if (!parent_dir) continue;
143-
await parent_dir.removeEntry(child, {recursive: true});
143+
try {
144+
await parent_dir.removeEntry(child, {recursive: true});
145+
} catch (e) {
146+
continue;
147+
}
144148
}
145149
}
146150

0 commit comments

Comments
 (0)