mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
use -flto=thin as LTO flag; MemoryCardSys work
This commit is contained in:
@@ -457,6 +457,17 @@ std::string PAKRouter<BRIDGETYPE>::getBestEntryName(const EntryType& entry) cons
|
||||
for (const BRIDGETYPE& bridge : *m_bridges)
|
||||
{
|
||||
const typename BRIDGETYPE::PAKType& pak = bridge.getPAK();
|
||||
|
||||
if (isShared())
|
||||
{
|
||||
if (entry.type == FOURCC('MLVL'))
|
||||
return "!world";
|
||||
else if (entry.type == FOURCC('MREA'))
|
||||
return "!area";
|
||||
else if (entry.type == FOURCC('MAPA'))
|
||||
return "!map";
|
||||
}
|
||||
|
||||
bool named;
|
||||
name = pak.bestEntryName(entry, named);
|
||||
if (named)
|
||||
@@ -475,6 +486,17 @@ std::string PAKRouter<BRIDGETYPE>::getBestEntryName(const IDType& entry) const
|
||||
const typename BRIDGETYPE::PAKType::Entry* e = pak.lookupEntry(entry);
|
||||
if (!e)
|
||||
continue;
|
||||
|
||||
if (isShared())
|
||||
{
|
||||
if (e->type == FOURCC('MLVL'))
|
||||
return "!world";
|
||||
else if (e->type == FOURCC('MREA'))
|
||||
return "!area";
|
||||
else if (e->type == FOURCC('MAPA'))
|
||||
return "!map";
|
||||
}
|
||||
|
||||
bool named;
|
||||
name = pak.bestEntryName(*e, named);
|
||||
if (named)
|
||||
|
||||
Reference in New Issue
Block a user