diff options
author | Charadon <dev@iotib.net> | 2022-06-08 08:26:31 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-08 08:26:31 -0400 |
commit | fa2a4d7f672e34b360687243ce549187bfce2e12 (patch) | |
tree | 0b3ae43dcf018578db4333164a0138e7802c6a54 | |
parent | 0855555e38a3ff6c702cd69cb760f2f2bb0912dd (diff) | |
download | Pong-C-fa2a4d7f672e34b360687243ce549187bfce2e12.tar.gz |
Fixed some more portability stuff.
-rw-r--r-- | premake5.lua | 4 | ||||
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/pong.h | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/premake5.lua b/premake5.lua index e08c861..92d7f50 100644 --- a/premake5.lua +++ b/premake5.lua @@ -6,8 +6,8 @@ project("Pong") trigger = "install", description = "Install the game to prefix.", execute = function() - os.executef("mkdir -p %s/Pong/resources", prefix) - os.executef("cp -v resources/* %s/Pong/resources/", prefix) + os.mkdir(string.format("%s/Pong/resources", prefix)) + os.executef("cp -r resources/* %s/Pong/resources/", prefix) os.executef("install -m755 bin/*/Pong %s/Pong/pong", prefix) os.exit(0) end diff --git a/src/main.c b/src/main.c index aa47996..21fbe8f 100644 --- a/src/main.c +++ b/src/main.c @@ -97,7 +97,7 @@ bool play_audio(int SoundEffect) { return true; } -int main() { +int main(int argc, char *argv[]) { //Raylib Init InitWindow(1280, 720, "Pong"); SetTargetFPS(60); diff --git a/src/pong.h b/src/pong.h index 15ba223..0fe384e 100644 --- a/src/pong.h +++ b/src/pong.h @@ -16,7 +16,6 @@ #include <unistd.h> #include <time.h> #include <stdatomic.h> -#include <threads.h> #include <setjmp.h> #include <string.h> |