I am running AppGameKit Studio V1.0 in Windows 10. I am simply trying to list all of the files in BOTH the project/media folder as well as the "Write Folder", which I have idenitifed as C:/users...AppData. Per the documentation here:
https://www.appgamekit.com/documentation/Reference/File/GetFirstFile.htm
An argument of 2 should read both locations. So, I added files to both locations, but:
This simple code never seems to retrieve from both locations, and appears to be returning different results depending on whether the project is being executed in RUN or DEBUG mode:
strFileName as String
strFileName = GetFirstFile(2)
If strFileName <> ""
Repeat
Print(strFileName)
strFileName = GetNextFile()
Until strFileName = ""
EndIf // If strFileName <> ""
Sync()
Message("!")
There is no other code in the project and I have changed no project level settings once I created the test project to demonstrate this, although I have twiddled various editor settings.
I've tried all four possible
settings and get this:
- The documentation suggests no parameter is the same as "2", yet using that setting only lists the files in one or the other location, depending on how the project is started:
RUN: ONLY Media folder contents in the project folder - NO write folder contents appear to be found
DEBUG: ONLY Media folder in C:\user...local - no Media Folder contents from the Project are found
- Lists only the files in project media folder, as described by the documentation:
RUN: Media folder in C:\user...local
DEBUG: RETRIEVES NOTHING
- Lists only the files in write folder, as expected:
RUN: RETRIEVES NOTHING
DEBUG: Media folder in C:\user...local[
- Lists only the files in one or the other location, depending on how the project is started, just like using no parm above
RUN: ONLY Media folder contents in the project folder
DEBUG: ONLY Media folder in C:\user...local
I can find nothing about this online. Can somebody suggest what needs to be done to make it read both locations?