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

Function ILAPIENTRY iPreserveReadFuncs

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

Just preserves the current read functions and replaces the current read functions with the default read funcs.

Source from the content-addressed store, hash-verified

69// Just preserves the current read functions and replaces
70// the current read functions with the default read funcs.
71void ILAPIENTRY iPreserveReadFuncs()
72{
73 // Create backups
74 GetcProcCopy = GetcProc;
75 ReadProcCopy = ReadProc;
76 SeekProcCopy = SeekRProc;
77 TellProcCopy = TellRProc;
78 iopenCopy = iopenr;
79 icloseCopy = icloser;
80
81 // Set the standard procs to read
82 ilResetRead();
83
84 return;
85}
86
87
88// Restores the read functions - must be used after iPreserveReadFuncs().

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected