Skip to content

Instantly share code, notes, and snippets.

@ABelliqueux
ABelliqueux / liblto.patch
Last active January 24, 2022 11:36
Gendev 0.7.1 makefile.gen liblto patch
--- /opt/gendev/sgdk/mkfiles/makefile.gen 2022-01-24 12:20:29.344222685 +0100
+++ /opt/gendev/sgdk/mkfiles/makefile.gen 2022-01-24 12:20:42.557612093 +0100
@@ -147,7 +147,7 @@
$(SIZEBND) out/rom.bin -sizealign 131072
out/symbol.txt: out/rom.out
- $(NM) --plugin=liblto_plugin-0.dll -n out/rom.out > out/symbol.txt
+ $(NM) --plugin=libLTO.so -n out/rom.out > out/symbol.txt
out/rom.out: out/sega.o out/cmd_ $(LIBMD)
@ABelliqueux
ABelliqueux / PKGBUILD
Last active February 7, 2022 13:30
Gendev 0.7.1 AUR PKGBUILD
# Maintainer: Vinicius Correa <vinicius dot correa at zoho dot com>
pkgname=gendev
pkgver=0.7.1
pkgrel=1
pkgdesc="Genesis development environment for Linux"
arch=('any')
url="https://github.com/kubilus1/${pkgname}"
license=('BSD')
depends=('texinfo' 'jdk8-openjdk')
options=(!strip)
@ABelliqueux
ABelliqueux / rsd-blender280.py
Created July 30, 2021 08:10
Blender RSD 279-280 equivalent
>>> obj = C.object
>>> print(obj)
<bpy_struct, Object("Cube")>
>>> mesh = obj.to_mesh()
>>> print(mesh)
@ABelliqueux
ABelliqueux / io_export_rsd.py
Created July 30, 2021 08:08
Lameguy64/-Blender-2.80-RSD-Plugin
"""
This script exports PlayStation SDK compatible RSD,PLY,MAT files from Blender.
Supports normals, colors and texture mapped triangles.
Only one mesh can be exported at a time.
"""
import os
import bpy
from bpy.props import (CollectionProperty,
@ABelliqueux
ABelliqueux / PSXasm2Gas.md
Created July 20, 2021 14:44
Regexp rules to convert psx asm to gas syntax

replace symbols declarations

symbol equ value becomes

.equ symbol,value

replace rXX wit $XX

s\ r([0-9]{1,2}) \ \$\1