Skip to content

Commit

Permalink
fix: explicitly don't accept rvz files
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Mar 25, 2024
1 parent 779867a commit a96cf5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/pages/quick_start/steps/iso_selection_step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ 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);
};
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,
Expand Down

0 comments on commit a96cf5d

Please sign in to comment.