Fixed warnings + add vec magic number

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2025-01-27 14:46:36 +02:00
parent 2ccfad3875
commit fe5b9a131f
2 changed files with 77 additions and 51 deletions

View File

@@ -27,8 +27,8 @@ evstring
evstring_readFile(
evstring filePath)
{
FILE* f = fopen(filePath, "rb");
if(f == NULL) return EV_INVALID(evstring);
FILE* f = NULL;
if(fopen_s(&f,filePath,"rb")) return EV_INVALID(evstring);
fseek(f, 0, SEEK_END);
u32 buflen = ftell(f);