1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

minor Android fixes

This commit is contained in:
Zeno Rogue 2018-06-15 00:03:05 +02:00
parent d7d9f2e82d
commit 0054b09b5c
3 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,8 @@
This directory contains the sources of the Android port of HyperRogue.
You should copy the sound and music files from HyperRogue's main directory to
the directories here; this is done by the script `copy.sh`.
the directories here; also `language-data.cpp` file generated during HyperRogue's build
process is required. This is done by the script `copy.sh`.
The 'low quality' versions of music files are already in their location (copying them
is uncommented in copy.sh).

View File

@ -65,7 +65,7 @@ bool settingsChanged = false;
struct transmatrix getOrientation();
}
#include "/home/eryx/proj/rogue/hyper/init.cpp"
#include "../../../../../init.cpp"
namespace hr {

View File

@ -2,6 +2,17 @@
mkdir -p app/src/main/assets/sounds
cp ../sounds/* app/src/main/assets/sounds/
mkdir -p app/src/main/res/raw/
#for x in caves crossroads desert graveyard hell icyland jungle laboratory mirror rlyeh
#do cp ../music/hr3-$x.ogg app/src/main/res/raw/$x.ogg
#done
# make sure that language-data.cpp is generated
if [ ! -f ../language-data.cpp ]; then
echo "File language-data.cpp not found! Trying to compile and run langen"
cd ..
g++ langen.cpp -o langen
./langen > language-data.cpp
ls -l langen language-data.cpp
cd hyperroid
fi