The compiler uses the LUA_PATH for resolving filenames for the require() command.
However, the embedFile() only seems to try to find the file in the same directory where called from.
It would be helpful and consistent if embedFile would use the same filename resolving mechanism as e.g. renderscripts could be located in their own location.
Looked in the source for it:
In src/compiler_functions.ts -> export default class LibraryEmbedFileFunction -> invoke
should equally use "getRequiredFileInfo()" method (in DULuaCompiler.ts)
The compiler uses the LUA_PATH for resolving filenames for the require() command. However, the embedFile() only seems to try to find the file in the same directory where called from. It would be helpful and consistent if embedFile would use the same filename resolving mechanism as e.g. renderscripts could be located in their own location.
Looked in the source for it: In src/compiler_functions.ts -> export default class LibraryEmbedFileFunction -> invoke should equally use "getRequiredFileInfo()" method (in DULuaCompiler.ts)