[WIP] Add text rendering
This commit is contained in:
1 parent
3bd14b20c2
commit
b2508ce4ff
15 files changed
+248
-27
No files matched your search
@@ -16,9 +16,9 @@ void rse_read_file(const char* file_name, long* bytes_count, char* buffer)
|
||||
fclose(file);
|
||||
return;
|
||||
}
|
||||
|
||||
if (fread(buffer, *bytes_count, 1, file)) {
|
||||
perror("Empty file read");
|
||||
fread(buffer, *bytes_count, 1, file);
|
||||
if (ferror(file) != 0) {
|
||||
perror("Error reading file");
|
||||
}
|
||||
|
||||
fclose(file);
|
||||
|
||||
Reference in new issue
Block a user