Skip to content

Commit

Permalink
xrEngine/xrLoadSurface: Surface_Detect() reimplemented via stdio.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 15, 2015
1 parent 8ce16d1 commit ea441eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xrEngine/xrLoadSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ void Surface_Init()
BOOL Surface_Detect(string_path& F, LPSTR N)
{
FS.update_path(F, "$game_textures$", strconcat(sizeof(F), F, N, ".dds"));
int h = _open(F, O_RDONLY | O_BINARY);
if (h > 0)
FILE *file = fopen(F, "rb");
if (file)
{
_close(h);
fclose(file);
return (TRUE);
}

Expand Down

0 comments on commit ea441eb

Please sign in to comment.