MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Surface_Detect

Function Surface_Detect

ogsr_engine/xr_3da/xrLoadSurface.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83BOOL Surface_Detect(string_path& F, LPSTR N)
84{
85 for (u32 i = 0; i < formats.size(); i++)
86 {
87 FS.update_path(F, "$textures$", strconcat(sizeof(F), F, N, ".", formats[i]));
88 int h = _open(F, O_RDONLY | O_BINARY);
89 if (h > 0)
90 {
91 _close(h);
92 return TRUE;
93 }
94 }
95 return FALSE;
96}
97
98FIBITMAP* Surface_Load(char* full_name)
99{

Callers 1

Surface_LoadFunction · 0.85

Calls 2

sizeMethod · 0.45
update_pathMethod · 0.45

Tested by

no test coverage detected