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
---@param code integer | |
function cp2seq(code) | |
if code <= 0x7F then | |
-- 0xxxxxxx | |
return string.char(code) | |
elseif code <= 0x7FF then | |
-- 110xxxxx 10xxxxxx | |
return string.char( | |
0xC0 + math.floor(code / 0x40), | |
0x80 + code % 0x40) |
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
<?php | |
$ur_skill_reversemap=[ | |
"Princess" => "Smile", | |
"Angel" => "Pure", | |
"Empress" => "Cool" | |
]; | |
// It expects English center skill. | |
function generate_center_description($str) { | |
global $ur_skill_reversemap; |
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
# CardInstall.ps1 | |
<# | |
Script to add all cards to database as .card files. | |
The specification of the .card file can be found here: | |
(some_link) | |
#> | |
# Enumeration definition | |
$rarityEnum=@{N=0;R=1;SR=2;UR=3} | |
$attributeEnum=@{Smile=0;Pure=1;Cool=2;All=3} |
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
// HonokaMiku.cpp | |
// Loads SIF libGame.so and execute it's decrypt function | |
// 10/15/2015: JP is now supported. Requires SIF JP v2.0.5 x86 libGame.so | |
#if !defined(_M_IX86) && !defined(__i386__) | |
#error "Only x86 targets are supported!" | |
#endif | |
#include <cstdlib> |
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 <iostream> | |
#include <string> | |
#include <cstdarg> | |
#include <png.h> | |
using namespace std; | |
// Prints message in stderr and exit program in release build. | |
// In debug build, it trigger debug breakpoint instead. | |
void failexit(const char* file,const char* msg) { |
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
__unused = #string -- This is a Makefile which is also executable by Lua | |
__unused = #string --[[ | |
#Your Makefile script starts here | |
default: | |
@echo "Hello!" | |
#Your Makefile script ends here | |
ifeq (0,1) | |
__unused = #string ]]-- | |
-- Your lua script starts here |
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
local stringstream = {} | |
stringstream.__index = stringstream | |
function stringstream.create(str) | |
local out = setmetatable({}, stringstream) | |
out.buffer = str or "" | |
out.pos = 0 | |
out.__index = stringstream | |
return out |
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
-- Playground FLSH asset dumper. | |
-- It does not allow you to make new FLSH file!!! | |
local arg = {...} | |
local target_input = arg[1] | |
if target_input == nil then | |
print("Usage: lua flsh_dumper.lua <flsh path>") | |
print("It does not allow you to make new FLSH file!!!") | |
return 1 |
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 <cassert> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <exception> | |
#include <stdexcept> | |
#include "HonokaMiku-4.0.2/DecrypterContext.h" | |
using namespace HonokaMiku; | |
class asteria_decrypter: public V2_Dctx |
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
// Show current playing user tracks when F7 is pressed | |
// Miku AuahDark <[email protected]> | |
{$CLEO .cs3} | |
{$VERSION 3.1.0027} | |
{ | |
Reserved Variables: | |
0@ = LoadLibrary("msvcrt") | |
1@ = GetProcAddress(0@,"calloc") |
OlderNewer