Hi to all i have a little problem, and can say how to solve it
I have several applications that I compile under different OS (Windows, Linux and Mac)
In order not to duplicate my resource files, I have a folder structure like below
-Root
- Demos
- Resources
- images
- sounds
- App1
- Bin
- Windows
- compileMode
- cpu/App1.exe
- Linux
- compileMode
- cpu/App1
- MacOS
- compileMode
- cpu/App1.app
- App2
- Bin
- Windows
- compileMode
- cpu/App2.exe
- Linux
- compileMode
- cpu/App2
- MacOS
- compileMode
- cpu/App2.app
- etc...
In my code i have
FTextureBuffer.LoadFromFile('../../../../../media/images/texturemaphq.tga');
It work under Windows and Linux but not on MacOS
Note i say the folder of MacOS app is in "Content/MacOS"
My problem is how to accessing to the Resources folder from the current folder of the executable ?
I tried by adding "../" twice but it's not work.
The problem is that the folder is in the back. If it will be a subfolder I wouldn't have any problems
Thanks in advance