void _export cdecl ODBG_Pluginsaveudd(t_module *pmod, int ismainmodule) { if (ismainmodule) { Pluginsaverecord(TAG_MAPIMP, sizeof(BOOL), &g_Autoloaded); } }
// Time to save data to .udd file! This is done by calling Pluginsaverecord() // for each data item that must be saved. Global, process-oriented data must // be saved in main .udd file (named by .exe); module-relevant data must be // saved in module files. Don't forget to save all addresses relative to // module's base, so that data will be restored correctly even when module is // relocated. extc void _export cdecl ODBG_Pluginsaveudd(t_module *pmod,int ismainmodule) { if (ismainmodule==0) return; // Save to main file only Message(0, "[*] "PLUGIN_NAME"> saving .udd values"); Pluginsaverecord(TAG_OLLY_SYNC,sizeof(CON_INFO),(void *)coninfo); };
// Time to save data to .udd file! This is done by calling Pluginsaverecord() // for each data item that must be saved. Global, process-oriented data must // be saved in main .udd file (named by .exe); module-relevant data must be // saved in module files. Don't forget to save all addresses relative to // module's base, so that data will be restored correctly even when module is // relocated. extc void _export cdecl ODBG_Pluginsaveudd(t_module *pmod, int ismainmodule) { int i; ulong data[2]; t_bookmark *pb; if (ismainmodule == 0) return; // Save bookmarks to main file only pb = (t_bookmark *)bookmark.data.data; for (i = 0; i < bookmark.data.n; i++, pb++) { data[0] = pb->index; data[1] = pb->addr; Pluginsaverecord(TAG_BOOKMARK, 2*sizeof(ulong), data); }; };