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
[BITS 32] | |
PORT equ 0x3F8 | |
PNP_IDX_EN equ 0x30 | |
PNP_IDX_IO0 equ 0x60 | |
NUVOTON_ENTRY_KEY equ 0x87 | |
NUVOTON_EXIT_KEY equ 0xAA | |
PNP_DEV_PORT equ 0x2E |
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
//------------------------------------------------ | |
//--- 010 Editor v14.0.1 Binary Template | |
// | |
// File: vfxb.bt | |
// Authors: segfault-bilibili | |
// Version: 0.1 | |
// Purpose: Decode *.vfxb files (and decompessed LZ4 data) in Magia Record's resource/image_native/mini/anime_v2 | |
// Category: Game | |
// File Mask: *.vfxb | |
// ID Bytes: 64 69 75 47 |
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
private static crc32(data: fsPromises.FileHandle | Uint8Array): Promise<number> { | |
return new Promise((resolve, reject) => { | |
let inStream: stream.Readable; | |
try { | |
if (data instanceof Uint8Array) { | |
inStream = new stream.PassThrough().end(data); | |
} else { | |
inStream = data.createReadStream({ start: 0, autoClose: false, highWaterMark: this.chunkSize }); | |
} | |
} catch (e) { |
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 | |
# workaround audio bug since Magia Record 3.0.1 | |
# author: segfault-bilibili | |
# English README | |
# | |
# Since Magia Record 3.0.1, there appears to be a bug affecting minor fraction of players. | |
# | |
# Such bug makes the game audio (including BGM, sound effects etc) sound strange: | |
# (1) the pitch sounds to be lower than normal; |
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
const fs = require("fs"); | |
const path = require("path"); | |
// workaround audio bug since Magia Record 3.0.1 | |
// author: segfault-bilibili | |
// English README | |
// | |
// Since Magia Record 3.0.1, there appears to be a bug affecting minor fraction of players. | |
// |
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
The original issue was that some applications (ex. packers) launch the JNI/native code too fast for a person | |
to attach an IDA Pro instance to the process. The original solution was wrapping the jni code with your own | |
"surrogate" application so you could load it slower. | |
New process is to launch the Android/Dalvik activity with the debugger flag; | |
# adb shell am start -D com.play.goo_w/com.android.netservice.MainActivity | |
Which will cause the "Waiting for debugger..." mode to start. This starts the process, allowing you to | |
attach IDA Pro to the process for the native code. |
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
# 这个配置可以让Clash将naiveproxy作为上游代理,尤其是可以利用它的tun模式方便地实现全局透明代理 | |
# 但很显然,必须额外跑一个naiveproxy客户端,不能做到简单拖动Clash配置后立即可用 | |
# 注意:务必按下述示例把naiveproxy服务器的IPv4/v6地址以及域名加入直连规则 | |
mixed-port: 7890 | |
allow-lan: false | |
bind-address: '127.0.0.1' | |
mode: rule | |
log-level: info | |
external-controller: '127.0.0.1:9090' | |
dns: |
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
"use strict"; | |
const path = require('path'); | |
const fs = require("fs"); | |
const scenarioNum = 518320; | |
const outDir = `F:\\scenario_${scenarioNum}`; | |
const startNum = 1, endNum = 20; | |
const suffix = "cyov4"; |
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
#!/system/bin/sh | |
set -e | |
REGEX="[0-9a-f]{72}" | |
SAVED_DEV_ID_FILE="/data/adb/magireco_$2.txt" | |
COCOS_FILE="/data/data/com.aniplex.magireco/shared_prefs/Cocos2dxPrefsFile.xml" | |
DEV_ID_FILE="/data/data/com.aniplex.magireco/files/madomagi/C5XyOsaM.json" | |
UNFINISHED_QUEST_FILE="/data/data/com.aniplex.magireco/files/madomagi/data.bin" | |
check_unfinished_quest() { |
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
var fs = require('fs') | |
function convertSub(jsonobj) { | |
//let result = fs.readFileSync("head.ass"); | |
let result = "[Script Info]\n"; | |
result += "; Script generated by Aegisub 3.2.2\n"; | |
result += "; http://www.aegisub.org/\n"; | |
result += "Title: Default Aegisub file\n"; | |
result += "ScriptType: v4.00+\n"; | |
result += "WrapStyle: 0\n"; |
NewerOlder