This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#v1.3 | |
VOL=""; | |
CONF="$HOME/.switch-eject.conf" | |
usage() { | |
echo "Usage: $0 [-c] [-e] | |
-c: 'clear volume data' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |