Skip to content

Instantly share code, notes, and snippets.

View uyjulian's full-sized avatar

Julian Uy uyjulian

View GitHub Profile
static void section_reorder_hoge()
{
// FIXME: Do we actually need to do this?
{
elf_loader_psegment_t psegment_tmp[ELF_LOADER_MAX_PROGRAM_HEADERS];
memset(psegment_tmp, 0, sizeof(psegment_tmp));
// Calculate output buffer offsets in order of load address
{
int i;
unsigned int kv_count;
podman
podman run --name ubuntu-arm-dev -d --network=host -v /mnt/data:/mnt/data:rw public.ecr.aws/ubuntu/ubuntu:22.04_stable /bin/sleep infinity
podman exec -it ubuntu-arm-dev /bin/bash
sed -i -e 's/^deb/deb [arch=amd64]/g' /etc/apt/sources.list
dpkg --add-architecture arm64
apt-get update
apt-get -y upgrade
apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
apt-get -y install qemu-user qemu-user-static
cat /etc/apt/sources.list | sed -e 's/amd64/arm64/g' | sed -e 's/security\./ports./g' | sed -e 's/archive\./ports./g' | sed -e 's/\/ubuntu\//\/ubuntu-ports\//g' | sed -e 's/# deb-src /deb-src /g' > /etc/apt/sources.list.d/arm64.list
# SPDX-License-Identifier: MIT
# Quick script for changing material
# Run the script with "--help" as the argument for descriptions of these options.
def save_unity_mat(config_struct):
import os
import pathlib
# SPDX-License-Identifier: MIT
# Falcom YamaNeko engine on PSP ISO format extraction.
# Uses the information contained in PSP_GAME/USRDIR/data.lst
# Also recursively unpacks cclm archive/group files
# See also: https://github.com/Trails-Research-Group
import struct
import io
# SPDX-License-Identifier: MIT
# fbxex_bin2json
# usage: /path/to/python3 /path/to/fbxex_bin2json.py /path/to/bg.fbx.bin
# Use with fbxex2gltf to convert to gltf
import sys
import json
import struct

Let's talk about reasons to port Visual Novels to Unity

(Original post: https://www.reddit.com/r/visualnovels/comments/prztxv/lets_talk_about_reasons_to_port_visual_novels_to/ )

It seems like companies are porting what should be a lightweight game into a heavyweight engine, so I'd like to talk a bit more about that.

Licensing cost for the engine (applicable to something with Siglus for instance).

Unity has a licensing cost too, but I can't make a conclusion on whether it is worse or better because it does not appear that the licensing method related to SiglusEngine is published.

import math
def arr_rad_to_deg(a):
for i in range(len(a)):
a[i] = (a[i] / (2 * math.pi)) * 360
def arr_deg_to_rad(a):
for i in range(len(a)):
a[i] = (a[i] / 360) * (2 * math.pi)
# http://www.csn.ul.ie/~caolan/publink/winresdump/winresdump/doc/pefile.html
# Contains a reasonable description of the format.
import sys
import pefile
newdic = {
"Comments" : "hoge",
"FileDescription" : "hoge",
arch/arm/mach-dove/mv_hal_support/mvRules.mk
-T kernel
-A arm
-O linux
-C none
-a 0x00008000
-e 0x00008000
-n YOUR-Linux