Jump to content


Photo

Accessing non included files in absolute paths


  • Please log in to reply
No replies to this topic

#1 barnack

barnack

    GMC Member

  • New Member
  • 7 posts
  • Version:GM:Studio

Posted 29 March 2016 - 07:59 AM

Ok since it was getting ot in my other post i mad a new one.

What i need is to access external files (particularly ini and txt).

 

Under GameGeisha's suggestion i've tested this http://gmc.yoyogames...howtopic=567528 , but i'm having problems with it.

Text files related functions return empty strings, and ini related functions always return 0 if the key exists (the default value works fine btw)

 

I've also tryed another way:

include a tmp_settings.ini, and use

"copy [folders path]\folder_settings.ini "+working_directory+"tmp_settings.ini"

inside a shell call using this extension http://yal.cc/gamema...memaker-studio/ jo-dijis suggested me,

and then load variables from tmp_settings.ini

 

Both ways don't work at all.

 

The best would be If someone knows what's the cause of GameGeisha's solution not working and how to fix it.

If not i'd need another way to access external ini files.

 

Note:

since i'm making a file Explorer mainly focusing on user's customization, having a settings.ini for each folder is essential.

Also i need to access files cause basically i'll use the shell extension to create a txt which contains folder's content list

("dir > "+path+"content.txt")


  • 0