mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
CBeetle implementation
This commit is contained in:
@@ -382,8 +382,11 @@ std::string PAKRouter<BRIDGETYPE>::getBestEntryName(const EntryType& entry, bool
|
||||
std::string name;
|
||||
for (const BRIDGETYPE& bridge : *m_bridges) {
|
||||
const typename BRIDGETYPE::PAKType& pak = bridge.getPAK();
|
||||
const typename BRIDGETYPE::PAKType::Entry* e = pak.lookupEntry(entry.id);
|
||||
if (!e)
|
||||
continue;
|
||||
|
||||
if (stdOverride && isShared()) {
|
||||
if (stdOverride && !pak.m_noShare) {
|
||||
if (entry.type == FOURCC('MLVL'))
|
||||
return "!world";
|
||||
else if (entry.type == FOURCC('MREA'))
|
||||
@@ -411,7 +414,7 @@ std::string PAKRouter<BRIDGETYPE>::getBestEntryName(const IDType& entry, bool st
|
||||
if (!e)
|
||||
continue;
|
||||
|
||||
if (stdOverride && isShared()) {
|
||||
if (stdOverride && !pak.m_noShare) {
|
||||
if (e->type == FOURCC('MLVL'))
|
||||
return "!world";
|
||||
else if (e->type == FOURCC('MREA'))
|
||||
|
||||
@@ -175,10 +175,6 @@ public:
|
||||
hecl::ProjectPath getWorking(const IDType& id, bool silenceWarnings = false) const;
|
||||
hecl::ProjectPath getCooked(const EntryType* entry) const;
|
||||
hecl::ProjectPath getCooked(const IDType& id, bool silenceWarnings = false) const;
|
||||
bool isShared() const {
|
||||
const PAKType* pak = m_pak.get();
|
||||
return pak ? !pak->m_noShare : false;
|
||||
}
|
||||
|
||||
hecl::SystemString getResourceRelativePath(const EntryType& a, const IDType& b) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user