Skip to content

Instantly share code, notes, and snippets.

View RedBigz's full-sized avatar
💜
working on TABG VR

red RedBigz

💜
working on TABG VR
View GitHub Profile
@RedBigz
RedBigz / raisin.js
Created July 8, 2025 02:07
Raisin JS Patcher
// https://stackoverflow.com/questions/1007981/how-to-get-function-parameter-names-values-dynamically
var STRIP_COMMENTS = /(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/mg;
var ARGUMENT_NAMES = /([^\s,]+)/g;
function getParamNames(func) {
var fnStr = func.toString().replace(STRIP_COMMENTS, '');
var result = fnStr.slice(fnStr.indexOf('(') + 1, fnStr.indexOf(')')).match(ARGUMENT_NAMES);
if (result === null)
return [];
return result;
}
// This contains some of orteil's code, THIS IS NOT MINE! The 60FPS patch is mine however.
var CC60_Counter = 0
Game.Logic=function()
{
CC60_Counter += 30 / Game.fps
if (CC60_Counter >= 1) CC60_Counter = 0