Skip to content

Instantly share code, notes, and snippets.

View leoetlino's full-sized avatar
💭
I may be slow to respond. Busy with coursework

Léo Lam leoetlino

💭
I may be slow to respond. Busy with coursework
View GitHub Profile
__int64 __fastcall sub_71010B0D90(__int64 result, __int64 x1_0, __int64 a3, int *a4, _DWORD *a5, unsigned int a6, char *a7, int a8, __int64 a9)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
v9 = x1_0;
v10 = *(unsigned __int16 *)(x1_0 + 2);
v11 = a8;
v12 = a7;
v13 = a6;
v14 = a5;
void __fastcall AI_AI_PlayerNormal::m32(AI_AI_PlayerNormal *this)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
sub_710088BCEC(this->_._.actor);
sub_710088B7BC(this->_._.actor);
if ( sub_71011DE4BC(this) & 1 )
return;
v2 = Actor::x_23(this->_._.actor);
if ( !v2 )
void genStageUpdateMapTypeFlags(sead::SafeString *newTypeName, sead::SafeString *newMapName, sead::SafeString *a3)
{
setCurrentMapTypeAndName(newTypeName, newMapName);
const sead::SafeString currentMapType = getCurrentMapType();
const sead::SafeString currentMapName = getCurrentMapName();
const bool isCDungeon = (currentMapType == "CDungeon");
const bool isGameTestDungeon = (currentMapType == "GameTestDungeon");
const bool isActorViewer = (currentMapName == "ActorViewer");
void __fastcall AI_Action_ItemAmiiboCreateFromDropTable::init(AI_Action_ItemAmiiboCreateFromDropTable *this)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
this->field_1F8 = 0;
this->field_A78 = 0;
memset_0(&amiiboData, 0, 0x10CuLL);
v93._.vptr = (sead::SafeStringBase::vtable *)&v94;
v93._.vptr = &`vtable for'sead::BufferedSafeStringBase<char>;
v93.length = 0x30;
__int64 __fastcall Enemy::getMaxHp(Enemy *this)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
v2 = this->_._.g.a.actorParam->_.gParamList;
v3 = v2->res.numObjects;
v4 = (BgparamlistObjectEnemy **)v2->res.objects;
if ( v3 > GParamObj_Enemy )
v4 += 2;
v5 = *v4;
@leoetlino
leoetlino / TempMgr_calcTemperature.cpp
Created November 20, 2018 17:51
BotW temperature calculation
float __cdecl wm::TempMgr::calcTemperature(wm::TempMgr *this)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
worldMgr = WorldMgr::sInstance;
height = WorldMgr::sInstance->cameraPos.y;
this->height = height;
tempDay = WorldMgr::calcTempDay(worldMgr, height);
tempNight = WorldMgr::calcTempNight(WorldMgr::sInstance, this->height);
if ( WorldMgr::sInstance->mgrs.size )
bool __cdecl AmiiboMgr::isMotorcycleAllowed(AmiiboMgr *this)
{
GameDataMgr *v1; // x21
BOOL v3; // w20
sead::SafeString v5; // [xsp+0h] [xbp-40h]
bool a2; // [xsp+1Ch] [xbp-24h]
v1 = GameDataMgr::sInstance;
if ( !GameDataMgr::sInstance )
goto LABEL_10;
bool AmiiboMgr::isAmiiboAllowed() {
auto* gdm = GameDataMgr::sInstance;
if (gdm) {
if (gdm->getBool("IsPlayed_Demo146_0") ||
gdm->getBool("IsPlayed_Demo142_0") ||
gdm->getBool("IsPlayed_Demo141_0") ||
gdm->getBool("IsPlayed_Demo141_1") ||
gdm->getBool("IsPlayed_Demo141_2") ||
gdm->getBool("IsPlayed_Demo141_3") ||
gdm->getBool("NakedIsland_ProhibitAmiibo")) {
--- /home/leo/botw/strings_100c.txt 2018-11-26 23:18:16.025567279 +0100
+++ /home/leo/botw/strings_150c.txt 2018-11-26 23:18:21.037373982 +0100
@@ -1,143 +1,224 @@
-讏
-詩
-仩
- ©
-衰
-褰
-衰
signed __int64 __fastcall Bdrop::parse(Bdrop *this, uchar *data, ulong actualFileSize, sead::Heap *heap)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
obj = &this->obj;
a4a.vptr = &sead::SafeString::vt;
a4a.cstr = "TableNum";
a2.vptr = &sead::SafeString::vt;
a2.cstr = "テーブルの数";
help._.vptr = &sead::SafeString::vt;