You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/load_song/load_song.gml
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -17,28 +17,28 @@ if (file_ext = ".schematic") {
17
17
open_schematic(fn)
18
18
return1
19
19
}
20
-
if (file_ext != ".nbs") {message("Error: This file cannot be opened in this program.", "Error") return0}
20
+
if (file_ext != ".nbs") {message("Error: This file cannot be opened in this program.", "Error") return0}
21
21
if (file_ext = ".nbs") {
22
22
buffer = buffer_import(fn)
23
23
24
24
byte1 = buffer_read_byte()
25
25
byte2 = buffer_read_byte()
26
26
27
-
if(byte1 = 0 && byte2 = 0){
27
+
if(byte1 = 0 && byte2 = 0){
28
28
song_nbs_version = buffer_read_byte()
29
29
if song_nbs_version < nbs_version message("Warning: You are opening an older NBS file. Saving this file will make it incompatible with older Note Block Studio versions.","Warning")
30
30
if song_nbs_version > nbs_version {
31
-
message("Warning: You are opening an NBS file created in a later version of Note Block Studio.\nPlease save the song as a V4 file or lower via the Save Options menu.","Error")
31
+
message("Warning: You are opening an NBS file created in a later version of Note Block Studio.\nPlease save the song as a version " + string(nbs_version) + " file or lower via the Save Options menu.","Error")
0 commit comments