mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-02-25 08:13:33 +01:00
-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:
parent
1480483963
commit
dabf2018d3
@ -154,7 +154,15 @@ static void Create_Plugin_List(char *FullPath)
|
|||||||
|
|
||||||
FolderTitle = strrchr(FullPath, '/') + 1;
|
FolderTitle = strrchr(FullPath, '/') + 1;
|
||||||
*strrchr(FolderTitle, '.') = '\0';
|
*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);
|
Asciify(ListElement.title);
|
||||||
|
|
||||||
ListElement.settings[0] = m_gameList.Magic; //Plugin magic
|
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());
|
fsop_deleteFile(DBName.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(Flow != COVERFLOW_PLUGIN)
|
//if(Flow != COVERFLOW_PLUGIN)
|
||||||
OpenConfigs();
|
OpenConfigs();
|
||||||
if(Flow == COVERFLOW_USB)
|
if(Flow == COVERFLOW_USB)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user