RequestFile
BlitzMax Forums/BlitzMax Programming/RequestFile
| ||
local file:string = requestfile("Eternal Crisis: Save", "File (*.ec):ec", true, appdir + "/data") I've tried different variations, such as; \data, //data, etcetera. The /data directory exists. All it does is put me into appdir location and add "data" as the file name. Am I missing something? I'm trying to basically enforce the initial directory to /data. I fixed it by adding an additional directory. I'm using BLIde. I have a directory for the project, where the BLIde file exists and the additional directory where all the source files exist. Appdir is returning the directory where the BLIde file exists. Shouldn't appdir return the directory where the executable exists? |
| ||
Shouldn't appdir return the directory where the executable exists? Yes. |
| ||
I'm using the new BLIde now and the original "fix" by passing AppDir and the folder where the source files exist, then the desired initial directory, doesn't work anymore.local file:String = requestfile("Save", "File (*.ec):ec", true, appdir + "/data") It loads just appdir now, ignores /data (I've tried multiple variations; //data, \data, etc.) and I can no longer force the initial directory. Am I using this wrong or something? Seems logical that if I pass a specific directory as the "initial directory" it should start the request at that location. At the moment, it doesn't, not even if I pass the full directory path manually (instead of using appdir + "/data" which of course has the same result). |
| ||
stick in a trailing slash and it might just work ;) |
| ||
LMAO, thanks grable |