Beispiel #1
0
void ClosePlugins() {
    int ret;

    // PAD plugins have to be closed first, otherwise some plugins like
    // LilyPad will mess up the window handle and cause crash.
    // Also don't check return value here, as LilyPad uses void.
    PAD1_close();
    PAD2_close();

    ret = CDR_close();
    if (ret < 0) {
        SysMessage(_("Error Closing CDR Plugin"));
        return;
    }
    ret = GPU_close();
    if (ret < 0) {
        SysMessage(_("Error Closing GPU Plugin"));
        return;
    }
    ret = SPU_close();
    if (ret < 0) {
        SysMessage(_("Error Closing SPU Plugin"));
        return;
    }

    if (Config.UseNet) {
        NET_pause();
    }
}
Beispiel #2
0
void ClosePlugins() {
    int ret;

    signal(SIGINT, SIG_DFL);
    signal(SIGPIPE, SIG_DFL);
    ret = CDR_close();
    if (ret < 0) {
        SysMessage(_("Error closing CD-ROM plugin!"));
        return;
    }
    ret = SPU_close();
    if (ret < 0) {
        SysMessage(_("Error closing SPU plugin!"));
        return;
    }
    ret = PAD1_close();
    if (ret < 0) {
        SysMessage(_("Error closing Controller 1 Plugin!"));
        return;
    }
    ret = PAD2_close();
    if (ret < 0) {
        SysMessage(_("Error closing Controller 2 plugin!"));
        return;
    }
    // pcsx-rearmed: we handle gpu elsewhere
    //ret = GPU_close();
    //if (ret < 0) { SysMessage(_("Error closing GPU plugin!")); return; }

    if (Config.UseNet) {
        NET_pause();
    }
}
Beispiel #3
0
void ClosePlugins() {
	int ret;

	ret = CDR_close();
	if (ret != 0) { SysMessage ("Error Closing CDR Plugin\n"); exit(1); }
	ret = SPU_close();
	if (ret != 0) { SysMessage ("Error Closing SPU Plugin\n"); exit(1); }
	ret = PAD1_close();
	if (ret != 0) { SysMessage ("Error Closing PAD1 Plugin\n"); exit(1); }
	ret = PAD2_close();
	if (ret != 0) { SysMessage ("Error Closing PAD2 Plugin\n"); exit(1); }
	ret = GPU_close();
	if (ret != 0) { SysMessage ("Error Closing GPU Plugin\n"); exit(1); }
}
Beispiel #4
0
void ClosePlugins() {
	int ret;

	ret = CDR_close();
	if (ret < 0) { SysPrintf("Error Closing CDR Plugin\n"); return; }
	ret = SPU_close();
	if (ret < 0) { SysPrintf("Error Closing SPU Plugin\n"); return; }
	ret = PAD1_close();
	if (ret < 0) { SysPrintf("Error Closing PAD1 Plugin\n"); return; }
	ret = PAD2_close();
	if (ret < 0) { SysPrintf("Error Closing PAD2 Plugin\n"); return; }
	ret = GPU_close();
	if (ret < 0) { SysPrintf("Error Closing GPU Plugin\n"); return; }

	if (Config.UseNet) {
		NET_pause();
	}
}
Beispiel #5
0
void ClosePlugins() {
	int ret;

	UpdateMenuSlots();
	ret = CDR_close();
	if (ret < 0) { SysMessage (_("Error Closing CDR Plugin")); return; }
	ret = GPU_close();
	if (ret < 0) { SysMessage (_("Error Closing GPU Plugin")); return; }
	ret = SPU_close();
	if (ret < 0) { SysMessage (_("Error Closing SPU Plugin")); return; }
	ret = PAD1_close();
	if (ret < 0) { SysMessage (_("Error Closing PAD1 Plugin")); return; }
	ret = PAD2_close();
	if (ret < 0) { SysMessage (_("Error Closing PAD2 Plugin")); return; }

	if (Config.UseNet) {
		NET_pause();
	}
}
Beispiel #6
0
void ClosePlugins() {
	long ret;

	//signal(SIGINT, SIG_DFL);
	//signal(SIGPIPE, SIG_DFL);
	ret = CDR_close();
	if (ret < 0) { SysMessage("%s", _("Error Closing CDR Plugin")); return; }
	ret = SPU_close();
	if (ret < 0) { SysMessage("%s", _("Error Closing SPU Plugin")); return; }
	ret = PAD1_close();
	if (ret < 0) { SysMessage("%s", _("Error Closing PAD1 Plugin")); return; }
	ret = PAD2_close();
	if (ret < 0) { SysMessage("%s", _("Error Closing PAD2 Plugin")); return; }
	ret = GPU_close();
	if (ret < 0) { SysMessage("%s", _("Error Closing GPU Plugin")); return; }
#ifdef ENABLE_SIO1API
	ret = SIO1_close();
	if (ret < 0) { SysMessage("%s", _("Error closing SIO1 plugin!")); return; }
#endif

	if (Config.UseNet) {
		NET_pause();
	}
}