MCPcopy Create free account
hub / github.com/assimp/assimp / SaveHistory

Function SaveHistory

tools/assimp_view/MessageProc.cpp:729–737  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Save the list of recent files to the registry -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

727// Save the list of recent files to the registry
728//-------------------------------------------------------------------------------
729void SaveHistory() {
730 for (unsigned int i = 0; i < AI_VIEW_NUM_RECENT_FILES;++i) {
731 char szName[66];
732 sprintf(szName,"Recent%i",i+1);
733
734 RegSetValueEx(g_hRegistry,szName,0,REG_SZ,
735 (const BYTE*)g_aPreviousFiles[i].c_str(),(DWORD)g_aPreviousFiles[i].length());
736 }
737}
738
739//-------------------------------------------------------------------------------
740// Recover the file history

Callers 4

HandleCommandLineFunction · 0.85
ClearHistoryFunction · 0.85
OpenAssetFunction · 0.85
MessageProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected