From a96cf5d597e240a26aa630e97c83beaa4f193266 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Sun, 24 Mar 2024 22:22:18 -0700 Subject: [PATCH] fix: explicitly don't accept rvz files --- src/renderer/pages/quick_start/steps/iso_selection_step.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/pages/quick_start/steps/iso_selection_step.tsx b/src/renderer/pages/quick_start/steps/iso_selection_step.tsx index 1f7ab0fdb..ffa47d5c8 100644 --- a/src/renderer/pages/quick_start/steps/iso_selection_step.tsx +++ b/src/renderer/pages/quick_start/steps/iso_selection_step.tsx @@ -77,6 +77,9 @@ export const IsoSelectionStep = React.memo(() => { if (filePath.endsWith(".7z")) { showError("7z files must be uncompressed to be used in Dolphin."); return; + } else if (filePath.endsWith(".rvz")) { + showError("RVZ files are currently incompatible with Slippi."); + return; } setTempIsoPath(filePath); @@ -84,7 +87,7 @@ export const IsoSelectionStep = React.memo(() => { const validIsoPath = validIsoPathQuery.data?.valid ?? IsoValidity.UNVALIDATED; const { open, getRootProps, getInputProps, isDragActive, isDragAccept, isDragReject } = useDropzone({ - accept: [".iso", ".gcm", ".gcz", ".ciso", ".7z"], + accept: [".iso", ".gcm", ".gcz", ".ciso", ".7z", ".rvz"], onDrop: onDrop, multiple: false, noClick: true,