Keyboard Short cut: fix defaults
This commit is contained in:
parent
a186b3bffb
commit
42e9b5e1db
|
@ -89,7 +89,7 @@ void CSettings::AddHowToHandleSetting ()
|
||||||
AddHandler(SupportFile_ExtInfoDefault, new CSettingTypeRelativePath("Config","Project64.rdx"));
|
AddHandler(SupportFile_ExtInfoDefault, new CSettingTypeRelativePath("Config","Project64.rdx"));
|
||||||
AddHandler(SupportFile_ShortCuts, new CSettingTypeApplicationPath("","ShortCuts",SupportFile_ShortCutsDefault));
|
AddHandler(SupportFile_ShortCuts, new CSettingTypeApplicationPath("","ShortCuts",SupportFile_ShortCutsDefault));
|
||||||
AddHandler(SupportFile_ShortCutsDefault, new CSettingTypeRelativePath("Config","Project64.sc3"));
|
AddHandler(SupportFile_ShortCutsDefault, new CSettingTypeRelativePath("Config","Project64.sc3"));
|
||||||
AddHandler(SupportFile_RomListCache, new CSettingTypeApplicationPath("","RomListCache",SupportFile_ShortCutsDefault));
|
AddHandler(SupportFile_RomListCache, new CSettingTypeApplicationPath("","RomListCache",SupportFile_RomListCacheDefault));
|
||||||
AddHandler(SupportFile_RomListCacheDefault,new CSettingTypeRelativePath("Config","Project64.cache3"));
|
AddHandler(SupportFile_RomListCacheDefault,new CSettingTypeRelativePath("Config","Project64.cache3"));
|
||||||
AddHandler(SupportFile_7zipCache, new CSettingTypeApplicationPath("","7zipCache",SupportFile_7zipCacheDefault));
|
AddHandler(SupportFile_7zipCache, new CSettingTypeApplicationPath("","7zipCache",SupportFile_7zipCacheDefault));
|
||||||
AddHandler(SupportFile_7zipCacheDefault, new CSettingTypeRelativePath("Config","Project64.zcache"));
|
AddHandler(SupportFile_7zipCacheDefault, new CSettingTypeRelativePath("Config","Project64.zcache"));
|
||||||
|
|
|
@ -1188,11 +1188,6 @@ void CMainMenu::RebuildAccelerators(void) {
|
||||||
void CMainMenu::ResetMenu(void)
|
void CMainMenu::ResetMenu(void)
|
||||||
{
|
{
|
||||||
WriteTrace(TraceDebug,__FUNCTION__ ": Start");
|
WriteTrace(TraceDebug,__FUNCTION__ ": Start");
|
||||||
{
|
|
||||||
CGuard Guard(m_CS);
|
|
||||||
m_ShortCuts.Load();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_Settings->LoadBool(UserInterface_InFullScreen))
|
if (!g_Settings->LoadBool(UserInterface_InFullScreen))
|
||||||
{
|
{
|
||||||
//Create a new window with all the items
|
//Create a new window with all the items
|
||||||
|
@ -1232,29 +1227,3 @@ void CMainMenu::ResetMenu(void)
|
||||||
|
|
||||||
WriteTrace(TraceDebug,__FUNCTION__ ": Done");
|
WriteTrace(TraceDebug,__FUNCTION__ ": Done");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*LanguageStringID CMainMenu::GetShortCutMenuItemName(MSC_MAP * ShortCuts, WORD key, bool bCtrl, bool bAlt, bool bShift, CMenuShortCutKey::ACCESS_MODE Access) {
|
|
||||||
Notify().BreakPoint(__FILE__,__LINE__);
|
|
||||||
/*for (MSC_MAP::iterator Item = ShortCuts->begin(); Item != ShortCuts->end(); Item++) {
|
|
||||||
CMenuShortCutKey & short_cut = Item->second;
|
|
||||||
|
|
||||||
for (SHORTCUT_KEY_LIST::const_iterator AccelItem = short_cut.GetAccelItems().begin(); AccelItem != short_cut.GetAccelItems().end(); AccelItem++) {
|
|
||||||
if (!AccelItem->Same(key,bCtrl,bAlt,bShift,Access)) { continue; }
|
|
||||||
return short_cut.Title();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return EMPTY_STRING;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CMainMenu::SaveShortCuts(MSC_MAP * ShortCuts) {
|
|
||||||
Notify().BreakPoint(__FILE__,__LINE__);
|
|
||||||
stdstr FileName = g_Settings->LoadString(SupportFile_ShortCuts);
|
|
||||||
FILE *file = fopen(FileName.c_str(),"w");
|
|
||||||
for (MSC_MAP::iterator Item = ShortCuts->begin(); Item != ShortCuts->end(); Item++) {
|
|
||||||
for (SHORTCUT_KEY_LIST::const_iterator ShortCut = Item->second.GetAccelItems().begin(); ShortCut != Item->second.GetAccelItems().end(); ShortCut++) {
|
|
||||||
fprintf(file,"%d,%d,%d,%d,%d,%d\n",Item->first,ShortCut->Key(),ShortCut->Ctrl(),
|
|
||||||
ShortCut->Alt(),ShortCut->Shift(),ShortCut->AccessMode());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fclose(file);
|
|
||||||
}*/
|
|
||||||
|
|
Loading…
Reference in New Issue