MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iDefaultOpenR

Function ILAPIENTRY iDefaultOpenR

DevIL/src-IL/src/il_files.cpp:137–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135// Next 7 functions are the default read functions
136
137ILHANDLE ILAPIENTRY iDefaultOpenR(ILconst_string FileName)
138{
139#ifndef _UNICODE
140 return (ILHANDLE)fopen((char*)FileName, "rb");
141#else
142 // Windows has a different function, _wfopen, to open UTF16 files,
143 // whereas Linux just uses fopen for its UTF8 files.
144 #ifdef _WIN32
145 return (ILHANDLE)_wfopen(FileName, L"rb");
146 #else
147 return (ILHANDLE)fopen((char*)FileName, "rb");
148 #endif
149#endif//UNICODE
150}
151
152
153void ILAPIENTRY iDefaultCloseR(ILHANDLE Handle)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected