mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-19 01:15:32 -04:00
Add card read DMA
Add card read DMA
This commit is contained in:
parent
307d11777a
commit
935497e4a0
@ -40,6 +40,7 @@ cGlobalSettings::cGlobalSettings() {
|
|||||||
saveExt = true;
|
saveExt = true;
|
||||||
saveDir = false;
|
saveDir = false;
|
||||||
nightly = false;
|
nightly = false;
|
||||||
|
cardDma = true;
|
||||||
safeMode = false;
|
safeMode = false;
|
||||||
show12hrClock = false;
|
show12hrClock = false;
|
||||||
autorunWithLastRom = false;
|
autorunWithLastRom = false;
|
||||||
@ -71,6 +72,7 @@ void cGlobalSettings::loadSettings() {
|
|||||||
saveDir = ini.GetInt("system", "savedir", saveDir);
|
saveDir = ini.GetInt("system", "savedir", saveDir);
|
||||||
nightly = ini.GetInt("system", "nightly", nightly);
|
nightly = ini.GetInt("system", "nightly", nightly);
|
||||||
dma = ini.GetInt("system", "dma", dma);
|
dma = ini.GetInt("system", "dma", dma);
|
||||||
|
cardDma = ini.GetInt("system", "carddma", cardDma);
|
||||||
sdsave = ini.GetInt("system", "sdsave", sdsave);
|
sdsave = ini.GetInt("system", "sdsave", sdsave);
|
||||||
safeMode = ini.GetInt("system", "safemode", safeMode);
|
safeMode = ini.GetInt("system", "safemode", safeMode);
|
||||||
show12hrClock = ini.GetInt("system", "Show12hrClock", show12hrClock);
|
show12hrClock = ini.GetInt("system", "Show12hrClock", show12hrClock);
|
||||||
@ -119,6 +121,7 @@ void cGlobalSettings::saveSettings() {
|
|||||||
ini.SetInt("system", "cheats", cheats);
|
ini.SetInt("system", "cheats", cheats);
|
||||||
ini.SetInt("system", "softreset", softreset);
|
ini.SetInt("system", "softreset", softreset);
|
||||||
ini.SetInt("system", "dma", dma);
|
ini.SetInt("system", "dma", dma);
|
||||||
|
ini.SetInt("system", "carddma", cardDma);
|
||||||
ini.SetInt("system", "sdsave", sdsave);
|
ini.SetInt("system", "sdsave", sdsave);
|
||||||
ini.SetInt("system", "safemode", safeMode);
|
ini.SetInt("system", "safemode", safeMode);
|
||||||
ini.SetInt("system", "savedir", saveDir);
|
ini.SetInt("system", "savedir", saveDir);
|
||||||
|
@ -53,13 +53,14 @@ class cGlobalSettings {
|
|||||||
bool Animation;
|
bool Animation;
|
||||||
bool cheats;
|
bool cheats;
|
||||||
bool softreset;
|
bool softreset;
|
||||||
bool dma;
|
bool cardDma;
|
||||||
bool sdsave;
|
bool sdsave;
|
||||||
bool cheatDB;
|
bool cheatDB;
|
||||||
int slot2mode;
|
int slot2mode;
|
||||||
bool saveExt;
|
bool saveExt;
|
||||||
bool saveDir;
|
bool saveDir;
|
||||||
bool nightly;
|
bool nightly;
|
||||||
|
bool dma;
|
||||||
bool safeMode;
|
bool safeMode;
|
||||||
bool show12hrClock;
|
bool show12hrClock;
|
||||||
bool autorunWithLastRom;
|
bool autorunWithLastRom;
|
||||||
|
@ -69,6 +69,12 @@ bool NdsBootstrapLauncher::prepareIni() {
|
|||||||
CIniFile ini;
|
CIniFile ini;
|
||||||
ini.SetString("NDS-BOOTSTRAP", "NDS_PATH", mRomPath);
|
ini.SetString("NDS-BOOTSTRAP", "NDS_PATH", mRomPath);
|
||||||
ini.SetString("NDS-BOOTSTRAP", "SAV_PATH", mSavePath);
|
ini.SetString("NDS-BOOTSTRAP", "SAV_PATH", mSavePath);
|
||||||
|
if(gs().cardDma){
|
||||||
|
ini.SetInt("NDS-BOOTSTRAP", "CARD_READ_DMA", 1);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
ini.SetInt("NDS-BOOTSTRAP", "CARD_READ_DMA", 0);
|
||||||
|
}
|
||||||
|
|
||||||
ini.SaveIniFile("/_nds/nds-bootstrap.ini");
|
ini.SaveIniFile("/_nds/nds-bootstrap.ini");
|
||||||
return true;
|
return true;
|
||||||
|
@ -550,6 +550,10 @@ void cMainWnd::setParam(void) {
|
|||||||
_values.push_back(LANG("switches", "Disable"));
|
_values.push_back(LANG("switches", "Disable"));
|
||||||
_values.push_back(LANG("switches", "Enable"));
|
_values.push_back(LANG("switches", "Enable"));
|
||||||
settingWnd.addSettingItem(LANG("patches", "cheating system"), _values, gs().cheats);
|
settingWnd.addSettingItem(LANG("patches", "cheating system"), _values, gs().cheats);
|
||||||
|
_values.clear();
|
||||||
|
_values.push_back(LANG("switches", "Disable"));
|
||||||
|
_values.push_back(LANG("switches", "Enable"));
|
||||||
|
settingWnd.addSettingItem(LANG("patches", "carddma"), _values, gs().cardDma);
|
||||||
#ifdef __KERNEL_LAUNCHER_SUPPORT__
|
#ifdef __KERNEL_LAUNCHER_SUPPORT__
|
||||||
_values.clear();
|
_values.clear();
|
||||||
_values.push_back("Kernel");
|
_values.push_back("Kernel");
|
||||||
@ -603,9 +607,9 @@ void cMainWnd::setParam(void) {
|
|||||||
|
|
||||||
// page 4: patches
|
// page 4: patches
|
||||||
gs().cheats = settingWnd.getItemSelection(3, 0);
|
gs().cheats = settingWnd.getItemSelection(3, 0);
|
||||||
gs().softreset = settingWnd.getItemSelection(3, 1);
|
gs().cardDma = settingWnd.getItemSelection(3, 1);
|
||||||
gs().homebrewreset = settingWnd.getItemSelection(3, 2);
|
gs().softreset = settingWnd.getItemSelection(3, 2);
|
||||||
gs().romLauncher = settingWnd.getItemSelection(3, 3);
|
gs().homebrewreset = settingWnd.getItemSelection(3, 3);
|
||||||
|
|
||||||
// page 5: gba
|
// page 5: gba
|
||||||
gs().gbaSleepHack = settingWnd.getItemSelection(4, 0);
|
gs().gbaSleepHack = settingWnd.getItemSelection(4, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user