Esempio n. 1
0
void LoadConfig()
{
	char Conf_File[1024] = ".\\PSXjin.ini";	//TODO: make a global for other files

	GetPrivateProfileString("Plugins", "Bios", "scph1001.bin", &Config.Bios[0], 256, Conf_File);	
	GetPrivateProfileString("Plugins", "MCD1", "", &Config.Mcd1[0], 256, Conf_File);
	GetPrivateProfileString("Plugins", "MCD2", "", &Config.Mcd2[0], 256, Conf_File);
	Config.Xa = GetPrivateProfileInt("Plugins", "Xa", 0, Conf_File);
	Config.Mdec = GetPrivateProfileInt("Plugins", "Mdec", 0, Conf_File);
	Config.PsxAuto = GetPrivateProfileInt("Plugins", "PsxAuto", 0, Conf_File);
	Config.PsxType = GetPrivateProfileInt("Plugins", "PsxType", 0, Conf_File);
	Config.QKeys = GetPrivateProfileInt("Plugins", "QKeys", 0, Conf_File);
	Config.Cdda = GetPrivateProfileInt("Plugins", "Cdda", 0, Conf_File);
	Config.PauseAfterPlayback = GetPrivateProfileInt("Plugins", "PauseAfterPlayback", 0, Conf_File);
	Config.PsxOut = GetPrivateProfileInt("Plugins", "PsxOut", 0, Conf_File);
	Config.RCntFix = GetPrivateProfileInt("Plugins", "RCntFix", 0, Conf_File);
	Config.VSyncWA = GetPrivateProfileInt("Plugins", "VSyncWA", 0, Conf_File);
	LoadPADConfig();
	int temp;
	for (int i = 0; i <= EMUCMDMAX-1; i++)
	{
		temp = GetPrivateProfileInt("Hotkeys", EmuCommandTable[i].name, 65535, Conf_File);
		if (temp != 65535)
			EmuCommandTable[i].key = temp;
	}

	
	for (int i = 0; i <= EMUCMDMAX-1; i++) 
	{
		temp = GetPrivateProfileInt("HotkeysKeyMods", EmuCommandTable[i].name, 65535, Conf_File);
		if (temp != 65535)
			EmuCommandTable[i].keymod = temp;
	}
}
Esempio n. 2
0
File: pad.c Progetto: DAOWAce/pcsxr
long PADinit(long flags) {
	LoadPADConfig();

	PADsetMode(0, 0);
	PADsetMode(1, 0);

	gpuVisualVibration = NULL;

	return PSE_PAD_ERR_SUCCESS;
}