aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorKikooDX <kikoodx@paranoici.org>2022-04-12 17:02:17 +0200
committerKikooDX <kikoodx@paranoici.org>2022-04-12 17:10:56 +0200
commit605d6d09708a99c1c57cf4a0427d997614d288f8 (patch)
treed23b712307259d1f4950491bfc8e9045a82f77f2 /src/main.c
parentbf1c9bd3d4625f85dedfa8a241e08bca54caeea4 (diff)
downloadlzy-605d6d09708a99c1c57cf4a0427d997614d288f8.tar.gz
use SDL_GetBasePath
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 008bb84..458f362 100644
--- a/src/main.c
+++ b/src/main.c
@@ -8,12 +8,14 @@
static const int speed = 4;
-int main(int argc, const char **argv) {
+int main(int argc, char **argv) {
int x = 0;
int y = 0;
- if (LZY_Init(argc, argv, "lzy example", 30, "res/tset.png",
- "res/font.png")) {
+ (void)argc;
+ (void)argv;
+
+ if (LZY_Init("lzy example", 30, "res/tset.png", "res/font.png")) {
LZY_Log("LZY_Init failed: %s", LZY_GetError());
LZY_Quit();
return 1;