android build

This commit is contained in:
2025-02-10 13:31:54 +01:00
parent 65faf0230b
commit e020784f4f
11 changed files with 9 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
#include <stdio.h>
#include <cstdio>
#include <unistd.h>
#include "sys.hpp"
#include <raylib.h>
@@ -25,7 +25,7 @@ namespace sys
const char *saveFilePath = transformFilePath(filename);
FILE *file = fopen(saveFilePath, "wb");
if (file == NULL)
if (file == nullptr)
return false;
size_t ret = fwrite(data, 1, size, file);
@@ -39,7 +39,7 @@ namespace sys
const char *saveFilePath = transformFilePath(filename);
FILE *file = fopen(saveFilePath, "rb");
if (file == NULL)
if (file == nullptr)
return false;
size_t ret = fread(data, 1, size, file);