mirror of https://github.com/zeldaret/botw.git
39 lines
645 B
C++
39 lines
645 B
C++
#include "KingSystem/Resource/resResource.h"
|
|
|
|
namespace ksys::res {
|
|
|
|
Resource::Resource() = default;
|
|
|
|
Context* Resource::getContext() const {
|
|
return mContext;
|
|
}
|
|
|
|
void Resource::setContext(Context* context) {
|
|
mContext = context;
|
|
}
|
|
|
|
void Resource::onDestroy() {
|
|
onDestroy_();
|
|
}
|
|
|
|
bool Resource::parse(Context*, sead::Heap* heap) {
|
|
return parse_(mRawData, mRawSize, heap);
|
|
}
|
|
|
|
bool Resource::finalize() {
|
|
finalize_();
|
|
return true;
|
|
}
|
|
|
|
bool Resource::finishParsing(Context*) {
|
|
const bool ret = finishParsing_();
|
|
mContext = nullptr;
|
|
return ret;
|
|
}
|
|
|
|
bool Resource::m7() {
|
|
return m7_();
|
|
}
|
|
|
|
} // namespace ksys::res
|