Skip to content

Commit

Permalink
attemping fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
face-hh committed Mar 19, 2024
1 parent 7296a29 commit c588b8c
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 1 deletion.
Binary file modified Builds/Linux.zip
Binary file not shown.
Binary file modified Builds/Windows.zip
Binary file not shown.
11 changes: 11 additions & 0 deletions Lua/Plugins/test.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends Node


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
11 changes: 11 additions & 0 deletions Lua/Themes/test.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends Node


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
11 changes: 11 additions & 0 deletions Lua/test.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends Node


# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
Empty file added Lua/test.gdscript
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ https://github.com/face-hh/griddycode/assets/69168154/df93830e-6e24-472d-a854-ce
- [Methods](#methods-1)
- [Publishing](#publishing)
- [Contributions](#contributions)
- [Current bugs/needed features](#-current-bugsneeded-features)
- [Current bugs/needed features](#-current-bugsneeded-features)
- [HIGH PRIORITY](#high-priority)
- [MEDIUM PRIORITY](#medium-priority)
- [LOW PRIORITY](#low-priority)
Expand Down
5 changes: 5 additions & 0 deletions Scripts/file_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ var current_file: String;
var current_dir: String = "/";

func _ready():
if (OS.get_name() == "Windows"):
current_dir = "C:/"
print(current_dir)
inject_lua()
check_for_reserved()

Expand Down Expand Up @@ -49,6 +52,8 @@ func inject_lua() -> void:
copy_if_not_exist("langs", "Plugins", plugin)

func copy_if_not_exist(user_path: String, res_path: String, file: String) -> void:
if !file.contains("lua"): return

var path = "user://" + user_path + "/" + file;
var current_path = "res://Lua/" + res_path + "/" + file;
var exists = FileAccess.file_exists(path);
Expand Down

0 comments on commit c588b8c

Please sign in to comment.