Skip to content

Instantly share code, notes, and snippets.

@infval
infval / emuparadise.download.user.js
Last active December 19, 2024 04:03
emuparadise.me download workaround (Most games + Sega Dreamcast, Books/Comics/Guides/Magazines)
// ==UserScript==
// @name EmuParadise Download Workaround
// @version 1.2.3
// @description Replaces the download button link with a working one
// @author infval (Eptun)
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==
// https://www.reddit.com/r/Piracy/comments/968sm6/a_script_for_easy_downloading_of_emuparadise_roms/
#-*- coding: utf-8 -*-
#!/usr/bin/env python3
"""
Pursuit Force: Extreme Justice (PSP)
VDB/VIB extractor
VAG без заголовка
В MFAudio аудиофайлы можно задать как:
@infval
infval / decode_font.py
Created February 3, 2019 09:25
Font decoder/encoder - Splinter Cell Chaos Theory (N-Gage)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
from PIL import Image, ImageDraw
def decode(filename):
print(filename)
with open(filename, "rb") as f:
b = f.read()
@infval
infval / extractor_texture_mgf_SH2_PS2.py
Last active August 25, 2022 21:58
[PS2] Silent Hill 2 PIC.IMG extractor (unpacker/packer)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import math
import argparse
from collections import OrderedDict
from PIL import Image, ImageDraw
@infval
infval / get_explorer_search_history.py
Created September 22, 2019 23:38
[Win7] Explorer search history to file
#!/usr/bin/env python3
import winreg
sub_key = r"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\WordWheelQuery"
history = []
with winreg.OpenKey(winreg.HKEY_CURRENT_USER, sub_key) as key:
order, regtype = winreg.QueryValueEx(key, "MRUListEx")
ind = 0
while order[ind] != 0xFF:
@infval
infval / yuzu_bmz2_fix.py
Last active April 18, 2020 05:48
yuzu | Color fix for 'Blaster Master Zero 2' [Switch]
#!/usr/bin/env python3
"""
Dirty color fix for 'Blaster Master Zero 2' [Switch]
OpenGL ONLY!
Tested version: yuzu 228
"""
import sys
# \src\video_core\renderer_opengl\renderer_opengl.cpp
shader_text = b"void main() {\n color = vec4(texture(color_texture, frag_tex_coord).rgb, 1.0f);\n}"
@infval
infval / extract_hana_to_otome.py
Created November 2, 2019 19:57
[PS2] Hana to Otome ni Shukufuku o: Harukaze no Okurimono | extractor
#!/usr/bin/env python3
import re
import pathlib
from struct import unpack
pathlib.Path('./EXTRACTED').mkdir(exist_ok=True)
with open("SLPM_552.63", "rb") as f:
bexe = f.read()
@infval
infval / sor2_comp.py
Last active December 29, 2019 03:26
[SMD] Streets of Rage 2 tileset (de)compressor (extractor, unpacker)
#!/usr/bin/env python3
import io
import struct
from pathlib import Path
def decompress(inpt, artAddress):
inpt.seek(artAddress)
output = io.BytesIO()
@infval
infval / Toejam_&_Earl_in_Panic_on_Funkotron.lua
Last active January 3, 2020 20:31
[SMD] Toejam & Earl in Panic on Funkotron - Moving Characters [BizHawk/Lua]
local player1_x = 0x8DDC
local player1_y = 0x8DE4
local player2_x = 0x8E5C
local player2_y = 0x8E64
local player_x = player1_x
local player_y = player1_y
local step = 1
local prev_keys = {}
@infval
infval / nes_coop.md
Created January 27, 2020 22:25
[NES] Кооперативные игры
Название Жанр Экран Заметки Скриншоты
Balloon Fight Platformer image image
Battle City Shooter image image
Bubble Bobble Platformer image image image
Cabal Shooter image image
CJ's Elephant Antics Platfo