is it possible to somehow access assets or files from the project directory in macros?
kha.Assets.loadBlob() in a macro I get the following error:
Path\to\Kha\Backends\Krom/kha/arrays/Float32Array.hx:5: characters 23-42 : You cannot access the js package while in a macro (for js.lib.Float32Array)
So I thought about using the
Sys API instead, it is available during compile time. But the issue here is that I can't find out how to get the project path.
Sys.getCwd() works (it returns the
build/debug directory), but it is a very ugly solution and i'm not sure if it returns the same relative path on all targets and for all situations.
Thank you very much