-
Ini Path
I have an Ini file where a list of sound files are listed that the user can change.
My problem is the sounds are set to find the files on my pc and not the user.
to start of with is there a way of puting in the INI something like appdrv+appdir+file.wav like in the event editor?
Or sould I make the ini files create on install?(this will take forever)
-
Re: Ini Path
I've always used "./" to denote the current folder rather than Appdrv$ + Appdir$, but the choice doesn't make any huge difference. If your default samples are in the same folder as your INI, then you can just use:
"./" + GroupItemString$("Ini", "Group", "Item")
to get the sample name - the items string in the INI would then just have to be the name of your sample, such as "sample1=sound.wav", for it to be played correctly.
-
Re: Ini Path
Wow! thanks it works.
Is there any where we can learn all these extra "codes" ./
I find there are codes in edit object aswell that are very handy but there is no documentation on them.
Or do you have to be a real programer to remember them all?
Thanks again.
-
Re: Ini Path
"./" is just a pathname, the same as is used by Windows, rather than something to do with MMF itself. The same as ".." being used to mean "the folder above the current one". They're left over from the DOS days.