Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#v1.3
VOL="";
CONF="$HOME/.switch-eject.conf"
usage() {
echo "Usage: $0 [-c] [-e]
-c: 'clear volume data'
@rdmrocha
rdmrocha / nsp_version_patcher.cpp
Last active August 1, 2018 15:23
NSP Version patcher
#include <boost/iostreams/device/mapped_file.hpp>
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <iostream>
#include <cstring>
#include <inttypes.h>
/***** TAKEN AND ADAPTED FROM HACTOOL SOURCE CODE - BEGIN *****/
#define MAGIC_PFS0 0x30534650
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Shader;
// enables hardware accelerated rounded corners
// original idea here : http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/