android build
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user