Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I'm not going to be storing that many files per folder (like, usually less than 5-ish), however, so I may just store them like "Folder\Name1.filetype1" and "Folder\Name1.filetype2" and so on, then repeating that for "Name2" or such, storing all of the files in the same folder. Not what I wanted, but if I can't do exactly what I want, then I'm okay with a compromise.
Folder\* will work as a search to find all files. You will have to specify fa_directory if you want to include folders in your search as well.
Folder\*\File.ini therefore will not work.
You could rework your script to recursively search arbitrarily-named folders to test for the presence of File.ini or any other file.
Perhaps something called scrFind that looks more like the following:
or call scrFind(working_directory + "Folder", "*.ini") to search for all .ini files.
or more generally scrFind(working_directory + "Folder", "Name.filetype")
hope this helps.
To be fair, the only reason that I wanted to check for File.ini or such in the first place was so that I could find(/could've hopefully found) the folders. In this script, I simply care about the amount of folders, not their contents. Stuff relating to the contents will come in a more specialized manner on its own.
I don't think that that would work. I remember GameMaker: Studio telling me off once for trying to call a script from within that same script, so having a script called scrFind use scrFind wouldn't even compile the executable if I remember correctly.
Despite the above two responses of mine, yes, that should help a lot. Thank you.