-added custom titles support for plugin roms. most useful for mame wii and final burn alpha. In custom_titles.ini add [MAGIC#] of plugin and then put title=new_title without extensions. example:

[4D414D57]
bankp=Bank Panic
blktiger=Black Tiger
btime=Burger Time
bublbobl=Bubble Bobble
digdug=Dig Dug
digdug2=Dig Dug 2
dkong=Donkey Kong
dkong3=Donkey Kong 3
dkongjr=Donkey Kong Jr
duckhunt=Duck Hunt
elevator=Elevator Action
excitebk=Excite Bike
This commit is contained in:
fledge68 2013-10-02 17:33:16 +00:00
parent 1480483963
commit dabf2018d3

View File

@ -154,7 +154,15 @@ static void Create_Plugin_List(char *FullPath)
FolderTitle = strrchr(FullPath, '/') + 1;
*strrchr(FolderTitle, '.') = '\0';
mbstowcs(ListElement.title, FolderTitle, 63);
char PluginMagicWord[9];
memset(PluginMagicWord, 0, sizeof(PluginMagicWord));
strncpy(PluginMagicWord, fmt("%08x", m_gameList.Magic), 8);
const char *CustomTitle = CustomTitles.getString(PluginMagicWord, FolderTitle).c_str();
if(CustomTitle != NULL && CustomTitle[0] != '\0')
mbstowcs(ListElement.title, CustomTitle, 63);
else
mbstowcs(ListElement.title, FolderTitle, 63);
Asciify(ListElement.title);
ListElement.settings[0] = m_gameList.Magic; //Plugin magic
@ -234,7 +242,7 @@ void ListGenerator::CreateList(u32 Flow, u32 Device, const string& Path, const v
fsop_deleteFile(DBName.c_str());
}
}
if(Flow != COVERFLOW_PLUGIN)
//if(Flow != COVERFLOW_PLUGIN)
OpenConfigs();
if(Flow == COVERFLOW_USB)
{