Example #1
0
int CConfig::set_int( TCHAR* key, int value )
{
#ifdef HOLYSHIT_EXPORTS
    return Pluginwriteinttoini(plugin_mod, key, value);
#else
    return Writetoini(NULL, PLUGIN_NAME, key, L"%i", value);
#endif
}
Example #2
0
int CConfig::set_str( TCHAR* key, LPTSTR str )
{
#ifdef HOLYSHIT_EXPORTS
    return Pluginwritestringtoini(plugin_mod, key, str);
#else
    return Writetoini(NULL, PLUGIN_NAME, key, L"%s", str);
#endif
}
Example #3
0
/**
 * Called when Ollydbg is requesting to quit.
 *
 * This callback is optional.
 *
 * @return
 *   0 if it's safe to quit, non-0 to abort termination.
 */
int ODBG2_Pluginclose()
{
	if(ollylang)
	{
		if(ollylang->hwndinput != 0)
		{
			SendMessage(ollylang->hwndinput, WM_CLOSE, 0, 0);
			ollylang->hwndinput = 0;
		}

		ollylang->SaveBreakPoints(ollylang->scriptpath);
		Writetoini(NULL, PLUGIN_NAME, L"Restore Script window", L"%i", (ollylang->wndProg.hw != NULL));
		Writetoini(NULL, PLUGIN_NAME, L"Restore Script Log", L"%i", (ollylang->wndLog.hw != NULL));

		mru.save();
	}

	return 0;
}