This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
CMP W1, #3 | |
TBZ W2, #0, loc_710096E890 | |
B.GT loc_710096E8C0 | |
MOV X0, X20 ; a1 | |
MOV W1, WZR ; a2 | |
BL sead::ListImpl::nth(int)const | |
*/ | |
... | |
if ( (signed int)type <= 9 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename T> | |
T* ActorParamMgr::loadFile(ActorParam* param, ActorParam::ResourceType type, const char* dir_name_c, | |
const char* extension_c, const char* name_c, res::Handle* pack_handle, | |
void* x, u32 load_req_c) { | |
const sead::SafeString name = name_c; | |
const sead::SafeString extension = extension_c; | |
sead::FixedSafeString<128> path; | |
T* res = nullptr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bxml *__fastcall ActorParamMgr::loadActorLink(ksys::act::ActorParamMgr *this, ActorParam *param, int idx, const char *dirName, char *extension, char *name, ksys::res::Handle *handle, __int64 a8, int load_req_c) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
path.s._.cstr = path.data; | |
_name.vptr = &sead::SafeString::vt; | |
_name.cstr = name; | |
_ext.vptr = &sead::SafeString::vt; | |
_ext.cstr = extension; | |
path.s._.vptr = &`vtable for sead::BufferedSafeStringBase<char>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
// DO NOT EDIT. This file is automatically generated. | |
#include "KingSystem/GameData/gdtManager.h" | |
namespace ksys::gdt { | |
struct CommonFlags { | |
FlagHandle flag_100enemy_Activated; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param dest Destination flag array | |
* @param src Source flag array | |
* @param records Copy records (only used if add_records is true) | |
* @param counts Boolean flag counts per category (only used if T = bool) | |
* @param record_copies Whether copies should be recorded | |
* @param ignore_temp_flags Whether temporary flags (i.e. flags that aren't saved) | |
* should be ignored | |
* @param find_existing_record See addFlagCopyRecord. | |
* @param is_array Whether the flag arrays are associated with an array-type flag (e.g. bool array) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void __fastcall gdt::copyFlags_s32(GameDataMgr::FlagArray *dest, GameDataMgr::FlagArray *src, sead::ObjArray *records, int *indices, bool add_records, bool y, bool find_existing_record, bool is_array) | |
{ | |
__int64 dest_size; // x27 | |
int src_size; // w28 | |
unsigned __int64 v14; // x19 | |
signed __int64 v15; // x20 | |
GameDataFlag *v16; // x0 | |
unsigned __int8 *v17; // x0 | |
GameDataFlag *v18; // x0 | |
unsigned __int8 *v19; // x0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BaseProcEvent *__fastcall BaseProcTaskPrioritizer::invoked(__int64 a1, TaskPrioritizerContext *ctx) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
begin = ctx->it_begin; | |
end = ctx->it_end; | |
v5 = (BaseProcEvent *)begin->mPtr; | |
v6 = end->mPtr; | |
if ( begin->mPtr == end->mPtr ) | |
return (BaseProcEvent *)ctx->it_begin->mPtr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool __fastcall needToFreezeSceneForActorCreate(BaseProcEvent *event, Vec3 *playerPos) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
v2 = __ldar((unsigned __int8 *)&unk_71026003D8); | |
if... | |
if ( !event || !event->_.vptr->_.rtti1((ksys::util::ManagedTask *)event, &BaseProcEvent::rttiInfo) ) | |
return 0; | |
obj = event->placementObj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool __cdecl ActorSystem::needToFreezeScene(ActorSystem *this) | |
{ | |
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND] | |
v1 = BaseProcMgr::sInstance->procInitializer->mTaskQueue; | |
ksys::util::TaskQueueLock::TaskQueueLock(&lock); | |
v2 = ksys::util::TaskQueueBase::activeTasksBegin(v1, &lock); | |
_.playerAcc.acquired = 0; | |
_.playerAcc.actor = 0LL; | |
v27 = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified version of https://github.com/L4ys/LazyIDA | |
# Licensed under MIT | |
import idaapi | |
import idc | |
from struct import unpack | |
IDA7 = idaapi.IDA_SDK_VERSION >= 700 | |
if IDA7: | |
from PyQt5.Qt import QApplication | |
else: |