diff --git a/src/platform/nix/build_e2k.sh b/src/platform/nix/build_e2k.sh new file mode 100644 index 0000000..07d7f58 --- /dev/null +++ b/src/platform/nix/build_e2k.sh @@ -0,0 +1,3 @@ +set -e +g++ -std=c++11 -O4 -s -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -Wno-invalid-source-encoding -DELBRUS -DNDEBUG -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS main.cpp ../../libs/stb_vorbis/stb_vorbis.c ../../libs/minimp3/minimp3.cpp ../../libs/tinf/tinflate.c -I../../ -o../../../bin/OpenLara -lX11 -lGL -lm -lpthread -lpulse-simple -lpulse +strip ../../../bin/OpenLara --strip-all --remove-section=.comment --remove-section=.note diff --git a/src/platform/nix/main.cpp b/src/platform/nix/main.cpp index e5fbd3f..d36327c 100644 --- a/src/platform/nix/main.cpp +++ b/src/platform/nix/main.cpp @@ -79,7 +79,12 @@ void sndFree() { // Input InputKey keyToInputKey(int code) { int codes[] = { - 113, 114, 111, 116, 65, 23, 36, 9, 50, 37, 64, + #ifdef ELBRUS + 200, 201, 198, 204, + #else + 113, 114, 111, 116, + #endif + 65, 23, 36, 9, 50, 37, 64, 19, 10, 11, 12, 13, 14, 15, 16, 17, 18, 38, 56, 54, 40, 26, 41, 42, 43, 31, 44, 45, 46, 58, 57, 32, 33, 24, 27, 39, 28, 30, 55, 25, 53, 29, 52,