Skip to content

Instantly share code, notes, and snippets.

View igor725's full-sized avatar
💭
Isn't that right, Kainé?

igor725

💭
Isn't that right, Kainé?
View GitHub Profile
@igor725
igor725 / rpcsx.run
Last active October 21, 2023 15:09
RPCSX emulator runner script
#!/bin/bash
# How to use
# 1. Download the script with one of two ways:
# 1.1 WGET: wget https://gist.githubusercontent.com/igor725/5cff93614c8286e7d7ff348a70dace91/raw/rpcsx.run
# 1.2 CURL: curl https://gist.githubusercontent.com/igor725/5cff93614c8286e7d7ff348a70dace91/raw/rpcsx.run -o rpcsx.run
# 2. Run `chmod +x ./rpcsx.run`
# 3. And then `./rpcsx.run -h`
set -o pipefail;
@igor725
igor725 / devices_info.lua
Created July 14, 2021 23:44
Simple LuaJIT ffi bridge for xinput.dll
xinput = require('xinput').on()
xinput.iterStates(function(state)
print('Device ', state:getIndex(), 'is a', state:getType())
print('\tBattery info:', state:getBatteryInfo())
local caps = state:fetchCaps()
if caps then
print('\tCapabilities:')
for cap_name, cap_present in pairs(caps)do
io.write('\t\t', cap_name, ': ', (cap_present and'yes')or'no', '\r\n')
end