mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2025-02-16 07:00:11 -05:00
Update build script
This commit is contained in:
parent
b3decffc39
commit
362a05c08b
2
game.h
2
game.h
@ -67,7 +67,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SFG_CPU_LOAD
|
#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
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
priviledges (sudo) to work! This frontend is more of an experiment, don't
|
priviledges (sudo) to work! This frontend is more of an experiment, don't
|
||||||
expect it to work perfectly and everywhere.
|
expect it to work perfectly and everywhere.
|
||||||
|
|
||||||
|
Needs to be run with sudo.
|
||||||
|
|
||||||
by Miloslav Ciz (drummyfish), 2019
|
by Miloslav Ciz (drummyfish), 2019
|
||||||
|
|
||||||
Released under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
|
Released under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
|
||||||
@ -138,7 +140,8 @@ int main()
|
|||||||
|
|
||||||
timeStart = getTime();
|
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);
|
fcntl(devFile, F_SETFL, O_NONBLOCK);
|
||||||
|
|
||||||
|
2
make.sh
2
make.sh
@ -48,7 +48,7 @@ elif [ $1 == "terminal" ]; then
|
|||||||
|
|
||||||
echo ${COMMAND}
|
echo ${COMMAND}
|
||||||
|
|
||||||
${COMMAND} && ./game
|
${COMMAND} && sudo ./game
|
||||||
elif [ $1 == "pokitto" ]; then
|
elif [ $1 == "pokitto" ]; then
|
||||||
# Pokitto build, requires:
|
# Pokitto build, requires:
|
||||||
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the
|
# - PokittoLib, in this folder create a symlink named "PokittoLib" to the
|
||||||
|
Loading…
Reference in New Issue
Block a user