Ejemplo n.º 1
0
void SaveConf()
{
    HKEY myKey;
    DWORD myDisp;

    RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\PS2Eplugin\\CDVD\\CDVDiso", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &myKey, &myDisp);

    SetKeyV("IsoFile", IsoFile, sizeof(IsoFile), REG_BINARY);
    SetKeyV("CurrentWorkingFolder", IsoCWD, sizeof(IsoCWD), REG_BINARY);
    SetKeyVdw("BlockDump", &BlockDump);

    RegCloseKey(myKey);
}
Ejemplo n.º 2
0
void SaveConf() {
	HKEY myKey;
	DWORD myDisp;

	RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\PS2Eplugin\\DEV9\\DEV9linuz", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &myKey, &myDisp);
	SetKeyV("Eth", config.Eth, strlen(config.Eth), REG_SZ);
	SetKeyV("Hdd", config.Hdd, strlen(config.Hdd), REG_SZ);
	SetKeyVdw("HddSize", &config.HddSize);
	SetKeyVdw("ethEnable", &config.ethEnable);
	SetKeyVdw("hddEnable", &config.hddEnable);

	RegCloseKey(myKey);
}
Ejemplo n.º 3
0
void SaveConfig() {
	HKEY myKey;
	DWORD myDisp, tmp;
	PcsxConfig *Conf = &Config;

	RegCreateKeyEx(HKEY_CURRENT_USER, cfgfile, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &myKey, &myDisp);

	SetKey("Bios", Conf->Bios, strlen(Conf->Bios), REG_SZ);
	SetKey("Gpu",  Conf->Gpu,  strlen(Conf->Gpu),  REG_SZ);
	SetKey("Spu",  Conf->Spu,  strlen(Conf->Spu),  REG_SZ);
	SetKey("Cdr",  Conf->Cdr,  strlen(Conf->Cdr),  REG_SZ);
	SetKey("Pad1", Conf->Pad1, strlen(Conf->Pad1), REG_SZ);
	SetKey("Pad2", Conf->Pad2, strlen(Conf->Pad2), REG_SZ);
	SetKey("Sio1", Conf->Sio1, strlen(Conf->Sio1), REG_SZ);
	SetKey("Net",  Conf->Net,  strlen(Conf->Net),  REG_SZ);
	SetKey("Mcd1", Conf->Mcd1, strlen(Conf->Mcd1), REG_SZ);
	SetKey("Mcd2", Conf->Mcd2, strlen(Conf->Mcd2), REG_SZ);
	SetKey("Lang", Conf->Lang, strlen(Conf->Lang), REG_SZ);
	SetKey("PluginsDir", Conf->PluginsDir, strlen(Conf->PluginsDir), REG_SZ);
	SetKey("BiosDir",    Conf->BiosDir,    strlen(Conf->BiosDir), REG_SZ);

	SetKeyV("Xa",      Conf->Xa);
	SetKeyV("SioIrq",  Conf->SioIrq);
	SetKeyV("Mdec",    Conf->Mdec);
	SetKeyV("PsxAuto", Conf->PsxAuto);
	SetKeyV("Cdda",    Conf->Cdda);
	SetKeyV("SlowBoot",Conf->SlowBoot);
	SetKeyV("Debug",   Conf->Debug);
	SetKeyV("PsxOut",  Conf->PsxOut);
	SetKeyV("SpuIrq",  Conf->SpuIrq);
	SetKeyV("RCntFix", Conf->RCntFix);
	SetKeyV("VSyncWA", Conf->VSyncWA);
	SetKeyV("Widescreen", Conf->Widescreen);
	SetKeyV("HideCursor", Conf->HideCursor);
	SetKeyV("SaveWindowPos",  Conf->SaveWindowPos);
	SetKeyV("PerGameMcd", Conf->PerGameMcd);
	SetKeyV("WindowPosX",  Conf->WindowPos[0]);
	SetKeyV("WindowPosY",  Conf->WindowPos[1]);
	SetKeyV("HackFix", Conf->HackFix);
	SetKeyV("MemHack", Conf->MemHack);
	SetKeyV("OverClock", Conf->OverClock);

	SetKeyV("Cpu",     Conf->Cpu);
	SetKeyV("PsxType", Conf->PsxType);
	SetKeyV("PsxClock", Conf->PsxClock);

	RegCloseKey(myKey);
}