PDetsFromPath with filename only (no absolute path)

If I call PDetsFromPath with just a filename, and not a full absolute path, i.e.:

PDetsFromPath("MyDatFile.dat");

Will TurboActivate assume that MyDatFile.dat is in the same directory that TurboActivate.dat would be in if I had never called PDetsFromPath? And would this always be the same directory as the executable itself?

I'm asking simply because I want to rename the .dat file, and nothing more.

We don't recommend passing in relative file paths. You should pass in the absolute file path. Otherwise TurboActivate loads the *.dat file relative to the "current path" of your app (which is not where your *.exe or *.app is located).

Does that make sense?

Ok, thanks. No problem.

I'm not sure if this is a bug or not, but if I call PDetsFromPath with an arbitrary filename, but I don't actually rename the .dat file (i.e., I leave it as TurboActivate.dat), the other TA function calls still succeed. This behavior seems unexpected to me.

It sounds like TurboActivate is loading the TurboActivate.dat from it's default search path (on Windows that's the exe's location + TurboActivate.dat).

Yes, but what I'm saying is that is still looking for TurboActivate.dat even after I tell it to use a different filename. Are you saying that it falls back to looking for TurboActivate.dat if it can't find the one I specify?

PDetsFromPath() will return an error code if it can't find the file. Any other function will first try to load the *.dat file (if it hasn't already been loaded) and if it loads successfully then it does its job.

Ok, that makes sense. Thanks.