![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Dragon20C |
here is a link to the code : Legobet88 🀄 Trustworthy Agen Situs Slot Online Bet88 Terpercaya Ter- Gacor Hari Ini 2024
func check_all_files_exist():
var directory = Directory.new()
var file = File.new()
if !directory.dir_exists(docs + "/Open Mod Manager"):
directory.make_dir(OMM_Folder)
if !file.file_exists(OMM_Folder + "/OMM.ini"):
file.open(OMM_Folder + "/OMM.ini",File.WRITE)
file.close()
explorer.popup_centered(get_viewport_rect().size / 2)
func set_ini_info(path : String):
var config = ConfigFile.new()
var err = config.load(OMM_Folder + "/OMM.ini")
if err == OK:
#if !config.has_section_key("OMM", "Fallout4_Dir"):
if check_valid_folder(path):
config.set_value("OMM", "Fallout4_Dir", path)
config.save(OMM_Folder + "/OMM.ini")
else:
print("false")
explorer.popup_centered(get_viewport_rect().size / 2)
# Save the changes by overwriting the previous file
fyi the filedialog is called explorer in my case.
I first open it in the first function and then in the second function I call another function if the filedialog doesnt open up a valid folder, but it doesnt open it, any clues why its not opening or maybe thats how its supposed to work.