Hello everybody,
I have the following problem, which I am obviously not able to solve.
The plugin I wrote can load fonts from any directory.
Only 3rd party commands are used there. When used normally, everything works fine.
However, when the project is run in debug mode, the plugin does not find the file.
I know that AppGameKit is started in debug mode from another directory ($(AGK_BASE_FOLDER)\Tier 1\Compiler\interpreters\).
And the input of the font is a relative path.
But the normal AppGameKit commands used to load files (LoadImage, ...) still work.
How do I get to the path where my font file is located in debug mode (relative path: 'media/ttf/font.ttf').
I have tried some commands without success.
GetFolder -> returns only a relative path
GetFirstFile/GetNextFile -> only file without path
GetFirstFolder/GetNextFolder -> relative to SetFolder path
OpenRawFolder/GetRawFolderFolderName -> unusable because
OpenRawFolder requires an absolute path.
I even loaded an image and had it give me the file name. Unfortunately, it only saves the filename as I specified it.
Have I overlooked something, can someone help me?