Common path for files

I'm not sure what it is called, but ill do my best to explain it. I did a search here on stack swap and found this answer for allias for path, but I don't want to set a variable for it and I already know that. create an alias for the path

What I need and it has been since I saw this, but it was used with% or $ or whatever, that when the program is run from a directory, it knows where the directory is for the game files. It doesn't matter what directory the program is in, as long as the "gameFiles" directory is in that directory and it will work.

Here's my path:

"/storage/emulated/0/MyGame/MyHackGame/jni/gameFiles/oscom.txt"

      

I think something like:

"%or$/gameFiles/oscom.txt"

      

The main problem is that I have a project in the original forge and I don't want my developers to have to change these paths like 100 times to run the program and then I have to change them.

Also iam using aide for android to make a program and use the standard C ++ libaray can be difficult to do this. I'm not even sure if I can add libarays with a helper and my own code or how to do it.

+3


source to share


1 answer


Use symbolic links as Eugene suggested or modified build scripts to generate custom paths to binaries or spearate files at build time. They are ignored by version tracking, so there are no more double mills. Another way could be checking the env variables at runtime.



0


source







All Articles