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

Function ILAPIENTRY iPreserveWriteFuncs

DevIL/src-IL/src/il_files.cpp:104–118  ·  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

102// Just preserves the current read functions and replaces
103// the current read functions with the default read funcs.
104void ILAPIENTRY iPreserveWriteFuncs()
105{
106 // Create backups
107 PutcProcCopy = PutcProc;
108 SeekWProcCopy = SeekWProc;
109 TellWProcCopy = TellWProc;
110 WriteProcCopy = WriteProc;
111 iopenwCopy = iopenw;
112 iclosewCopy = iclosew;
113
114 // Set the standard procs to write
115 ilResetWrite();
116
117 return;
118}
119
120
121// Restores the read functions - must be used after iPreserveReadFuncs().

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected