We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753c637 commit cc9afb0Copy full SHA for cc9afb0
1 file changed
scripts/open_song_zip/open_song_zip.gml
@@ -6,7 +6,10 @@ function open_song_zip(filename) {
6
directory_delete_lib(dst_path);
7
}
8
9
- zip_unzip(filename, dst_path);
+ var output = zip_unzip(filename, dst_path);
10
+ if (output < 0) {
11
+ throw("This doesn't appear to be a valid ZIP file!")
12
+ }
13
14
var song_path = dst_path + "song.nbs";
15
var sounds_path = dst_path + "sounds\\";
0 commit comments