repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
in1tiate/OoT3D_Randomizer
code/src/srv.c
/* srv.c _ Service manager. */ #include <string.h> #include "3ds/types.h" #include "3ds/result.h" #include "3ds/env.h" #include "3ds/srv.h" #include "3ds/svc.h" #include "3ds/ipc.h" #include "3ds/synchronization.h" #include "3ds/os.h" #include "3ds/services/srvpm.h" static Handle srvHandle; static int srvRefCount; ...
in1tiate/OoT3D_Randomizer
code/src/gfx.h
#ifndef _GFX_H_ #define _GFX_H_ #include "../include/draw.h" #include "../include/input.h" #include "3ds/extdata.h" #include "savefile.h" extern u32 pressed; extern bool handledInput; void Gfx_Init(void); void Gfx_Update(void); #endif //_GFX_H_
in1tiate/OoT3D_Randomizer
code/src/models.h
#ifndef _MODELS_H_ #define _MODELS_H_ #include "z3D/z3D.h" #include "item_table.h" typedef struct { Actor* actor; ItemRow* itemRow; s8 objectBankIdx; u8 loaded; SkeletonAnimationModel* saModel; SkeletonAnimationModel* saModel2; f32 scale; } Model; void Model_UpdateAll(GlobalContext* globa...
in1tiate/OoT3D_Randomizer
code/src/env.c
/* Source: https://github.com/devkitPro/libctru/blob/6360f4bdb1ca5f8131ffc92640c1dd16afb63083/libctru/source/env.c */ #include "3ds/types.h" #include "3ds/svc.h" #include "3ds/env.h" /* The homebrew loader can choose to supply a list of service handles that have been "stolen" from other processes that have been c...
in1tiate/OoT3D_Randomizer
code/src/graveyard_objects.c
#include "z3D/z3D.h" #include "graveyard_objects.h" #define CsTimer (gGlobalContext->csCtx.frames) #define BgSpot02Objects_Update_addr 0x3831AC #define BgSpot02Objects_Update ((ActorFunc)BgSpot02Objects_Update_addr) void BgSpot02Objects_rUpdate(Actor* thisx, GlobalContext* globalCtx) { BgSpot02Objects_Update(thi...
in1tiate/OoT3D_Randomizer
code/src/malon.h
#ifndef _MALON_H_ #define _MALON_H_ #include "z3D/z3D.h" void EnMa1_rInit(Actor* thisx, GlobalContext* globalCtx); #endif //_MALON_H_
in1tiate/OoT3D_Randomizer
code/src/ganondorf_organ.h
#ifndef _GANONDORF_ORGAN_H_ #define _GANONDORF_ORGAN_H_ #include "z3D/z3D.h" void EnGanonOrgan_rInit(Actor* organ, GlobalContext* globalCtx); #endif //_GANONDORF_ORGAN_H_
in1tiate/OoT3D_Randomizer
code/src/chest_minigame.c
#include "z3D/z3D.h" #include "settings.h" #include "chest_minigame.h" #define EnTakaraMan_Init_addr 0x26DEB8 #define EnTakaraMan_Init ((ActorFunc)EnTakaraMan_Init_addr) #define EnChanger_Init_addr 0x20EC50 #define EnChanger_Init ((ActorFunc)EnChanger_Init_addr) #define sLoserGetItemIds ((s32*)0x521774) void EnTaka...
in1tiate/OoT3D_Randomizer
code/include/lib/string.h
<reponame>in1tiate/OoT3D_Randomizer #pragma once #include "lib/types.h" #include <stdint.h> size_t strlen( const char * str ); void * memset( void * ptr, int value, size_t num ); void * memcpy( void * dst, const void * src, size_t len ); size_t strnlen( const char * s, size_t max_len ); char * strncpy( char * dst...
in1tiate/OoT3D_Randomizer
code/src/farores_wind.c
<gh_stars>100-1000 #include "z3D/z3D.h" #include "settings.h" void MagicWind_Unset(void) { if (!gSettingsContext.keepFWWarpPoint) { gSaveContext.fw.set = 0; } } u16 MagicWind_CheckSet(void) { if (gSaveContext.fw.set) { gSaveContext.respawn[2].pos.x = (f32)gSaveContext.fw.pos.x; gSa...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_item_etcetera.h
<reponame>in1tiate/OoT3D_Randomizer<gh_stars>100-1000 #ifndef _ITEM_ETCETERA_H_ #define _ITEM_ETCETERA_H_ #include "z3D/z3D.h" typedef struct ItemEtcetera { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0x12]; /* 0x1B6 */ s16 getItemId; /* 0x1B8 */ char unk_1B8[0x4]; } ItemEtcetera; // size 0x1BC ...
in1tiate/OoT3D_Randomizer
code/src/liftable_rock.c
#include "liftable_rock.h" #include "settings.h" #define EnIshi_Init_addr 0x1B5460 #define EnIshi_Init ((ActorFunc)EnIshi_Init_addr) void EnIshi_rInit(Actor* thisx, GlobalContext* globalCtx) { EnIshi_Init(thisx, globalCtx); //If dungeon entrance randomizer is on, remove the grey boulders that normally /...
in1tiate/OoT3D_Randomizer
code/src/scarecrow.c
#include "z3D/z3D.h" #include "settings.h" s32 Scarecrow_CheckToBeActivated(void) { if (gSettingsContext.freeScarecrow == ON) { return (PLAYER->stateFlags2 & 0x08000000) != 0; // Check if Link is holding ocarina } else { return gGlobalContext->unk_2B7E == 11; // Check if scarecrow's song was ju...
in1tiate/OoT3D_Randomizer
code/src/carpenter.c
<filename>code/src/carpenter.c<gh_stars>100-1000 #include "z3D/z3D.h" void EnToryo_SetTradedSawFlag(void) { gSaveContext.itemGetInf[3] |= 0x4; }
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_demo_effect.h
<reponame>in1tiate/OoT3D_Randomizer<filename>code/include/z3D/actors/z_demo_effect.h #ifndef _DEMO_EFFECT_H_ #define _DEMO_EFFECT_H_ #include "z3D/z3D.h" typedef struct DemoEffect { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0x158]; } DemoEffect; // size 0x2FC #endif //_DEMO_EFFECT_H_
in1tiate/OoT3D_Randomizer
code/src/demo_kankyo.h
#ifndef _DOOR_OF_TIME_H_ #define _DOOR_OF_TIME_H_ #include "z3D/z3D.h" void DemoKankyo_rUpdate(Actor* thisx, GlobalContext* globalCtx); #endif //_DOOR_OF_TIME_H_
in1tiate/OoT3D_Randomizer
code/src/grotto.c
<gh_stars>0 #include "../include/z3D/z3D.h" #include "grotto.h" #include "savefile.h" #include "settings.h" // Information necessary for entering each grotto static const GrottoLoadInfo grottoLoadTable[NUM_GROTTOS] = { {.entranceIndex = 0x05BC, .content = 0xFD, .scene = 0x5C}, // Desert Colossus -> Colossus Grotto...
in1tiate/OoT3D_Randomizer
code/src/common.h
<filename>code/src/common.h #ifndef _COMMON_H_ #define _COMMON_H_ #include "../include/z3D/z3D.h" #include "../include/3ds/svc.h" #include "../include/lib/printf.h" #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) #define SEQ_AUDIO_BLANK 0x1000142 u32 Hash(u32); u8 Bias(u32); u8 IsInGame(void); void DebugPrintNum...
in1tiate/OoT3D_Randomizer
code/src/nabooru.c
<gh_stars>100-1000 #include "z3D/z3D.h" #include "nabooru.h" #define EnNb_Draw_addr 0x1B7FBC #define EnNb_Draw ((ActorFunc)EnNb_Draw_addr) void EnNb_rDraw(Actor* thisx, GlobalContext* globalCtx) { // if the scene is Spirit Boss, Nabooru Knuckle is defeated and Nabooru is on the ground, reload scene //(Naboor...
in1tiate/OoT3D_Randomizer
code/include/3ds/font.h
/** * @file font.h * @brief Shared font support. */ #pragma once #include <3ds/types.h> ///@name Data types ///@{ /// Character width information structure. typedef struct { s8 left; ///< Horizontal offset to draw the glyph with. u8 glyphWidth; ///< Width of the glyph. u8 charWidth; ///< Width of the cha...
in1tiate/OoT3D_Randomizer
code/src/demo_effect.c
#include "z3D/z3D.h" #include "z3D/actors/z_demo_effect.h" #include "models.h" #define DemoEffect_Init_addr 0x22345C #define DemoEffect_Init ((ActorFunc)DemoEffect_Init_addr) #define DemoEffect_Destroy_addr 0x2245B8 #define DemoEffect_Destroy ((ActorFunc)DemoEffect_Destroy_addr) #define DemoEffect_Update_a...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_en_item00.h
#ifndef _EN_ITEM00_H_ #define _EN_ITEM00_H_ #include "z3D/z3D.h" typedef struct EnItem00 { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0x4]; /* 0x1A8 */ u16 collectibleFlag; /* 0x1AA */ char unk_1AA[0x4]; /* 0x1AE */ u16 unk_1AE; /* 0x1B0 */ u16 unk_1B0; /* 0x1B2 */ char ...
in1tiate/OoT3D_Randomizer
code/src/bgm.h
#ifndef _BGM_H_ #define _BGM_H_ #define BGM_BASE 0x1000585 #define BGM_COUNT 85 u32 SetBGM(u32 original); #endif // _BGM_H_
in1tiate/OoT3D_Randomizer
code/src/fishing.c
#include "z3D/z3D.h" u32 isFishing(void) { return gSaveContext.equips.buttonItems[0] == ITEM_FISHING_POLE && gGlobalContext->sceneNum == 73; }
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_item_ocarina.h
<reponame>in1tiate/OoT3D_Randomizer<gh_stars>100-1000 #ifndef _ITEM_OCARINA_H_ #define _ITEM_OCARINA_H_ #include "z3D/z3D.h" typedef struct ItemOcarina { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0xC]; } ItemOcarina; // size 0x1B0 #endif //_ITEM_OCARINA_H_
in1tiate/OoT3D_Randomizer
code/include/hid.h
/* * From n3rdswithgame, who may or may not have originally written this */ #ifndef HID_H #define HID_H #include <stdint.h> typedef union { uint32_t val; struct { uint32_t a : 1; //1 uint32_t b : 1; //2 uint32_t sel : 1; //3 uint32_t strt : 1; //4 ...
in1tiate/OoT3D_Randomizer
code/src/menus.h
<filename>code/src/menus.h #ifndef _MENUS_H_ #define _MENUS_H_ typedef struct MenuSpriteManager { char unk_00[0x474]; } MenuSpriteManager; //size = 0x474 #endif //_MENUS_H_
in1tiate/OoT3D_Randomizer
code/src/menus.c
#include "menus.h" #include "z3D/z3D.h" #include "input.h" #include "savefile.h" #include "settings.h" #define gItemsMenuSpritesManager (*(MenuSpriteManager**)0x506734) #define gBowMenuSpritesManager (*(MenuSpriteManager**)0x506738) #define gItemsMenuGlowSpritesManager (*(MenuSpriteManager**)0x50673C) #define gMenuSpr...
in1tiate/OoT3D_Randomizer
code/src/custom_models.c
#include "z3D/z3D.h" #include "string.h" #include "custom_models.h" #include "objects.h" #include "settings.h" #define EDIT_BYTE(offset_, val_) (BASE_[offset_] = val_) u8 SmallKeyData[][7] = { { 0x00, 0x80, 0x00, 0x00, 0x00, 0xCC, 0x00 }, //Forest { 0x54, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00 }, //Fire { 0x0...
in1tiate/OoT3D_Randomizer
code/src/mido.c
<filename>code/src/mido.c #include "z3D/z3D.h" #include "3ds/types.h" #include "settings.h" //Done to fix vanilla weirdness where Mido despawns in forest after obtaining Zelda's letter u32 EnMd_ShouldSpawn(void) { bool DekuTreeDead = (gSaveContext.eventChkInf[0] & 0x80); //"Obtained Kokiri Emerald & Deku Tree Dea...
in1tiate/OoT3D_Randomizer
code/src/anju.h
<filename>code/src/anju.h #ifndef _ANJU_H_ #define _ANJU_H_ #include "z3D/z3D.h" struct EnNiwLady; typedef void (*EnNiwLady_ActionFunc)(struct EnNiwLady* self, GlobalContext* globalCtx); typedef struct EnNiwLady { /* 0x0000 */ Actor actor; /* 0x01A4 */ char unk_1A4[0x69C]; /* 0x0840 */ EnNiwLady_ActionF...
in1tiate/OoT3D_Randomizer
code/src/master_sword_pedestal.c
<gh_stars>0 #include "z3D/z3D.h" #include "settings.h" #include "savefile.h" u8 ShouldSkipMasterSwordCutscene() { // return gExtSaveData.hasTraveledTimeOnce || gSettingsContext.openDoorOfTime == OPENDOOROFTIME_OPEN; return 0; } void TimeTravelAdvanceCutsceneTimer() { if (gGlobalContext->csCtx.frames < 31...
in1tiate/OoT3D_Randomizer
code/src/giants_knife.h
<reponame>in1tiate/OoT3D_Randomizer #ifndef _GIANTS_KNIFE_H_ #define _GIANTS_KNIFE_H_ #include "z3D/z3D.h" u16 GK_SetDurability(void); #endif //_GIANTS_KNIFE_H_
in1tiate/OoT3D_Randomizer
code/src/well_water.h
#ifndef _WELL_WATER_H_ #define _WELL_WATER_H_ #include "z3D/z3D.h" void BgSpot01Idomizu_rInit(Actor* thisx, GlobalContext* globalCtx); #endif
in1tiate/OoT3D_Randomizer
code/src/anju.c
<reponame>in1tiate/OoT3D_Randomizer<gh_stars>100-1000 #include "z3D/z3D.h" #include "settings.h" #include "anju.h" u32 EnNiwLady_CheckCuccoAmount(u32 cuccosInPen) { return cuccosInPen >= gSettingsContext.numRequiredCuccos; } void EnNiwLady_rGiveCojiro(EnNiwLady* self, GlobalContext* globalCtx) { if (Actor_Ha...
in1tiate/OoT3D_Randomizer
code/src/drawbridge.c
<reponame>in1tiate/OoT3D_Randomizer #include "z3D/z3D.h" #include "drawbridge.h" #define BgSpot00Hanebasi_Update_addr 0x38B390 #define BgSpot00Hanebasi_Update ((ActorFunc)BgSpot00Hanebasi_Update_addr) void BgSpot00Hanebasi_rUpdate(Actor* thisx, GlobalContext* globalCtx) { // if about to start Zelda Escape cutsce...
in1tiate/OoT3D_Randomizer
code/include/z3D/z3Dcutscene.h
#ifndef _Z3DCUTSCENE_H_ #define _Z3DCUTSCENE_H_ #include "z3Dvec.h" typedef struct { /* 0x00 */ u16 action; // "dousa" /* 0x02 */ u16 startFrame; /* 0x04 */ u16 endFrame; /* 0x06 */ Vec3s rot; /* 0x0C */ Vec3i startPos; /* 0x18 */ Vec3i endPos; /* 0x24 */ Vec3i normal; } CsCmdActorAction; ...
in1tiate/OoT3D_Randomizer
code/src/en_ex_item.c
#include "z3D/z3D.h" #include "z3D/actors/z_en_ex_item.h" #include "models.h" #define EnExItem_Init_addr 0x20FC50 #define EnExItem_Init ((ActorFunc)EnExItem_Init_addr) #define EnExItem_Destroy_addr 0x20FDE0 #define EnExItem_Destroy ((ActorFunc)EnExItem_Destroy_addr) #define THIS ((EnExItem*)thisx) void EnExItem_rIn...
in1tiate/OoT3D_Randomizer
code/src/en_ex_item.h
<gh_stars>100-1000 #ifndef _EN_EX_ITEM_H_ #define _EN_EX_ITEM_H_ #include "z3D/z3D.h" #include "z3D/actors/z_en_ex_item.h" void EnExItem_rInit(Actor* thisx, GlobalContext* globalCtx); void EnExItem_rDestroy(Actor* thisx, GlobalContext* globalCtx); #endif //_EN_EX_ITEM_H_
in1tiate/OoT3D_Randomizer
code/src/liftable_rock.h
#ifndef _LIFTABLE_ROCK_H #define _LIFTABLE_ROCK_H #define SMALL_ROCK 0 #define LARGE_ROCK 1 #include "z3D/z3D.h" void EnIshi_rInit(Actor* thisx, GlobalContext* globalCtx); #endif
in1tiate/OoT3D_Randomizer
code/include/3ds/sys/lock.h
<gh_stars>100-1000 #ifndef __SYS_LOCK_H__ #define __SYS_LOCK_H__ // #include <_ansi.h> #include <stdint.h> typedef int32_t _LOCK_T; struct __lock_t { _LOCK_T lock; uint32_t thread_tag; uint32_t counter; }; typedef struct __lock_t _LOCK_RECURSIVE_T; extern void __libc_lock_init(_LOCK_T *lock); extern void __libc...
in1tiate/OoT3D_Randomizer
code/src/grog.h
<filename>code/src/grog.h #ifndef _GROG_H_ #define _GROG_H_ #include "z3D/z3D.h" struct EnHs; typedef void (*EnHs_ActionFunc)(struct EnHs* self, GlobalContext* globalCtx); typedef struct EnHs { /* 0x0000 */ Actor actor; /* 0x01A4 */ char unk_1A4[0x560]; /* 0x0704 */ u16 unk_704; /* 0x0706 */ char un...
in1tiate/OoT3D_Randomizer
code/src/twinrova.h
<gh_stars>100-1000 #ifndef _TWINROVA_H_ #define _TWINROVA_H_ #include "z3D/z3D.h" void Boss_Tw_rInit(Actor* thisx, GlobalContext* globalCtx); void Boss_Tw_rUpdate(Actor* thisx, GlobalContext* globalCtx); void Boss_Tw_rDraw(Actor* thisx, GlobalContext* globalCtx); void Boss_Tw_rDestroy(Actor* thisx, GlobalContext* glo...
in1tiate/OoT3D_Randomizer
code/src/bean_daddy.c
#include "z3D/z3D.h" #include "settings.h" // If beans aren't shuffled, do nothing here // If they are and the reward hasnt been purchased, return 5 to display the 60 rupees textbox // If the reward has been purchased, return 10 to prevent another purchase s8 EnMs_ModifyBeansBought(s8 beansBought) { // return gSet...
in1tiate/OoT3D_Randomizer
code/src/shooting_gallery.c
#include "z3D/z3D.h" #include "settings.h" u32 EnSyatekiMan_UseRemindText(void) { return gSaveContext.linkAge == 0 && (gSaveContext.upgrades & 0x7) == 0; }
in1tiate/OoT3D_Randomizer
code/src/jabu.c
#include "z3D/z3D.h" #include "settings.h" #include "entrance.h" #define BgBdanSwitch_Init_addr 0x276508 #define BgBdanSwitch_Init ((ActorFunc)BgBdanSwitch_Init_addr) void Jabu_SkipOpeningCutscene(void) { gGlobalContext->nextEntranceIndex = Entrance_OverrideNextIndex(0x0028); gGlobalContext->sceneLoadFlag = 0...
in1tiate/OoT3D_Randomizer
code/src/actor.h
<filename>code/src/actor.h<gh_stars>100-1000 #ifndef _ACTOR_H_ #define _ACTOR_H_ #include "z3D/z3D.h" void Actor_Init(); #endif //_ACTOR_H_
in1tiate/OoT3D_Randomizer
code/src/business_scrubs.h
#ifndef _BUSINESS_SCRUBS_H_ #define _BUSINESS_SCRUBS_H_ #include "z3D/z3D.h" void EnShopnuts_rInit(Actor* thisx, GlobalContext* globalCtx); #endif //_BUSINESS_SCRUBS_H_
in1tiate/OoT3D_Randomizer
code/src/ocarina.c
#include "z3D/z3D.h" #include "z3D/actors/z_item_ocarina.h" #include "models.h" #define ItemOcarina_Init_addr 0x253818 #define ItemOcarina_Init ((ActorFunc)ItemOcarina_Init_addr) #define ItemOcarina_Destroy_addr 0x253A1C #define ItemOcarina_Destroy ((ActorFunc)ItemOcarina_Destroy_addr) #define ItemOcarina_Draw_addr ...
in1tiate/OoT3D_Randomizer
code/src/navi.c
<gh_stars>0 #include "../include/z3D/z3D.h" #include "savefile.h" u8 IsNaviSilenced(void) { return gExtSaveData.option_SilenceNavi; }
in1tiate/OoT3D_Randomizer
code/src/gossip_stone.h
#ifndef _GOSSIP_STONE_H_ #define _GOSSIP_STONE_H_ #include "z3D/z3D.h" void EnGs_rInit(Actor* thisx, GlobalContext* globalCtx); #endif //_GOSSIP_STONE_H_
in1tiate/OoT3D_Randomizer
code/src/checkable_spot.c
<gh_stars>100-1000 #include "z3D/z3D.h" #include "checkable_spot.h" #define EnWonderTalk2_Update_addr 0x3794EC #define EnWonderTalk2_Update ((ActorFunc)EnWonderTalk2_Update_addr) //#define EnWonderTalk2_Destroy_addr 0x298D84 //#define EnWonderTalk2_Destroy ((ActorFunc)EnWonderTalk2_Destroy_addr) void EnWonderTalk2_r...
in1tiate/OoT3D_Randomizer
code/include/3ds/services/fs.h
<filename>code/include/3ds/services/fs.h /** * @file fs.h * @brief Filesystem Services * Edited from https://github.com/devkitPro/libctru/blob/6360f4bdb1ca5f8131ffc92640c1dd16afb63083/libctru/include/3ds/services/fs.h */ #pragma once #include "../types.h" /// Open flags. enum { FS_OPEN_READ = BIT(0), ///< Open...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_en_shopnuts.h
#ifndef _EN_SHOPNUTS_H_ #define _EN_SHOPNUTS_H_ #include "z3D/z3D.h" typedef struct EnShopnuts { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0x6FC]; } EnShopnuts; // size 0x8A0 #endif //_EN_SHOPNUTS_H_
in1tiate/OoT3D_Randomizer
code/src/drawbridge.h
#ifndef _DRAWBRIDGE_H_ #define _DRAWBRIDGE_H_ #include "z3D/z3D.h" void BgSpot00Hanebasi_rUpdate(Actor* thisx, GlobalContext* globalCtx); #endif //_DRAWBRIDGE_H_
in1tiate/OoT3D_Randomizer
code/include/z3D/z3Ditem.h
<reponame>in1tiate/OoT3D_Randomizer<filename>code/include/z3D/z3Ditem.h<gh_stars>100-1000 #ifndef _Z3D_ITEM_H_ #define _Z3D_ITEM_H_ #include "z3Dvec.h" typedef enum { /* 0x00 */ SLOT_STICK, /* 0x01 */ SLOT_NUT, /* 0x02 */ SLOT_BOMB, /* 0x03 */ SLOT_BOW, /* 0x04 */ SLOT_ARROW_FIRE, /...
in1tiate/OoT3D_Randomizer
code/src/message.h
#ifndef _MESSAGE_H_ #define _MESSAGE_H_ #include "../include/z3D/z3D.h" typedef struct { // In the true file format, offset is the offset into the QM file. // In randomizer, offset will be a pointer to the text in the game's address space. // Since these pointers will be much larger as u32 than the origin...
in1tiate/OoT3D_Randomizer
code/src/door.h
#ifndef _DOOR_H_ #define _DOOR_H_ #include "z3D/z3D.h" void DoorShutter_rInit(Actor* thisx, GlobalContext* globalCtx); #endif //_DOOR_H_
in1tiate/OoT3D_Randomizer
code/include/lib/types.h
<reponame>in1tiate/OoT3D_Randomizer<filename>code/include/lib/types.h<gh_stars>100-1000 #pragma once typedef unsigned int size_t;
in1tiate/OoT3D_Randomizer
code/src/dampe.h
<reponame>in1tiate/OoT3D_Randomizer<gh_stars>0 #ifndef _DAMPE_H_ #define _DAMPE_H_ #include "z3D/z3D.h" typedef struct { /* 0x000 */ char unk_00[0xBA8]; /* 0xBA8 */ u32 currentReward; } EnTk; typedef struct { /* 0x000 */ char unk_00[0xB1C]; /* 0xB1C */ u8 unk_B1C; } EnPoRelay; void EnTk_rUpdate(Acto...
in1tiate/OoT3D_Randomizer
code/src/deku_tree_mouth.h
<filename>code/src/deku_tree_mouth.h #ifndef _DEKU_TREE_MOUTH_H_ #define _DEKU_TREE_MOUTH_H_ #include "z3D/z3D.h" void BgTreemouth_rInit(Actor* thisx, GlobalContext* globalCtx); #endif
in1tiate/OoT3D_Randomizer
code/src/title_screen.c
<filename>code/src/title_screen.c #include "z3D/z3D.h" #include "custom_models.h" #include "objects.h" #include "title_screen.h" #define EnMag_Init_addr 0x18CBB8 #define EnMag_Init ((ActorFunc)EnMag_Init_addr) u8 missingRomfsAlert = 0; s16 romfsAlertFrames = 0; void EnMag_rInit(Actor* thisx, GlobalContext* globalCtx...
in1tiate/OoT3D_Randomizer
code/src/medigoron.c
<gh_stars>100-1000 #include "z3D/z3D.h" #include "settings.h" s32 EnGm_CheckRewardFlag(void) { // 0: blt, skip equipment check // 1: beq, goto text id 304D, no item offer // 2: continue like normal if (gSettingsContext.shuffleMerchants != SHUFFLEMERCHANTS_OFF && (gSaveContext.eventChkInf[3] & 0x20) == ...
in1tiate/OoT3D_Randomizer
code/src/jabu.h
#ifndef _JABU_OBJECTS_H_ #define _JABU_OBJECTS_H_ #include "z3D/z3D.h" void BgBdanSwitch_rInit(Actor* thisx, GlobalContext* globalCtx); #endif //_JABU_OBJECTS_H_
in1tiate/OoT3D_Randomizer
code/src/gtg_gate.c
#include "gtg_gate.h" #include "settings.h" #define BgSpot12Saku_Update_addr 0x29E030 #define BgSpot12Saku_Update ((ActorFunc)BgSpot12Saku_Update_addr) #define BgSpot12Saku_Init_addr 0x27AD6C #define BgSpot12Saku_Init ((ActorFunc)BgSpot12Saku_Init_addr) void BgSpot12Saku_rUpdate(Actor* thisx, GlobalContext* globalCt...
in1tiate/OoT3D_Randomizer
code/src/string.c
#include "lib/types.h" #include <stdint.h> size_t strlen( const char * str ) { const char *s; for (s = str; *s; ++s); return (s - str); } void * memset( void * ptr, int value, size_t num ) { char *s = ptr; while(num--) *s++ = value; return ptr; } void * memcpy( void * dst, const void ...
in1tiate/OoT3D_Randomizer
code/src/deku_tree_mouth.c
#include "deku_tree_mouth.h" #include "settings.h" #include "z3D/z3D.h" #define BgTreemouth_Init_addr 0x2412B4 #define BgTreemouth_Init ((ActorFunc)BgTreemouth_Init_addr) void BgTreemouth_rInit(Actor* thisx, GlobalContext* globalCtx) { BgTreemouth_Init(thisx, globalCtx); //If dungeon entrance randomizer is ...
in1tiate/OoT3D_Randomizer
code/src/grog.c
#include "z3D/z3D.h" #include "settings.h" #include "grog.h" #define EnHs_ActionAfterTradeCojiro ((EnHs_ActionFunc)0x3B02C0) void EnHs_CheckForShouldDespawn(EnHs* self) { if ((gSettingsContext.shuffleAdultTradeQuest == SHUFFLEADULTTRADEQUEST_ON) && (gSaveContext.itemGetInf[2] & 0x2000)) { Actor_Kill(&sel...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_en_si.h
<gh_stars>100-1000 #ifndef _EN_SI_H_ #define _EN_SI_H_ #include "z3D/z3D.h" struct EnSi; typedef void (*EnSiActionFunc)(struct EnSi*, GlobalContext*); typedef struct EnSi { /* 0x000 */ Actor actor; /* 0x1A4 */ EnSiActionFunc actionFunc; /* 0x1A8 */ char unk[0x64]; /* 0x20C */ float* unk_20C; } EnSi;...
in1tiate/OoT3D_Randomizer
code/include/z3D/z3Dvec.h
#ifndef _Z3DVEC_H_ #define _Z3DVEC_H_ #include <stdint.h> typedef float f32; typedef int8_t s8; typedef uint8_t u8; typedef int16_t s16; typedef uint16_t u16; typedef int32_t s32; typedef uint32_t u32; typedef struct { f32 x, y; } Vec2f; typedef struct { f32 x, y, z; } Vec3f; typedef struct { s16 x, y,...
in1tiate/OoT3D_Randomizer
code/src/poe_collector.c
#include "z3D/z3D.h" #include "settings.h" u32 EnGb_CheckPoints(u32 points) { return (points == (gSettingsContext.bigPoeTargetCount * 100)); } u16 EnGb_GetFirstTextbox(void) { return 0x9080 + gSettingsContext.bigPoeTargetCount; }
in1tiate/OoT3D_Randomizer
code/src/malon.c
#include "malon.h" #define EnMa1_Init_addr 0x18C334 #define EnMa1_Init ((ActorFunc)EnMa1_Init_addr) void EnMa1_rInit(Actor* thisx, GlobalContext* globalCtx) { if (gSaveContext.eventChkInf[0x1] & 0x0010) { //If Talon has fled the castle... gSaveContext.eventChkInf[0x1] |= 0x0040; //...set "Invited to Sing...
in1tiate/OoT3D_Randomizer
code/src/songs_visual_effects.c
#include "z3D/z3D.h" #include "settings.h" #include "songs_visual_effects.h" #define OceffWipe_Update_addr 0x256158 #define OceffWipe_Update ((ActorFunc)OceffWipe_Update_addr) #define OceffWipe2_Update_addr 0x2714B8 #define OceffWipe2_Update ((ActorFunc)OceffWipe2_Update_addr) #define OceffWipe3_Update_addr 0x27181C...
in1tiate/OoT3D_Randomizer
code/src/title_screen.h
#ifndef _TITLE_SCREEN_H_ #define _TITLE_SCREEN_H_ #include "z3D/z3D.h" typedef struct { Actor actor; SkeletonAnimationModel* logoModel; SkeletonAnimationModel* fireModel; SkeletonAnimationModel* copyrightModel; char unk_1B0[0x30]; } EnMag; //size 0x1E0; void EnMag_rInit(Actor* thisx, GlobalContex...
in1tiate/OoT3D_Randomizer
code/src/bowling_lady.c
<reponame>in1tiate/OoT3D_Randomizer<gh_stars>100-1000 #include "z3D/z3D.h" #include "settings.h" u32 EnBomBowlMan_CheckExplosives(void) { if (gSettingsContext.bombchusInLogic) { return (gSaveContext.items[ItemSlots[ITEM_BOMBCHU]] != ITEM_NONE); } else { return (((gSaveContext.upgrades >> 3) & 0...
in1tiate/OoT3D_Randomizer
code/src/door.c
<reponame>in1tiate/OoT3D_Randomizer<filename>code/src/door.c #include "z3D/z3D.h" #include "models.h" #include "settings.h" #define DoorShutter_Init_addr 0x2453E0 #define DoorShutter_Init ((ActorFunc)DoorShutter_Init_addr) void DoorShutter_rInit(Actor* thisx, GlobalContext* globalCtx) { // In Treasure Chest Shop ...
in1tiate/OoT3D_Randomizer
code/include/utils.h
/* * This file is part of Luma3DS * Copyright (C) 2016-2019 <NAME>, TuxSH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your opti...
in1tiate/OoT3D_Randomizer
code/src/actor.c
<filename>code/src/actor.c<gh_stars>0 #include "z3D/z3D.h" #include "owl.h" #include "item00.h" #include "heart_container.h" #include "token.h" #include "item_etcetera.h" #include "en_ex_item.h" #include "demo_effect.h" #include "business_scrubs.h" #include "ocarina.h" #include "cow.h" #include "string.h" #include "gan...
in1tiate/OoT3D_Randomizer
code/src/common.c
<gh_stars>0 #include "common.h" #include "settings.h" // From section 5 of https://www.cs.ubc.ca/~rbridson/docs/schechter-sca08-turbulence.pdf u32 Hash(u32 state) { // Added salt based on the seed hash so traps in the same location in different seeds can have different effects u32 salt = 0; for (int i = 0;...
in1tiate/OoT3D_Randomizer
code/src/grotto.h
#ifndef _GROTTO_H_ #define _GROTTO_H_ #include "z3D/z3Dvec.h" #define NUM_GROTTOS 33 #define NOT_GROTTO 0 #define GROTTO_LOAD 1 #define GROTTO_RETURN 2 typedef struct { s16 entranceIndex; s8 content; s8 scene; } GrottoLoadInfo; typedef struct { s16 entranceIndex; s8 room; s16 angle; Vec3...
in1tiate/OoT3D_Randomizer
code/src/gerudos.h
<filename>code/src/gerudos.h #ifndef _GERUDO_ARCHERY_MANAGER_H_ #define _GERUDO_ARCHERY_MANAGER_H_ #include "z3D/z3D.h" typedef enum { /* 0x00 */ GE1_TYPE_GATE_GUARD, /* 0x01 */ GE1_TYPE_GATE_OPERATOR, /* 0x02 */ GE1_TYPE_EXTRA_GATE_OPERATOR, //Custom new guard type for the extra gate opener /* 0x04 *...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_en_dns.h
#ifndef _EN_DNS_H_ #define _EN_DNS_H_ #include "z3D/z3D.h" struct EnDns; typedef u32 (*EnDnsPurchaseableCheck)(struct EnDns*); typedef void (*EnDnsSetRupeesAndFlags)(struct EnDns*); typedef struct { /* 0x00 */ s16 itemPrice; /* 0x02 */ u16 itemAmount; /* 0x04 */ s32 getItemID; /* 0x08 ...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_en_ex_item.h
<gh_stars>100-1000 #ifndef _EN_EX_ITEM_H_ #define _EN_EX_ITEM_H_ #include "z3D/z3D.h" typedef struct EnExItem { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0x30]; } EnExItem; // size 0x1D4 #endif //_EN_EX_ITEM_H_
in1tiate/OoT3D_Randomizer
code/src/kokiri.c
<reponame>in1tiate/OoT3D_Randomizer #include "z3D/z3D.h" #include "settings.h" u32 EnKo_CheckOpenForest(void) { if ((gSettingsContext.openForest == OPENFOREST_OPEN) || (gSettingsContext.openForest == OPENFOREST_CLOSED_DEKU) || (gSaveContext.eventChkInf[0] & 0x80)) { return 1; } else { return 0;...
in1tiate/OoT3D_Randomizer
code/src/spoiler_data.h
#ifndef _SPOILER_DATA_H_ #define _SPOILER_DATA_H_ #include "../include/z3D/z3D.h" #define SPOILER_SPHERES_MAX 50 #define SPOILER_ITEMS_MAX 512 #define SPOILER_STRING_DATA_SIZE 16384 typedef enum { SPOILER_CHK_NONE, SPOILER_CHK_ALWAYS_COLLECTED, SPOILER_CHK_CHE...
in1tiate/OoT3D_Randomizer
code/include/z3D/actors/z_item_b_heart.h
#ifndef _ITEM_B_HEART_H_ #define _ITEM_B_HEART_H_ #include "z3D/z3D.h" typedef struct ItemBHeart { /* 0x000 */ Actor actor; /* 0x1A4 */ char unk_1A4[0x24]; } ItemBHeart; // size 0x1C8 #endif //_ITEM_B_HEART_H_
in1tiate/OoT3D_Randomizer
code/src/well_stone.h
<reponame>in1tiate/OoT3D_Randomizer #ifndef _WELL_STONE_H_ #define _WELL_STONE_H_ #include "z3D/z3D.h" void BgSpot01Idosoko_rInit(Actor* thisx, GlobalContext* globalCtx); #endif
in1tiate/OoT3D_Randomizer
code/src/rupee_trap.h
<filename>code/src/rupee_trap.h #ifndef _RUPEE_TRAP_H_ #define _RUPEE_TRAP_H_ #include "z3D/z3D.h" void EnExRuppy_rUpdate(Actor* thisx, GlobalContext* globalCtx); #endif //_RUPEE_TRAP_H_
in1tiate/OoT3D_Randomizer
code/src/songs_visual_effects.h
#ifndef _SONGS_VISUAL_EFFECTS_ #define _SONGS_VISUAL_EFFECTS_ #include "z3D/z3D.h" void OceffWipe_rUpdate(Actor* thisx, GlobalContext* globalCtx); void OceffWipe2_rUpdate(Actor* thisx, GlobalContext* globalCtx); void OceffWipe3_rUpdate(Actor* thisx, GlobalContext* globalCtx); void OceffWipe4_rUpdate(Actor* thisx, Glo...
in1tiate/OoT3D_Randomizer
code/src/chest_minigame.h
<filename>code/src/chest_minigame.h #ifndef _CHEST_MINIGAME_H_ #define _CHEST_MINIGAME_H_ #include "z3D/z3D.h" void EnTakaraMan_rInit(Actor* thisx, GlobalContext* globalCtx); void EnChanger_rInit(Actor* thisx, GlobalContext* globalCtx); #endif //_CHEST_MINIGAME_H_
in1tiate/OoT3D_Randomizer
code/src/twinrova.c
<filename>code/src/twinrova.c #include "z3D/z3D.h" #include "twinrova.h" #define Boss_Tw_Init_addr 0x1A7E18 #define Boss_Tw_Init ((ActorFunc)Boss_Tw_Init_addr) #define Boss_Tw_Update_addr 0x1EF880 #define Boss_Tw_Update ((ActorFunc)Boss_Tw_Update_addr) #define Boss_Tw_Draw_addr 0x1EEDF0 #define Boss_Tw_Draw ((ActorF...
in1tiate/OoT3D_Randomizer
code/include/3ds/synchronization.h
<reponame>in1tiate/OoT3D_Randomizer /** * @file synchronization.h * @brief Provides synchronization locks. */ #pragma once #include "3ds/sys/lock.h" #include "svc.h" /// A light lock. typedef _LOCK_T LightLock; /// A recursive lock. typedef _LOCK_RECURSIVE_T RecursiveLock; /// A light event. typedef struct { s32...
in1tiate/OoT3D_Randomizer
code/src/king_zora.h
#ifndef _KING_ZORA_H_ #define _KING_ZORA_H_ #include "z3D/z3D.h" void EnKz_rUpdate(Actor* thisx, GlobalContext* globalCtx); #endif //_KING_ZORA_H_
in1tiate/OoT3D_Randomizer
code/src/icetrap.h
<filename>code/src/icetrap.h #ifndef _ICETRAP_H_ #define _ICETRAP_H_ #include "z3D/z3D.h" void IceTrap_Push(u32 key); void IceTrap_Give(void); u32 IceTrap_IsPending(void); void IceTrap_Update(void); #endif //_ICETRAP_H_
haraki/FolderModel
foldermodel.h
<reponame>haraki/FolderModel<filename>foldermodel.h #ifndef DIRMODEL_H #define DIRMODEL_H #include <QAbstractTableModel> #include <QItemSelectionModel> #include <QFileIconProvider> #include <QFileSystemWatcher> #include <QDir> #include <QFont> namespace Farman { enum class SectionType : int { Unknown = -1, ...
haraki/FolderModel
example/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } namespace Farman { class FolderModel; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private Q_S...
jiangjiatao/ModuleJYL
Example/ModuleJYL/JViewController.h
// // JViewController.h // ModuleJYL // // Created by <EMAIL> on 11/19/2019. // Copyright (c) 2019 <EMAIL>. All rights reserved. // @import UIKit; @interface JViewController : UIViewController @end
jiangjiatao/ModuleJYL
ModuleJYL/Classes/Jyl.h
// // Jyl.h // ModuleJYL_Example // // Created by softium on 2019/11/19. // Copyright © 2019 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface Jyl : NSObject @end NS_ASSUME_NONNULL_END
JM-Ski/Airport
include/vectorMaths.h
#pragma once #include <SFML\Graphics.hpp> //!This class is used to peroform mathematic calculations. class VectorMaths { public: /*!Constructor.*/ VectorMaths(){}; /*Destructor*/ ~VectorMaths(){}; /*Cross product*/ /**@param first = First vector. *@param second = Second vector.*/ sf::Vector3f crossProduct(s...
JM-Ski/Airport
include/scene.h
<filename>include/scene.h #pragma once #include "headers.h" #include "model.h" #include "camera.h" #include "lighting.h" #include <array> #include "modelExtractor.h" #include "material.h" //!This class is used to render a scene. class Scene { private: /*!Screen width.*/ int iScreenWidth; /*!Screen height.*/ int...