mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-22 14:35:58 +01:00
add elbrus build script
This commit is contained in:
parent
ee65d5ca7e
commit
6fe0191cc2
3
src/platform/nix/build_e2k.sh
Normal file
3
src/platform/nix/build_e2k.sh
Normal file
@ -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
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user