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
@leoetlino
leoetlino / MenuBuilder.php
Last active December 16, 2015 11:09 — forked from nielsmouthaan/MenuBuilder.php
Modified to add support for submenus.
<?php
namespace Acme\HelloBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class MenuBuilder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)
--- s-orig 2016-12-04 22:29:36.932147780 +0100
+++ s-merg 2016-12-04 22:29:40.996006532 +0100
@@ -1,11 +1,30 @@
+@16@JAISe::getNumChild(void) const JAudio2.a JAISe.o
+@220@JAUSectionHeap::~JAUSectionHeap(void) JAudio2.a JAUSectionHeap.o
+@4@JASSimpleWaveBank::~JASSimpleWaveBank(void) JAudio2.a JASSimpleWaveBank.o
+__a1_20_status_report wpad.a WPADHIDParser.o
+__a1_21_user_data wpad.a WPADHIDParser.o
+__a1_22_ack wpad.a WPADHIDParser.o
+__a1_30_data_type wpad.a WPADHIDParser.o
// @copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
template <typename F, typename ...G>
struct overload_t
: overload_t<F>::type
, overload_t<G...>::type
{
using type = overload_t;
@leoetlino
leoetlino / LevelSensor.yaml
Created April 26, 2018 07:26
The Legend of Zelda: Breath of the Wild - Enemy and weapon scaling information (1.0.0)
enemy:
- actors:
- {name: Enemy_Bokoblin_Junior, value: 4.0}
- {name: Enemy_Bokoblin_Middle, value: 16.0}
- {name: Enemy_Bokoblin_Senior, value: 32.0}
- {name: Enemy_Bokoblin_Dark, value: 48.0}
species: BokoblinSeries
- actors:
- {name: Enemy_Moriblin_Junior, value: 11.0}
- {name: Enemy_Moriblin_Middle, value: 37.0}
06:16:923 Core/IOS/Device.cpp:126 E[IOS_ES]: ===== Unknown IOCtlV - /dev/es (fd 6) - IOCtlV 0x31 (3 in, 0 io)
06:16:923 Core/IOS/Device.cpp:131 E[IOS_ES]: in[0] (size=0x14):
000000: 8d 58 19 75 d7 ba 15 3b 98 dd aa 75 c7 8b a7 f4 .X.u...;...u....
000010: 8b 18 47 df ..G.
06:16:923 Core/IOS/Device.cpp:131 E[IOS_ES]: in[1] (size=0x3c):
000000: 00 14 f8 05 ce f5 c9 89 49 2a 52 f2 67 a2 c6 0a ........I*R.g...
000010: bf e8 cb d1 7a a5 e0 92 7a b7 3f 7f c1 1c 00 4e ....z...z.?....N
000020: 9e ea 07 d4 08 d0 06 cc 49 91 35 2b e9 1c 7c da ........I.5+..|.
000030: 6a 60 c9 a4 23 21 4e 0f f2 00 64 72 j`..#!N...dr
@leoetlino
leoetlino / fn.c
Created May 20, 2018 18:18
ES_VerifySign (IOS59)
int __fastcall ES_VerifySign(const u8 *hash, u32 hash_size, const u8 *ecc_signature, const u8 *certs, u32 certs_size)
{
uint8_t *sha1; // r10
uint8_t *hash_ctx; // r8
IOSReturnCode ret; // r4
Cert *_certs; // r0 MAPDST
uint32_t inputSize; // r5
int ap_handle; // [sp+20h] [bp-84h]
int ng_cert_handle; // [sp+24h] [bp-80h]
const char *ng_issuer; // [sp+28h] [bp-7Ch]
ID Type Parameter type
0 bool agl::utl::Parameter<bool>
1 f32 agl::utl::Parameter<float>
2 int agl::utl::Parameter<int>
3 vec2 agl::utl::Parameter<sead::Vector2<float>>
4 vec3 agl::utl::Parameter<sead::Vector3<float>>
5 vec4 agl::utl::Parameter<sead::Vector4<float>>
6 color agl::utl::Parameter<sead::Color4f>
7 string32 agl::utl::Parameter&gt;
__int64 __fastcall sub_710111AB00(void *this, __int64 x1_0, __int64 a3)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
v3 = a3;
v5 = (_QWORD *)(a3 + 0x28);
v6 = x1_0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a3 + 0x28) + 0x18LL))(a3 + 0x28);
(*(void (__fastcall **)(_QWORD *))(*v5 + 0x18LL))(v5);
v7 = (char *)v5[1];
if ( TriggerParam::getFlagByKey(*this->param.param1, &a2, &a3, this->param.x) )
{
if ( TriggerParam::getFlagByKey(*this->param.param1, ((char *)&a2 + 1), &v22, this->param.x) )
{
if ( TriggerParam::getFlagByKey(*this->param.param1, ((char *)&a2 + 2), &v23, this->param.x) )
{
if ( TriggerParam::getFlagByKey(*this->param.param1, ((char *)&a2 + 3), &v24, this->param.x) )
{
if ( TriggerParam::getFlagByKey(*this->param.param1, &v16, &v25, this->param.x) )
{
// utility functions (inlined in the actual executable)
void GameDataMgr::setFlag(const sead::SafeString& flagName, bool value)
{
if (this->paramB.changeOnlyOnce)
return;
if (!TriggerParam::setBoolByKey(*this->paramB.param1, value, flag_name, this->paramB.x, 1LL, 1))
return;
if (!this->paramB.propagateParam1Changes)
return;
TriggerParam::setBoolByKey(*this->paramB.param, value, flag_name, this->paramB.x, 1LL, 1);