Also fix read_file_bin.

This commit is contained in:
Relintai 2022-04-26 22:41:33 +02:00
parent 269de98d22
commit cd548cc83d
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ Vector<uint8_t> Directory::read_file_bin(const String &path) {
long fsize = ftell(f);
fseek(f, 0, SEEK_SET); /* same as rewind(f); */
fd.resize(fsize);
fread(fd.dataw(), 1, fsize, f);
fclose(f);