W
Wraithious
Guest
Hello, I am making an extension that, as well as many other things, can put a file from the game's included files into a folder that the player (or game developer) chooses, it works fine if you want to transfer a file from the device to a chosen folder, but getting the address to the game asset folder to pass to the extension does not work, this is the results of the log output I added to check what the address being passed is:
As you can see the word assets is being passed instead of the actual path. These are some of the ways I tried passing the needed path:
Both result in the same exact log output.
So how can I get working_directory to give the actual string path I need to pass to my extension?
Code:
11-05 22:38:31.715 24866 24930 I yoyo : got file: assets/wildDubz.mp3
11-05 22:38:31.716 24866 24930 I yoyo : File exists: false
11-05 22:38:31.716 24866 24930 I yoyo : Couldn't find file
Code:
///Save audio from game to new folder
if canRec=1 SaveFromAs(working_directory+"/wildDubz.mp3",global.myFolder,"coppied",0);//file in, folder out, new file name, set as ringtone
///Save audio from game to new folder
var wfld = string(working_directory);
if canRec=1 SaveFromAs(wfld+"/wildDubz.mp3",global.myFolder,"coppied",0);
So how can I get working_directory to give the actual string path I need to pass to my extension?