From fe5da2c807a9ba5b61f8aebd7fc734c96c6e12c2 Mon Sep 17 00:00:00 2001 From: Andrey Kolosov Date: Thu, 15 Aug 2019 20:05:41 +0300 Subject: [PATCH] add mpq warning --- src/App.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.js b/src/App.js index b3f594a..f8795fa 100644 --- a/src/App.js +++ b/src/App.js @@ -249,6 +249,10 @@ class App extends React.Component { this.fs.then(fs => fs.upload(file)).then(console.log(`Updated ${file.name}`)); return; } + if (file && !file.name.match(/\.mpq$/i)) { + window.alert('Please select an MPQ file. If you downloaded the installer from GoG, you will need to install it on PC and use the MPQ file from the installation folder.'); + return; + } document.removeEventListener("drop", this.onDrop, true); document.removeEventListener("dragover", this.onDragOver, true);