From 221bc7c7f2e25cd5e90c6b0fc595fbda0711d029 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Sep 2019 17:26:51 -0400 Subject: [PATCH] General: Be explicit about athena's SeekOrigin type Allows this code to function if the enum is turned into an enum class. --- include/nod/IDiscIO.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/nod/IDiscIO.hpp b/include/nod/IDiscIO.hpp index 732f567..2999597 100644 --- a/include/nod/IDiscIO.hpp +++ b/include/nod/IDiscIO.hpp @@ -49,10 +49,11 @@ public: AthenaPartReadStream(std::unique_ptr&& rs) : m_rs(std::move(rs)) {} void seek(atInt64 off, athena::SeekOrigin origin) override { - if (origin == athena::Begin) + if (origin == athena::SeekOrigin::Begin) { m_rs->seek(off, SEEK_SET); - else if (origin == athena::Current) + } else if (origin == athena::SeekOrigin::Current) { m_rs->seek(off, SEEK_CUR); + } } atUint64 position() const override { return m_rs->position(); } atUint64 length() const override { return 0; }