HELP NEEDED: the recipe is almost ready, but since the game requires additional files (the original game data) to be copied to the installation directory, and since that directory is read-only (/boot/system/apps/AnotherWorld/), I don’t know how to proceed.
@humdinger is our script guru, I’ll leave that up to him, left a note on the PR to put the binary “raw” in $binDir or $prefix/bin so users can control the engine from Terminal even without the script.
The bash startup script looks for the application “neo-raw”, in 32 bits it is called “neo-raw-x86”. I have copied and modified the script and it works fine with that executable, but I guess that not everyone looks at the script file or launch some things from Terminal
Maybe creating an alias (end-user) or editing the recipe are good options for the distribution. Or create the verification in script:
runapp=""
FILE=/boot/system/bin/neo-raw
if [ -f "$FILE" ]; then
runapp="/boot/system/bin/neo-raw"
else
runapp="/boot/system/bin/neo-raw-x86"
fi
"$runapp" --datapath=$DATA_PATH --savepath=$SAVE_PATH $@ &
# Something like this i supose
Greetings and thanks for one of my favorite games!
I have this on the PATH variable: ~> echo $PATH
.:/boot/home/config/non-packaged/bin:/boot/home/config/bin:/boot/system/non-packaged/bin:/bin:/boot/system/apps:/boot/system/preferences
~>
I doesn’t have /boot/system/bin/x86/ added by default, ergo doesn’t start neo-raw because the name of the symlink is neo-raw-x86 … that’s important, right? Because ok, the neo-raw-x86 is a symlink but …Shouldn’t that route be added by default in the system?
What’s the point of having it like this, /bin for symbolic links and /bin/x86 for applications?
My bad, it is maybe better to point to the liked file in this case? As for routing the path, I think it would confuse the system when it can find both the binaries in $PATH? (not a dev here so not that knowlidgable in that area).
I think the PATH is only routed to /bin/x86 in x86 mode, with setarch x86, otherwise, by default, x86_gcc2 binaries are run, unless you are explicit with the -x86.
That is why gcc is gcc2 unless you setarch x86.