mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-06 17:51:36 +02:00
Also fix read_file_bin.
This commit is contained in:
parent
269de98d22
commit
cd548cc83d
@ -164,6 +164,8 @@ Vector<uint8_t> Directory::read_file_bin(const String &path) {
|
|||||||
long fsize = ftell(f);
|
long fsize = ftell(f);
|
||||||
fseek(f, 0, SEEK_SET); /* same as rewind(f); */
|
fseek(f, 0, SEEK_SET); /* same as rewind(f); */
|
||||||
|
|
||||||
|
fd.resize(fsize);
|
||||||
|
|
||||||
fread(fd.dataw(), 1, fsize, f);
|
fread(fd.dataw(), 1, fsize, f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user