2023-02-08 14:51:54 +01:00
|
|
|
|
2024-08-24 11:17:02 +02:00
|
|
|
function import_txt(path) {
|
2024-04-02 15:45:49 +02:00
|
|
|
let b = data_get_blob(path);
|
2025-01-17 09:51:53 +01:00
|
|
|
let filename = path.split("\\\\").pop().split("/").pop();
|
2024-08-24 11:17:02 +02:00
|
|
|
ui_box_show_message(filename, buffer_to_string(b));
|
|
|
|
|
data_delete_blob(path);
|
2023-02-08 14:51:54 +01:00
|
|
|
}
|
|
|
|
|
|
2024-04-02 15:45:49 +02:00
|
|
|
let plugin = plugin_create();
|
2024-08-24 11:17:02 +02:00
|
|
|
path_texture_importers_set("txt", import_txt);
|
|
|
|
|
plugin_notify_on_delete(plugin, function() {
|
|
|
|
|
path_texture_importers_delete("txt");
|
|
|
|
|
});
|