Essentially what I'm suggesting is to change the "/usr/share/factorio" literal so that there is additional space available for different paths to fit in, eg. like this:
Code: Select all
#define SYSTEM_DATA_DIR "/usr/share/factorio\0Hello Nix people, you" \
" can use this space to write your own path" \
" into the binary. #end#"
And yes, I'm aware that it could be changed via wrapper script, but especially this wrapper introduces additional moving parts that could fail at runtime. Additionally shell wrappers also make running via ltrace or gdb a minor annoyance.
Again, this is a bit more exotic and I wouldn't be mad if this isn't implemented, since there are other ways™ to find the additional space needed within the binary.