First, let me thank you guys for making this. It's really fun to work with and it certainly beats appending a zip to the executable. 😁
I'm unsure about the sentinel though. On one hand the goal is compatibility with build-time injection using the linker. On the other hand, the only thing that prevents me from loading link-time resources is the sentinel fuse. I'd have to run sed or something...
Looking at the test.cpp it would seem it is safe to ignore postject_has_resource() since postject_find_resource(...)will return null if no resource is found. And indeed my application works better without postject_has_resource(). Now I can load both, resources injected at build-time and resources injected using postject.
So, my question is what is the sentinel/fuse actually guarding against? It just seems odd to introduce this artificial string substitution step since it breaks one of the main design goals: compatibility with link-time injection.
Unless the fuse has a hidden purpose that I don't understand just yet, I feel postject would be better of without it.
Thanks for looking into this...
First, let me thank you guys for making this. It's really fun to work with and it certainly beats appending a zip to the executable. 😁
I'm unsure about the sentinel though. On one hand the goal is compatibility with build-time injection using the linker. On the other hand, the only thing that prevents me from loading link-time resources is the sentinel fuse. I'd have to run
sedor something...Looking at the test.cpp it would seem it is safe to ignore
postject_has_resource()sincepostject_find_resource(...)will returnnullif no resource is found. And indeed my application works better withoutpostject_has_resource(). Now I can load both, resources injected at build-time and resources injected using postject.So, my question is what is the sentinel/fuse actually guarding against? It just seems odd to introduce this artificial string substitution step since it breaks one of the main design goals: compatibility with link-time injection.
Unless the fuse has a hidden purpose that I don't understand just yet, I feel postject would be better of without it.
Thanks for looking into this...