mirror of https://github.com/zeldaret/botw.git
Add aocManager header stub
This commit is contained in:
parent
b128c71629
commit
23b3047f49
|
@ -1,4 +1,6 @@
|
|||
target_sources(uking PRIVATE
|
||||
aoc2.cpp
|
||||
aoc2.h
|
||||
aocManager.cpp
|
||||
aocManager.h
|
||||
)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
#include "Game/DLC/aocManager.h"
|
|
@ -0,0 +1,39 @@
|
|||
#pragma once
|
||||
|
||||
#include <heap/seadDisposer.h>
|
||||
#include <prim/seadSafeString.h>
|
||||
#include "KingSystem/Resource/resHandle.h"
|
||||
#include "KingSystem/Resource/resResourceMgrTask.h"
|
||||
|
||||
namespace sead {
|
||||
class FileDevice;
|
||||
}
|
||||
|
||||
namespace uking::aoc {
|
||||
|
||||
// TODO
|
||||
class Manager {
|
||||
SEAD_SINGLETON_DISPOSER(Manager)
|
||||
Manager();
|
||||
~Manager();
|
||||
|
||||
public:
|
||||
u32 getVersion() const { return mVersion; }
|
||||
|
||||
/// @return Whether the Master Trials DLC is supported.
|
||||
bool hasAoc2() const { return mVersion >= 0x200; }
|
||||
|
||||
/// @return Whether the Champion's Ballad DLC is supported.
|
||||
bool hasAoc3() const { return mVersion >= 0x300; }
|
||||
|
||||
private:
|
||||
sead::FileDevice* mFileDevice{};
|
||||
ksys::res::FileDevicePrefix mFileDevicePrefix;
|
||||
|
||||
ksys::res::Handle mVersionResHandle;
|
||||
sead::FixedSafeString<16> mVersionString;
|
||||
u32 mVersion{};
|
||||
// TODO: more fields
|
||||
};
|
||||
|
||||
} // namespace uking::aoc
|
Loading…
Reference in New Issue