Minor cleanup and texture update
This commit is contained in:
1 parent
2d230d7280
commit
3bd14b20c2
9 files changed
+8
-16
No files matched your search
@@ -17,7 +17,10 @@ void rse_read_file(const char* file_name, long* bytes_count, char* buffer)
|
||||
return;
|
||||
}
|
||||
|
||||
fread(buffer, *bytes_count, 1, file);
|
||||
if (fread(buffer, *bytes_count, 1, file)) {
|
||||
perror("Empty file read");
|
||||
}
|
||||
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
@@ -29,4 +32,4 @@ void rse_write_to_file(const char* file_name, long bytes_count, char* buffer)
|
||||
|
||||
fwrite(buffer, bytes_count, 1, file);
|
||||
fclose(file);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user