[Project64] Use cpath to get the filename in rom browser
This commit is contained in:
parent
4050e765e8
commit
eaf2e28910
|
@ -459,8 +459,7 @@ bool CRomBrowser::FillRomInfo(ROM_INFO * pRomInfo)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char drive[_MAX_DRIVE], dir[_MAX_DIR], ext[_MAX_EXT];
|
strncpy(pRomInfo->FileName, CPath(pRomInfo->szFullFileName).GetNameExtension().c_str(), sizeof(pRomInfo->FileName) / sizeof(pRomInfo->FileName[0]));
|
||||||
_splitpath(pRomInfo->szFullFileName, drive, dir, pRomInfo->FileName, ext);
|
|
||||||
}
|
}
|
||||||
if (m_Fields[RB_InternalName].Pos() >= 0)
|
if (m_Fields[RB_InternalName].Pos() >= 0)
|
||||||
{
|
{
|
||||||
|
@ -1576,9 +1575,9 @@ void CRomBrowser::RomList_SortList(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SaveRomList - save all the rom information about the current roms in the rom brower
|
* SaveRomList - save all the rom information about the current roms in the rom brower
|
||||||
* to a cache file, so it is quick to reload the information
|
* to a cache file, so it is quick to reload the information
|
||||||
*/
|
*/
|
||||||
void CRomBrowser::SaveRomList(strlist & FileList)
|
void CRomBrowser::SaveRomList(strlist & FileList)
|
||||||
{
|
{
|
||||||
MD5 ListHash = RomListHash(FileList);
|
MD5 ListHash = RomListHash(FileList);
|
||||||
|
|
Loading…
Reference in New Issue