ksys/res: Add status descriptions

This commit is contained in:
Léo Lam 2020-09-22 19:36:59 +02:00
parent 39be118a9c
commit 22a0c93c51
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 37 additions and 1 deletions

View File

@ -90779,7 +90779,7 @@
0x00000071012013d4,ResourceBase::rtti1,288,_ZNK4ksys3res8Resource27checkDerivedRuntimeTypeInfoEPKN4sead15RuntimeTypeInfo9InterfaceE
0x00000071012014f4,ResourceBase::rtti2,92,_ZNK4ksys3res8Resource18getRuntimeTypeInfoEv
0x0000007101201550,nullsub_5570,4,
0x0000007101201554,sub_7101201554,324,
0x0000007101201554,sub_7101201554,324,_GLOBAL__sub_I_resHandle.cpp!
0x0000007101201698,ResourceLoadArgBase::dtorDelete,4,
0x000000710120169c,ResourceLoadArg::ctor,136,
0x0000007101201724,ResourceLoadArg::ctor2,112,

Can't render this file because it is too large.

View File

@ -1,7 +1,43 @@
#include "KingSystem/Resource/resHandle.h"
#include <container/seadBuffer.h>
#include <prim/seadSafeString.h>
#include <time/seadTickTime.h>
namespace ksys::res {
namespace {
struct UnusedVariables {
sead::TickTime tick_time;
void* _8 = nullptr;
f32 _10 = 0.5;
f32 _14 = 1.0;
f32 _18 = 0.5;
f32 _1c = 1.0;
};
} // namespace
UnusedVariables sVariables;
const sead::SafeString sStatusStrings_[0x11] = {
" ", // 0x0
"[Unknown] ", // 0x1
"[No File] ", // 0x2
"[Request OK]", // 0x3
"[Already] ", // 0x4
"[FromCache] ", // 0x5
"[No Memory] ", // 0x6
"[No Execute]", // 0x7
"[Size Zero] ", // 0x8
"[Compose NG]", // 0x9
"[AllocSizeNG]", // 0xa
"[Edited] ", // 0xb
"[HeapSizeNG]", // 0xc
"[FileDeviceNG]", // 0xd
"[Load OK]", // 0xe
"[Yet]", // 0xf
"[Canceled]", // 0x10
};
const sead::Buffer<const sead::SafeString> sStatusStrings{0x11, sStatusStrings_};
Handle::Handle() = default;
} // namespace ksys::res