This commit is contained in:
luboslenco
2025-09-01 21:31:59 +02:00
parent 53ec3068a2
commit 3faf6b3d73
174 changed files with 352 additions and 343 deletions
+13
View File
@@ -0,0 +1,13 @@
function import_plugin_run(path: string) {
if (!path_is_plugin(path)) {
console_error(strings_unknown_asset_format());
return;
}
let filename: string = substring(path, string_last_index_of(path, path_sep) + 1, path.length);
let dst_path: string = path_data() + path_sep + "plugins" + path_sep + filename;
file_copy(path, dst_path); // Copy to plugin folder
box_preferences_files_plugin = null; // Refresh file list
console_info(tr("Plugin imported:") + " " + filename);
}