Skip to content

Commit 28d1f84

Browse files
Updated one more file extension checking
Theoretically the last file extension check
1 parent cb520a1 commit 28d1f84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
function enforce_extension(path, ext){
2-
if (filename_ext(path) != ext) path += ext
2+
if (string_lower(filename_ext(path)) != ext) path += ext
33
return path
44
}

scripts/pattern_import/pattern_import.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function pattern_import() {
2121

2222
file_ext = string_lower(filename_ext(fn));
2323
if (file_ext != ".nbp") {message(condstr(language != 1, "Error: This file is not a pattern.", "错误:该文件不是分段文件。"), condstr(language != 1, "Error", "错误")) return 0}
24-
if (file_ext = ".nbp") {
24+
if (file_ext == ".nbp") {
2525
buffer = buffer_import(fn)
2626

2727
song_pat_version = buffer_read_byte()

0 commit comments

Comments
 (0)