Skip to content

Instantly share code, notes, and snippets.

View roblabla's full-sized avatar
🌅
Kernel Dev'ing.

Robin Lambertz roblabla

🌅
Kernel Dev'ing.
View GitHub Profile
@roblabla
roblabla / Loader_1_0_0.idc
Created September 17, 2019 14:45 — forked from SciresM/Loader_1_0_0.idc
IDCs for the Nintendo Switch's "Loader" sysmodule.
This file has been truncated, but you can view the full file.
#define UNLOADED_FILE 1
#include <idc.idc>
static main(void)
{
// set 'loading idc file' mode
set_inf_attr(INF_GENFLAGS, INFFL_LOADIDC|get_inf_attr(INF_GENFLAGS));
GenInfo(); // various settings
Segments(); // segmentation
Enums(); // enumerations
@roblabla
roblabla / kernel_any.py
Last active February 7, 2019 19:05 — forked from TuxSH/kernel50.py
Kernel 5.0/6.0/7.0 loader
# Copyright 2017 Reswitched Team
#
# Permission to use, copy, modify, and/or distribute this software for any purpose with or
# without fee is hereby granted, provided that the above copyright notice and this permission
# notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
# THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
# DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
#pragma once
#include "vendor/gsl-lite/include/gsl.hpp"
#include <cstdint>
#include <array>
#include <stdexcept>
#include <iostream>
template<std::size_t BufSize>
class buffer_window : public gsl::span<std::uint8_t> {
gsl::span<std::uint8_t> backing_buffer;
#define UNLOADED_FILE 1
#include <idc.idc>
static main(void)
{
// set 'loading idc file' mode
set_inf_attr(INF_GENFLAGS, INFFL_LOADIDC|get_inf_attr(INF_GENFLAGS));
GenInfo(); // various settings
Segments(); // segmentation
Enums(); // enumerations
diff --git a/usefulscripts/dumpModules.js b/usefulscripts/dumpModules.js
index a382369..d0edbdf 100644
--- a/usefulscripts/dumpModules.js
+++ b/usefulscripts/dumpModules.js
@@ -67,7 +67,7 @@ function dumpModule(module, loader, name) {
utils.log("stage1, getting webkit ldr:ro handle");
//We are reusing WebKit's ldr:ro session
-var ldrro_mng_ptr = utils.add2(sc.mainaddr, 0x955558);
+var ldrro_mng_ptr = utils.add2(sc.mainaddr, 0x95D1E8);
@roblabla
roblabla / pom.xml
Created January 9, 2014 22:14 — forked from mooman219/pom.xml
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<bukkit.version>1.6.4-R2.1-SNAPSHOT</bukkit.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@roblabla
roblabla / basic.scala
Last active December 24, 2015 05:39 — forked from jrk/basic.scala
Fix, use head instead of first.
# A tiny DSL implementation for a minimal subset of BASIC in Scala
# Via http://www.nabble.com/-scala--ease-of-making-DSLs-in-Scala---nobody-cares-to22450638.html
class BasicClass {
abstract sealed class BasicLine
case class PrintLine(num: Int, s: String) extends BasicLine
case class GotoLine(num: Int, to: Int) extends BasicLine
val lines = new scala.collection.mutable.HashMap[Int, BasicLine]
case class linebuilder(num: Int) {
def GOTO(to: Int) = lines(num) = GotoLine(num, to)