Skip to content

Instantly share code, notes, and snippets.

View Langerz82's full-sized avatar

Joshua L Langerz82

View GitHub Profile
@Langerz82
Langerz82 / yabasanshiro_debug_output.txt
Created February 13, 2023 21:01
yabasanshiro_debug_output.txt
Preference: opening /storage/roms/saturn/yabasanshiro/Street Fighter Alpha 2 (USA).chd.config
Preference: getInt Resolution:2
Preference: getInt Rotate screen resolution:0
Preference: getInt Aspect rate:0
Preference: getBool Rotate screen:0
Preference: getBool Use compute shader:0
context renderer string: "Mali-G52"
context vendor string: "ARM"
version string: "OpenGL ES 3.2 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58"
Extentions: GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_EXT_read_format_bgra GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_required_internalformat GL_OES_vertex_array_object GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_OES_fbo_render_m
@Langerz82
Langerz82 / keymapv2.json
Created February 13, 2023 06:09
yabasanshiro - keymap START button not working.
{
"0_Xbox 360 Controller_030000005e0400008e02000001020000": {
"a": {
"id": 0,
"type": "button",
"value": 1
},
"analogl": {
"id": 1,
"type": "axis",
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
@Langerz82
Langerz82 / set_advmame_joy.sh
Last active January 13, 2023 20:03
EmuELEC - set_advmame_joy.sh - DragonRise
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2022-present Joshua L (https://github.com/Langerz82)
# Source predefined functions and variables
. /etc/profile
# Configure ADVMAME players based on ES settings
@Langerz82
Langerz82 / hexToBinUtil.js
Last active January 11, 2023 06:16
Hex to Binary and Binary to Hex Conversion.
var BinToHex = function (uint8array) {
var len = Math.ceil(uint8array.length / 4);
var hex = "";
for (var i=0; i < len; i++) {
j=i*4;
var num = uint8array.slice(j,j+4).join('');
hex += parseInt(num, 2).toString(16).toUpperCase();
}
return hex;
}
@Langerz82
Langerz82 / test.py
Last active January 5, 2023 22:50
EE-bluetooth-agent-test
#!/usr/bin/env python
import time
from bluetool import Bluetooth
if __name__ == "__main__":
bt = Bluetooth()
print('Scanning for available devices for 60 seconds, please wait...')
bt.start_scanning(60)
time.sleep(10)
@Langerz82
Langerz82 / test.py
Last active January 2, 2023 09:26
python test emuelec-bluetooth
#!/usr/bin/env python
import time
import logging
import sys
from bluetool import Bluetooth
logger = logging.getLogger(__name__)
if __name__ == "__main__":
@Langerz82
Langerz82 / coreelec-19.5-dmesg_fb_hdmi
Created December 19, 2022 11:34
dmesg for CoreELEC 19.5 fb hdmi
CoreELEC3:~ # dmesg | grep "fb\|hdmi"
[ 0.000000@0]d Kernel command line: rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive logo=osd1,loaded,0x3d800000,2160p60hz maxcpus=4 vout=2160p60hz,enable hdmimode=2160p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 androidboot.firstboot=0 androidboot.fake_rom_size=16 fake_mem_size=2 jtag=apao quiet androidboot.hardware=amlogic androidboot.logo_mode=0 androidboot.serialno=FB19201334 mac=80:00:ff:05:75:dc androidboot.mac=80:00:ff:05:75:dc androidboot.slot_suffix=_a bootfromsd systemd.show_status=auto
[ 0.000000@0]d fb: osd1
[ 0.000000@0]d fb: loaded
[ 0.000000@0]d fb: 0x3d800000
[ 0.000000@0]d fb: 2160p60hz
[ 0.000000@0]d vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000@0]d fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000@0]d PCI I/O : 0xf
@Langerz82
Langerz82 / gptokeyb.sh
Created September 27, 2022 21:57
EmuELEC - packages/sx05re/tools/sysutils/gptokeyb/package.mk
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="gptokeyb"
PKG_VERSION="0a9005074b6355bab8bc10a72a8302204e692862"
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/EmuELEC/gptokeyb"
PKG_URL="$PKG_SITE.git"
PKG_DEPENDS_TARGET="toolchain SDL2 libevdev"
@Langerz82
Langerz82 / setres.sh
Created September 19, 2022 03:59
setres - fixes
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2022-present Joshua L (https://github.com/Langerz82)
# Read the video output mode and set it for emuelec to avoid video flicking.
# This file sets the hdmi output and frame buffer to the argument in pixel width.
# Allowed argument example ./setres.sh 1080p60hz <-- For height 1080 pixels.