Code: Select all
#PB_Compiler_Project
#PB_Compiler_ProjectName
#PB_Compiler_ProjectPath
The first constant would be most useful. The other two are just for convenience, could be derived like GetFilePart(#PB_Compiler_Project).
(All three would of course be "" if a file is compiled without any associated project.)
This way, if your project structure is like:
then "Images.pbi" could reference "Icon.png" such asMyProject/MyProject.pbp
MyProject/Source/Main.pb
MyProject/Source/Images.pbi
MyProject/Images/Icon.png
Code: Select all
IncludeBinary #PB_Compiler_ProjectPath + "Images/Icon.png"
Not critical, just a request!