forked from JHDev2006/Super-Mario-World-Remastered-Public
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload_test.gd
More file actions
20 lines (16 loc) · 678 Bytes
/
Copy pathload_test.gd
File metadata and controls
20 lines (16 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
extends Node
@onready var areas := ["YoshiIsland", "DonutPlains", "VanillaDome", "TwinBridge", "IllusionForest", "ChocoIsland", "BowserValley", "StarRoad", "SpecialWorld", "SMBW1"]
var fucked_levels := []
func _ready() -> void:
for i in areas:
for x in DirAccess.get_files_at("res://Instances/Levels/" + i):
var path = "res://Instances/Levels/" + i + "/" + x.replace(".remap", "")
var check = load(path)
if is_instance_valid(check) == false:
fucked_levels.append(path)
write_to_file()
func write_to_file() -> void:
var file = FileAccess.open("user://FuckedLevels.cum", FileAccess.WRITE)
for i in fucked_levels:
file.store_string(i + "\n")
file.close()