Page 1 of 1

tome4 does not respect FHS

Posted: Thu Aug 29, 2013 5:54 pm
by hasufell
It seems you cannot install the binary and the data files separately as one would do while following FHS which is standard in 95% of all unix distros more or less.
It will cause failure to start the game, because there seems to be no way of telling it during compile time where those data files will be. Correct me if I am wrong.

see http://www.pathname.com/fhs/pub/fhs-2.3.html

Re: tome4 does not respect FHS

Posted: Sun Oct 20, 2013 10:15 pm
by darkgod
It can be made to actually.

When the exe is compiled, create a file named "boot.lua" containing two lines:

Code: Select all

fs.mount("/THE/PATH/game"..fs.getPathSeparator().."thirdparty", "/", true)
fs.mount("/THE/PATH/game", "/", true)
Obviously replace THE/PATH with the actual install path.
Then create a zip containing only this file in a folder named "bootstrap", append the zip to the exe and voila !

Re: tome4 does not respect FHS

Posted: Sat Nov 02, 2013 11:51 pm
by hasufell
that doesn't sound very well and is problematic with stripping binaries

a much easier hack is to sed the PHYSFS_mount lines in main.c

Re: tome4 does not respect FHS

Posted: Sun Nov 03, 2013 12:03 am
by darkgod
Hum you could do that too yes