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
var asset_index_path = assets_dir + "indexes\\" + "16.json"
68
+
var assets_dir = get_assets_dir();
69
+
var selected_asset_list = sound_import_selected_asset_index;
70
+
if (selected_asset_list == "") return;
71
+
var asset_index_path = assets_dir + "indexes\\" + selected_asset_list + ".json";
35
72
if (!file_exists(asset_index_path)) {
36
73
show_message("The file for the specified asset index could not be found!")
37
74
return;
@@ -49,12 +86,13 @@ function load_asset_index(index_name, copy = false) {
49
86
50
87
var sounds_mc_subdir = sounds_directory + "minecraft";
51
88
52
-
if (directory_exists_lib(sounds_mc_subdir)) {
89
+
if (copy && directory_exists_lib(sounds_mc_subdir)) {
53
90
if (!message_yesnocancel("An existing folder with imported Minecraft sounds has been found in your Sounds folder. Would you like to replace it?", "Warning")) {
54
91
return;
55
92
} else {
56
93
directory_delete_lib(sounds_mc_subdir);
57
94
}
95
+
sound_import_status = 1;
58
96
}
59
97
60
98
for (var i = array_length(keys) - 1; i >= 0; --i) {
@@ -75,7 +113,7 @@ function load_asset_index(index_name, copy = false) {
0 commit comments