mirror of https://github.com/AxioDL/nod.git
General: Be explicit about athena's SeekOrigin type
Allows this code to function if the enum is turned into an enum class.
This commit is contained in:
parent
acdadaf963
commit
221bc7c7f2
|
@ -49,10 +49,11 @@ public:
|
||||||
AthenaPartReadStream(std::unique_ptr<IPartReadStream>&& rs) : m_rs(std::move(rs)) {}
|
AthenaPartReadStream(std::unique_ptr<IPartReadStream>&& rs) : m_rs(std::move(rs)) {}
|
||||||
|
|
||||||
void seek(atInt64 off, athena::SeekOrigin origin) override {
|
void seek(atInt64 off, athena::SeekOrigin origin) override {
|
||||||
if (origin == athena::Begin)
|
if (origin == athena::SeekOrigin::Begin) {
|
||||||
m_rs->seek(off, SEEK_SET);
|
m_rs->seek(off, SEEK_SET);
|
||||||
else if (origin == athena::Current)
|
} else if (origin == athena::SeekOrigin::Current) {
|
||||||
m_rs->seek(off, SEEK_CUR);
|
m_rs->seek(off, SEEK_CUR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
atUint64 position() const override { return m_rs->position(); }
|
atUint64 position() const override { return m_rs->position(); }
|
||||||
atUint64 length() const override { return 0; }
|
atUint64 length() const override { return 0; }
|
||||||
|
|
Loading…
Reference in New Issue