Skip to content

Commit 66ebe72

Browse files
author
ShinkoNet
authored
NBS 2 Format 2 (Native Stereo) Support
It will upgrade 3.4.0's nbt version to the current.
1 parent baf98ff commit 66ebe72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/load_song/load_song.gml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ if (file_ext = ".nbs") {
2424
byte1 = buffer_read_byte()
2525
byte2 = buffer_read_byte()
2626

27-
//First two bytes 0 = new nbt format
28-
if(byte1 = 0 && byte2 = 0){
27+
//First byte 0 = new nbt format. Second byte 1 = 3.5.0's version (Format 2)
28+
if(byte1 = 0 && byte2 = 1){
2929
song_nbt_version = buffer_read_byte()
3030
song_first_custom_index = buffer_read_byte()
3131
custom_index_diff = first_custom_index - song_first_custom_index
3232
}else{
3333
message("Warning: You are opening an older NBS file. Saving this file will make it incompatible with older Note Block Studio versions.","Warning")
34-
song_nbt_version = 0
34+
song_nbt_version = 1
3535
custom_index_diff = 0
3636
song_first_custom_index = 0
3737
}

0 commit comments

Comments
 (0)