I didn't make hypotheses first in my thought.
Generally, when write something, especially logical things, the conclusion move to the top is manner for others I think.
I tried the same file put on pcsx base folder and inis subfolder.
Despite it nothing appears on the log screen and emulog.txt even error messages, so I judged It doesn't work.
if collectly loaded, does the below 'Console.WriteLn("...")' messages show on the log screen?
Therefore I looked at source codes for several hours for get a clue. after that, I notice what I posted.
Anyway, if It works no problem.
And I first wrote "The following are my guessing. If I'm wrong, never mind.".
I'm sorry for the inconvenience.
Edit: I confirmed that it works.
Generally, when write something, especially logical things, the conclusion move to the top is manner for others I think.
I tried the same file put on pcsx base folder and inis subfolder.
Despite it nothing appears on the log screen and emulog.txt even error messages, so I judged It doesn't work.
if collectly loaded, does the below 'Console.WriteLn("...")' messages show on the log screen?
Code:
void AcceleratorDictionary::Map( const KeyAcceleratorCode& _acode, const char *searchfor )
{
// Search override mapping at ini file
KeyAcceleratorCode acode = _acode;
wxString overrideStr;
wxAcceleratorEntry codeParser; //Provides string parsing capabilities
wxFileConfig cfg(L"", L"", L"" , GetUiKeysFilename(), wxCONFIG_USE_GLOBAL_FILE );
if( cfg.Read( wxString::FromUTF8(searchfor), &overrideStr) )
{
overrideStr = wxString(L"\t") + overrideStr;
if( codeParser.FromString( overrideStr ) ) // needs a '\t' prefix (originally used for wxMenu accelerators parsing)...
{
//ini file contains alternative parsable key combination for current 'searchfor'.
acode = codeParser;
-> Console.WriteLn(Color_StrongGreen, L"Overriding '%s': assigning %s (instead of %s)",
fromUTF8( searchfor ).c_str(), acode.ToString().c_str(), _acode.ToString().c_str());
}
}
// End of overrides section
Therefore I looked at source codes for several hours for get a clue. after that, I notice what I posted.
Anyway, if It works no problem.
And I first wrote "The following are my guessing. If I'm wrong, never mind.".
I'm sorry for the inconvenience.
Edit: I confirmed that it works.