fix iso file extension detection (#1426)

This commit is contained in:
SuperMaxusa 2025-10-30 19:36:00 +02:00 committed by GitHub
parent 667313401d
commit 777b8c397c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2837,7 +2837,7 @@ function init_ui(profile, settings, emulator)
const files = file_input.files;
let buffer;
if(files.length === 1 && files[0].name.endsWith(".iso"))
if(files.length === 1 && /\.(iso(9660|img)?|cdr)$/i.test(files[0].name))
{
buffer = files[0];
}