Skip to content

Instantly share code, notes, and snippets.

@jugeeya
jugeeya / Dockerfile
Created October 12, 2020 21:14
skyline-rs plugin VS Code Container setup files
FROM clux/muslrust:stable
RUN cargo install --git https://github.com/jam1garner/cargo-skyline
RUN git clone https://github.com/jam1garner/rust-std-skyline-squashed
RUN cargo install xargo
RUN cd /volume/rust-std-skyline-squashed && cargo update
@jugeeya
jugeeya / newtwork_setting_parameter.diff
Created August 5, 2020 22:32
newtwork_setting_parameter.prc 8.0.0-8.1.0 diff
diff --git a/network_setting_parameter.xml b/network_setting_parameter_810.xml
index 2b28b98..3047c69 100644
--- a/network_setting_parameter.xml
+++ b/network_setting_parameter_810.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<struct>
- <list size="267" hash="root">
+ <list size="425" hash="root">
<struct index="0">
@jugeeya
jugeeya / Cargo.toml
Last active July 13, 2020 23:44
ACMD Example
[package]
name = "acmd_test"
version = "0.1.0"
authors = ["jam1garner <jam1.mcleod@hotmail.com>"]
edition = "2018"
[package.metadata.skyline]
titleid = "01006A800016E000"
[lib]
@jugeeya
jugeeya / nvnGlobalFrameCounter.rs
Last active June 21, 2020 03:01
GlobalFrameCounter
macro_rules! c_str {
($l:tt) => { [$l.as_bytes(), "\u{0}".as_bytes()]
.concat()
.as_ptr(); }
}
extern "C" {
#[link_name = "\u{1}nvnBootstrapLoader"]
pub fn nvnBootstrapLoader(arg: *const c_char) -> fn(*mut c_void, *const c_char) -> fn(*mut c_void, *mut c_void, *mut c_void);
}
@jugeeya
jugeeya / FUN_7101effcd0.c
Created June 4, 2020 19:56
SSBU string/value binding funcs (7.0.0)
void FUN_7101effcd0(longlong param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)
{
undefined8 uVar1;
undefined *puVar2;
undefined8 uVar3;
longlong local_78;
longlong local_70;
int local_68;
>--------------------------------------<
fox_status_script
SPECIAL_N__STATUS_MAIN
100015000
>--------------------------------------<
Block 100015000 type 1, size 68, 7 tokens, creation 0:
10001502c SUB_BRANCH args b:10001ddc0
100015040 lib::L2CValue::L2CValue(int) args 0x2da (FIGHTER_KIND_WOLF)
10001504c lib::L2CValue::operator==(lib::L2CValue const&) const
>--------------------------------------<
fox_status_script
SPECIAL_S__STATUS_MAIN
100014230
>--------------------------------------<
Block 100014230 type 1, size 32c, 66 tokens, creation 0:
10001426c lib::L2CValue::L2CValue(int) args 0x13ee (FIGHTER_FOX_ILLUSION_STATUS_WORK_ID_FLAG_CONTINUE)
100014274 lib::L2CValue::as_integer() const args 0x13ee
100014284 app::lua_bind::WorkModule__off_flag_impl(app::BattleObjectModuleAccessor*, int)
@jugeeya
jugeeya / CATCH__STATUS_PRE.txt
Created May 30, 2020 00:28
CATCH__STATUS_PRE.txt
>--------------------------------------<
fighter_common_status_script
CATCH__STATUS_PRE
100305ff0
>--------------------------------------<
Block 100305ff0 type 1, size 4c, 4 tokens, creation 0:
100306010 lib::L2CValue::L2CValue(int) args 0x0
100306020 SUB_BRANCH args b:1004d7350
100306028 lib::L2CValue::~L2CValue()
@jugeeya
jugeeya / fox_win.txt
Created May 29, 2020 16:24
FIGHTER_STATUS_KIND_WIN__LUA_SCRIPT_STATUS_FUNC_STATUS_MAIN
>--------------------------------------<
fox_status_script
FIGHTER_STATUS_KIND_WIN__LUA_SCRIPT_STATUS_FUNC_STATUS_MAIN
1000178f0
>--------------------------------------<
Block 1000178f0 type 1, size 88, 11 tokens, creation 0:
10001791c lib::L2CValue::L2CValue(int) args 0x540 (FIGHTER_KIND_FALCO)
100017924 lib::L2CAgent::clear_lua_stack()
100017930 lib::L2CAgent::push_lua_stack(lib::L2CValue const&) args 0x2, 0x540
@jugeeya
jugeeya / lib.rs
Last active May 7, 2020 01:28
status_Catch_Main replacement
#![feature(proc_macro_hygiene)]
use smash::hash40;
use smash::lib::lua_const::{*};
use smash::lib::{self, L2CAgent, L2CValue};
use smash::app;
use smash::app::{lua_bind::*, sv_animcmd, sv_system};
use skyline::libc::{size_t, c_int, c_void, strlen};
use smash::Result;
use skyline::nro::{self, NroInfo};