Skip to content

Commit baf013f

Browse files
committed
temp workaround for audio export
1 parent 3cf1566 commit baf013f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

scripts/audio_export/audio_export.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function mp3_export() {
2424
fn = string(get_save_filename_ext(output_format + " files (*" + output_ext + ")|*" + output_ext, filename_new_ext(songs[song].filename, "") + output_ext, filename_path(songs[song].filename), condstr(language != 1, "Export audio track", "导出音频文件")))
2525
if (fn = "") return 0
2626

27-
save_song(temp_file, true);
27+
save_song(temp_file, true, false, 5);
2828

2929
var args = [temp_file, fn]
3030
var kwargs = {

scripts/save_song/save_song.gml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function save_song() {
22
// save_song(fn[, backup, is_autosave])
3-
var fn, backup, nbsver, f, a, ca, cb, fsave, asave;
3+
var fn, backup, nbsver, f, a, ca, cb, fsave, asave, has_v6_ins;
44
fn = argument[0];
55
backup = false;
66
asave = false;
7-
var has_v6_ins = false;
7+
has_v6_ins = false;
88
var cursong = songs[song];
99
if (argument_count > 1) {
1010
backup = argument[1];
@@ -28,6 +28,10 @@ function save_song() {
2828
} else {
2929
nbsver = save_version
3030
}
31+
32+
if (argument_count > 3) {
33+
nbsver = argument[3];
34+
}
3135

3236
buffer = buffer_create(8, buffer_grow, 1)
3337

0 commit comments

Comments
 (0)