Skip to content

Commit ea441eb

Browse files
committed
xrEngine/xrLoadSurface: Surface_Detect() reimplemented via stdio.
1 parent 8ce16d1 commit ea441eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xrEngine/xrLoadSurface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ void Surface_Init()
8787
BOOL Surface_Detect(string_path& F, LPSTR N)
8888
{
8989
FS.update_path(F, "$game_textures$", strconcat(sizeof(F), F, N, ".dds"));
90-
int h = _open(F, O_RDONLY | O_BINARY);
91-
if (h > 0)
90+
FILE *file = fopen(F, "rb");
91+
if (file)
9292
{
93-
_close(h);
93+
fclose(file);
9494
return (TRUE);
9595
}
9696

0 commit comments

Comments
 (0)