Browse Source

Update build script

merge-requests/2/head
Miloslav Číž 2 years ago
parent
commit
362a05c08b
  1. 2
      game.h
  2. 5
      main_terminal.c
  3. 2
      make.sh

2
game.h

@ -67,7 +67,7 @@ @@ -67,7 +67,7 @@
#endif
#ifndef SFG_CPU_LOAD
#define SFG_CPU_LOAD(percent) ; ///< Can be redefined to check CPU load in %.
#define SFG_CPU_LOAD(percent) {} ///< Can be redefined to check CPU load in %.
#endif
/**

5
main_terminal.c

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
priviledges (sudo) to work! This frontend is more of an experiment, don't
expect it to work perfectly and everywhere.
Needs to be run with sudo.
by Miloslav Ciz (drummyfish), 2019
Released under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
@ -138,7 +140,8 @@ int main() @@ -138,7 +140,8 @@ int main()
timeStart = getTime();
devFile = open("/dev/input/event0", O_RDONLY);
devFile = open("/dev/input/event0",O_RDONLY);
// ^ replace with your specific keyboard file
fcntl(devFile, F_SETFL, O_NONBLOCK);

2
make.sh

@ -48,7 +48,7 @@ elif [ $1 == "terminal" ]; then @@ -48,7 +48,7 @@ elif [ $1 == "terminal" ]; then
echo ${COMMAND}
${COMMAND} && ./game
${COMMAND} && sudo ./game
elif [ $1 == "pokitto" ]; then
# Pokitto build, requires:
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the

Loading…
Cancel
Save