2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:47:42 +00:00

Fix CMemoryCardSys shutdown crash

This commit is contained in:
2017-01-22 09:36:25 -08:00
parent eb955c53ec
commit 12c6163e32
9 changed files with 88 additions and 20 deletions

View File

@@ -31,6 +31,7 @@ struct SParticleModel
SParticleModel() = default;
SParticleModel(CToken&& tok, bool found)
: m_token(std::move(tok)), m_found(found) {}
operator bool() const { return m_found; }
};
struct SChildGeneratorDesc
@@ -41,6 +42,7 @@ struct SChildGeneratorDesc
SChildGeneratorDesc() = default;
SChildGeneratorDesc(CToken&& tok, bool found)
: m_token(std::move(tok)), m_found(found) {}
operator bool() const { return m_found; }
};
struct SSwooshGeneratorDesc
@@ -51,6 +53,7 @@ struct SSwooshGeneratorDesc
SSwooshGeneratorDesc() = default;
SSwooshGeneratorDesc(CToken&& tok, bool found)
: m_token(std::move(tok)), m_found(found) {}
operator bool() const { return m_found; }
};
struct SElectricGeneratorDesc
@@ -61,6 +64,7 @@ struct SElectricGeneratorDesc
SElectricGeneratorDesc() = default;
SElectricGeneratorDesc(CToken&& tok, bool found)
: m_token(std::move(tok)), m_found(found) {}
operator bool() const { return m_found; }
};
class CParticleDataFactory