mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:44:56 +00:00
Keep original paths for areas, worlds, and maps when not in a world pak
This commit is contained in:
@@ -168,8 +168,14 @@ bool MREA::Extract(const SpecBase& dataSpec,
|
||||
using RigPair = std::pair<CSKR*, CINF*>;
|
||||
RigPair dummy(nullptr, nullptr);
|
||||
|
||||
/* Rename MREA for consistency */
|
||||
hecl::ProjectPath mreaPath(outPath.getParentPath(), _S("!area.blend"));
|
||||
hecl::ProjectPath mreaPath;
|
||||
if (pakRouter.isShared())
|
||||
/* Rename MREA for consistency */
|
||||
mreaPath = hecl::ProjectPath(outPath.getParentPath(), _S("!area.blend"));
|
||||
else
|
||||
/* We're not in a world pak, so lets keep the original name */
|
||||
mreaPath = outPath;
|
||||
|
||||
if (!force && mreaPath.getPathType() == hecl::ProjectPath::Type::File)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user