Beispiel #1
0
static void maincsm_onclose(CSM_RAM *csm)
{
	if (gui_id)
		GeneralFunc_flag1(gui_id, 0);
	FreeLang(&lgp);
	RemoveKeybMsgHook(KeyHook);
	kill_elf();
}
Beispiel #2
0
static void maincsm_onclose(CSM_RAM *csm)
{
	if (gui_csm_id)
		CloseCSM(gui_csm_id);
	FreeLang(&lgp);
	Clear();
	RemoveKeybMsgHook(KeyHook);
	kill_elf();
}
Beispiel #3
0
int main(const char *exe_path, const char *file_path)
{
	if (InitLang(cfg_lang_path, &lgp) == -1)
	{
		MsgBoxError(1, (int)"lang.txt not found!");
		kill_elf();
	}
	else
	{
		CSM_RAM *save_cmpc;
		char dummy[sizeof(MAIN_CSM)];
		LockSched();
		UpdateCSMname();
		InitConfig();
		save_cmpc = CSM_root()->csm_q->current_msg_processing_csm;
		CSM_root()->csm_q->current_msg_processing_csm = CSM_root()->csm_q->csm.first;
		CreateCSM(&MAINCSM.maincsm,dummy,0);
		CSM_root()->csm_q->current_msg_processing_csm = save_cmpc;
		UnlockSched();
		AddKeybMsgHook((void*)KeyHook);
	}
	return 0;
}
Beispiel #4
0
static void maincsm_onclose(CSM_RAM *csm)
{
    kill_elf();
}