I'm trying to turn IncBin support on/off in my program to avoid the long compile times until I'm building to release, but the problem is that putting IncBin commands in a function, regardless of whether it gets called or not, results in the media being included with the exe.
Ex:
Ex:
Global buildMode = 1, buildStr$ ' 1 = Dev | 2 = Release If buildMode = 2 Then buildStr$ = "incbin::" If buildMode = 2 Then IncludeBin Global img = LoadImage(buildStr$ + "gfx/img.png") Function IncludeBin() Print "hit" IncBin "gfx/img.png" End FunctionSwitching the buildMode doesn't stop the image from being included, the only way to do so is to comment out the function altogether. It's odd because "hit" never gets printed either, even though the IncBin command is being called somehow. Is there a way to do this?