Cleanup/rename unused files from original project
This commit is contained in:
parent
527896f29e
commit
97237611c1
@ -1,21 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
# Translates internal documentation patch notations into js format expected by BemaniPatcher
|
|
||||||
import sys
|
|
||||||
import pyperclip
|
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
|
||||||
exit(1)
|
|
||||||
stin = pyperclip.paste() if sys.argv[1] == "clip" else sys.argv[1]
|
|
||||||
|
|
||||||
|
|
||||||
[*rest, addr, on] = stin.split(":")
|
|
||||||
[off, on, *rest] = on.split("->")
|
|
||||||
off = ", ".join([f"0x{x}" for x in off.strip().split(" ")])
|
|
||||||
on = ", ".join([f"0x{x}" for x in on.strip().split(" ")])
|
|
||||||
addr = addr.strip()
|
|
||||||
|
|
||||||
output = f"{{ offset: {addr}, off: [{off}], on: [{on}] }},"
|
|
||||||
if sys.argv[1] == "clip":
|
|
||||||
stin = pyperclip.copy(output)
|
|
||||||
else:
|
|
||||||
print(output)
|
|
@ -1,47 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Helper::Steam Compatibility Tools
|
|
||||||
# Expects below formats (called directly from steam client, supports any ambiguous application through chainloading)
|
|
||||||
# Launch current game while forcing native support (games steam doesn't list such feature for)
|
|
||||||
# $this waitforexitandrun /full/path/to/steam/game/binary
|
|
||||||
# Launch arbitrary EP process while emulating being a steam game in question (chainloading, may enable Remote Play Together etc.)
|
|
||||||
# $this waitforexitandrun /full/path/to/steam/game/binary "ENTRYPOINTNAME" --cd "ACTUALWORKINGDIR" ..ALLENTRYPOINTARGUMENTS..
|
|
||||||
_C_scriptName="$(basename -- "$(realpath -- "$0")")"
|
|
||||||
_C_scriptDir="$(dirname -- "$(realpath -- "$0")")"
|
|
||||||
|
|
||||||
|
|
||||||
# Support for generic native execution (no steam helpers support)
|
|
||||||
[ "$1" = "waitforexitandrun" ] || exit 0
|
|
||||||
args=("${@:2}")
|
|
||||||
|
|
||||||
# Support for routing arbitrary EP through current steam app (expects ep_* next to itself)
|
|
||||||
argIndex=0
|
|
||||||
for arg in "${args[@]}"; do
|
|
||||||
[[ "$arg" == "ep_"* ]] && break
|
|
||||||
((argIndex++))
|
|
||||||
done
|
|
||||||
if [ "${#args[@]}" -ne "$argIndex" ]; then
|
|
||||||
# Set correct Entry Point
|
|
||||||
argSwap=("${args[@]}")
|
|
||||||
args=("$_C_scriptDir/${argSwap[$argIndex]}")
|
|
||||||
((argIndex++))
|
|
||||||
|
|
||||||
# Restore expected working directory (if any)
|
|
||||||
if [[ "${argSwap[$argIndex]}" == "--cd" ]]; then
|
|
||||||
((argIndex++))
|
|
||||||
cd "${argSwap[$argIndex]}"
|
|
||||||
((argIndex++))
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set corrent args for Entry Point
|
|
||||||
args+=("${argSwap[@]:$argIndex}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for arg in "${args[@]}"; do
|
|
||||||
# echo "ARG: $arg"
|
|
||||||
# done
|
|
||||||
|
|
||||||
# Execute requested command
|
|
||||||
echo "Command routed as [steam://run/$STEAM_COMPAT_APP_ID]:"
|
|
||||||
echo "cd $(pwd)"
|
|
||||||
echo "exec ${args[@]}"
|
|
||||||
exec "${args[@]}"
|
|
@ -1,33 +0,0 @@
|
|||||||
// gcc monitor_by_id.c -o monitor_by_id -lX11 -lXrandr
|
|
||||||
#include <X11/Xlib.h>
|
|
||||||
#include <X11/extensions/Xrandr.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
int vmajor = 0;
|
|
||||||
int vminor = 0;
|
|
||||||
int moni = -1;
|
|
||||||
int monc = 0;
|
|
||||||
if (argc == 2) moni = atoi(argv[1]);
|
|
||||||
|
|
||||||
Display *dpy = XOpenDisplay(NULL);
|
|
||||||
if (!dpy || moni < 0) return 1;
|
|
||||||
Window wnd = XDefaultRootWindow(dpy);
|
|
||||||
|
|
||||||
if (XRRQueryExtension(dpy, &vmajor, &vminor))
|
|
||||||
{
|
|
||||||
XRRQueryVersion(dpy, &vmajor, &vminor);
|
|
||||||
XRRMonitorInfo *info = XRRGetMonitors(dpy, wnd, 0, &monc);
|
|
||||||
if (moni >= monc) return 1;
|
|
||||||
|
|
||||||
printf("%s\n", XGetAtomName(dpy, info[moni].name));
|
|
||||||
|
|
||||||
XFree(info);
|
|
||||||
}
|
|
||||||
|
|
||||||
XCloseDisplay(dpy);
|
|
||||||
return 0;
|
|
||||||
}
|
|
10
patch_pages
10
patch_pages
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
shopt -s globstar
|
|
||||||
|
|
||||||
|
|
||||||
# Patch html
|
|
||||||
read -p "This action may modify all .html files at '$PWD'"
|
|
||||||
for html in **/*.html ; do
|
|
||||||
# Override relative links to open in current tab instead
|
|
||||||
sed -i 's~href="patcher/" target="_blank"~href="patcher/"~g' "$html"
|
|
||||||
done
|
|
Loading…
Reference in New Issue
Block a user