Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
28
addons/dialogic/Other/export_plugin.gd
Normal file
28
addons/dialogic/Other/export_plugin.gd
Normal file
|
@ -0,0 +1,28 @@
|
|||
extends EditorExportPlugin
|
||||
|
||||
func _export_begin(features:PoolStringArray, is_debug:bool, path:String, flags:int)->void :
|
||||
|
||||
for feature in features:
|
||||
if feature == "Android":
|
||||
return
|
||||
|
||||
var file = File.new()
|
||||
var directory = Directory.new()
|
||||
|
||||
var paths = DialogicResources.get_working_directories()
|
||||
|
||||
|
||||
|
||||
for dir in paths:
|
||||
if directory.open(paths[dir]) == OK:
|
||||
directory.list_dir_begin()
|
||||
var file_name = directory.get_next()
|
||||
while file_name != "":
|
||||
if not directory.current_is_dir():
|
||||
var file_lower = file_name.to_lower()
|
||||
if ".json" in file_lower or ".cfg" in file_lower:
|
||||
var file_path = paths[dir] + "/" + file_name
|
||||
if file.open(file_path, File.READ) == OK:
|
||||
add_file(file_path, file.get_buffer(file.get_len()), false)
|
||||
file.close()
|
||||
file_name = directory.get_next()
|
Loading…
Add table
Add a link
Reference in a new issue