This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/addons/dialogue_manager/editor_export_plugin.gd
2022-06-18 13:05:48 +02:00

14 lines
457 B
GDScript

extends EditorExportPlugin
const DialogueConstants = preload("res://addons/dialogue_manager/constants.gd")
func _export_begin(_features, _is_debug, _path, _flags):
# Add our config file to the build
var file = File.new()
if file.file_exists(DialogueConstants.CONFIG_PATH):
file.open(DialogueConstants.CONFIG_PATH, File.READ)
var contents = file.get_buffer(file.get_len())
file.close()
add_file(DialogueConstants.CONFIG_PATH, contents, false)