Skip to content

Instantly share code, notes, and snippets.

View Langerz82's full-sized avatar

Joshua L Langerz82

View GitHub Profile
@Langerz82
Langerz82 / bintohex-hextobin.js
Last active December 1, 2021 21:43
Uint Binary array to Hex and back again.
function reverse(s){
return s.split("").reverse().join("");
}
function BinToHex(uint8array) {
var len = Math.ceil(uint8array.length/8);
var tmpArr = new Uint32Array(len);
for (var i=0; i < tmpArr.length; ++i) {
for (var j=0; j < 8; ++j) {
@Langerz82
Langerz82 / set-display.sh
Created August 10, 2021 05:02
For emuelec setting displays of various emulation resolutions.
#!/bin/bash
# This file sets the hdmi output and frame buffer to the argument in pixel width.
# Allowed argument example ./display.sh 1080p60hz <-- For height 1080 pixels.
# set -x #echo on
# 1080p60hz
# 1080i60hz
# 720p60hz
@Langerz82
Langerz82 / emuelec-emulationstation-video_mode.diff
Created August 9, 2021 21:17
emuelec-emulationstation - video_mode - enable to be passed to sh.
diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp
index 462d0be5..aad46993 100644
--- a/es-app/src/FileData.cpp
+++ b/es-app/src/FileData.cpp
@@ -444,6 +444,8 @@ bool FileData::launchGame(Window* window, LaunchGameOptions options)
const std::string rom = Utils::FileSystem::getEscapedPath(getPath());
const std::string basename = Utils::FileSystem::getStem(getPath());
const std::string rom_raw = Utils::FileSystem::getPreferredPath(getPath());
+ const std::string video_emu = SystemConf::getInstance()->get(system->getName() + ".videomode");
+ const std::string video_global = SystemConf::getInstance()->get("global.videomode");
#!/bin/sh
# This file sets the hdmi output and frame buffer to the argument in pixel width.
# Allowed argument example ./hdmi.sh 720 <-- For width 720 pixels.
# set -x #echo on
bpp=32
hz=60
@Langerz82
Langerz82 / dolphin_convert.diff
Last active July 14, 2021 19:28
Compresses emulator gc for dolphin from ISO's to RVZ. Apply patch to dolphin emulator and build.
diff --git a/Source/Core/CMakeLists.txt b/Source/Core/CMakeLists.txt
index d176fcbf25..7fc17c9807 100644
--- a/Source/Core/CMakeLists.txt
+++ b/Source/Core/CMakeLists.txt
@@ -7,6 +7,8 @@ add_subdirectory(UICommon)
add_subdirectory(VideoCommon)
add_subdirectory(VideoBackends)
+add_subdirectory(DolphinConvert)
+
@Langerz82
Langerz82 / Dolphin.ini
Last active July 4, 2021 14:38
S922X - EmuElec - Dolphin standalone settings.
[General]
LastFilename =
ShowLag = False
ShowFrameCount = False
ISOPaths = 1
RecursiveISOPaths = False
NANDRootPath =
WirelessMac =
ISOPath0 = /home/sx05re/Desktop/testdisk-7.1-WIP
GDBSocket =
config restore_at_exit
debug_crash no
debug_rawsound no
debug_speedmark no
device_alsa_device sdl
device_alsa_mixer channel
device_color_bgr15 no
device_color_bgr16 yes
device_color_bgr24 yes
device_color_bgr32 yes
diff --git a/advance/lib/joy.c b/advance/lib/joy.c
index 123cc0df..2d2ae445 100644
--- a/advance/lib/joy.c
+++ b/advance/lib/joy.c
@@ -28,6 +28,11 @@ struct joy_entry {
};
static struct joy_entry JOY_BUTTON[] = {
+ { "dpLeft", JOYB_DPL },
+ { "dpRight", JOYB_DPR },
@Langerz82
Langerz82 / find_emulator.sh
Last active September 21, 2021 01:00
Retropie - Rom Emulator Batch Finder
#!/bin/bash
###############################################################################
# Retropie - Rom Emulator Batch Finder.
#
# This file loops through emulator roms and the emulators and tries to select
# the right ones for the rom. It calls a modified runcommand.sh from retropie.
# I am releasing it under Open Source so others may find it useful.
#
# TODO: Make source work with call runemulators.sh for return variable,
@Langerz82
Langerz82 / flycast_zipsupport.diff
Last active March 27, 2021 06:35
Flycast - Zip Support for CDI/GDI files - Some initial changes (7-zip not yet implemented).
diff --git a/core/archive/7zArchive.cpp b/core/archive/7zArchive.cpp
index 8ae6bba3..28fd97a8 100644
--- a/core/archive/7zArchive.cpp
+++ b/core/archive/7zArchive.cpp
@@ -105,6 +105,14 @@ ArchiveFile* SzArchive::OpenFileByCrc(u32 crc)
return NULL;
}
+
+// TODO