mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-18 07:51:53 +01:00
-fixed some fucked up display names in plugin coverflow
This commit is contained in:
parent
3168e5660c
commit
09e5f05eda
@ -145,14 +145,16 @@ static void Create_GC_List(char *FullPath)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *FolderTitle = NULL;
|
||||||
static void Create_Plugin_List(char *FullPath)
|
static void Create_Plugin_List(char *FullPath)
|
||||||
{
|
{
|
||||||
memset((void*)&ListElement, 0, sizeof(dir_discHdr));
|
memset((void*)&ListElement, 0, sizeof(dir_discHdr));
|
||||||
|
|
||||||
strncpy(ListElement.path, FullPath, sizeof(ListElement.path) - 1);
|
strncpy(ListElement.path, FullPath, sizeof(ListElement.path) - 1);
|
||||||
strncpy(ListElement.id, "PLUGIN", 6);
|
strncpy(ListElement.id, "PLUGIN", 6);
|
||||||
*strchr(FullPath, '.') = '\0';
|
*strrchr(FullPath, '.') = '\0';
|
||||||
mbstowcs(ListElement.title, strrchr(FullPath, '/') + 1, 63);
|
FolderTitle = strrchr(FullPath, '/') + 1;
|
||||||
|
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
|
||||||
@ -161,7 +163,6 @@ static void Create_Plugin_List(char *FullPath)
|
|||||||
m_gameList.push_back(ListElement);
|
m_gameList.push_back(ListElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FolderTitle = NULL;
|
|
||||||
static void Create_Homebrew_List(char *FullPath)
|
static void Create_Homebrew_List(char *FullPath)
|
||||||
{
|
{
|
||||||
if(strcasestr(FullPath, "boot.") == NULL)
|
if(strcasestr(FullPath, "boot.") == NULL)
|
||||||
@ -301,7 +302,7 @@ void GetFiles(const char *Path, const vector<string>& FileTypes,
|
|||||||
}
|
}
|
||||||
else if(pent->d_type == DT_REG)
|
else if(pent->d_type == DT_REG)
|
||||||
{
|
{
|
||||||
NewFileName = strchr(pent->d_name, '.');
|
NewFileName = strrchr(pent->d_name, '.');
|
||||||
if(NewFileName == NULL) NewFileName = pent->d_name;
|
if(NewFileName == NULL) NewFileName = pent->d_name;
|
||||||
if(IsFileSupported(NewFileName, FileTypes))
|
if(IsFileSupported(NewFileName, FileTypes))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user