MSRevive / MasterSwordRebirth

Continuation of Master Sword Classic/Continued.
https://msrebirth.net/
Other
9 stars 6 forks source link

Some VGUI elements are broken when trying to load #186

Closed SaintWish closed 1 year ago

SaintWish commented 1 year ago
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_arrowlt.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/arrowlt.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_arrowrt.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/arrowrt.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_.tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading
cl: FileSystem_LoadFileIntoBuffer: couldn't open file "gfx/vgui/640_(null).tga" for reading

They've been broken for a long time, just only now getting errors because of the new filesystem functions we're using reports such errors. My guess is the stuff that calls BitmapTGA *LoadTGAForRes(const char *pImageName) is actually broken.

thesupersoup commented 1 year ago

I couldn't find where these empty and null strings were bring called from, but I found a solution