From 89eafdfab3476c44ada7aaaadf4486b365776965 Mon Sep 17 00:00:00 2001 From: Mute Date: Mon, 28 Nov 2022 23:48:08 +0000 Subject: [PATCH] trunk: sdk 1.1.0 --- mbchc-local.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbchc-local.user.js b/mbchc-local.user.js index 0f615b1..32524c3 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -659,7 +659,7 @@ } }, preloader() { - this.SDK = window.bcModSdk.registerMod("MBCHC", this.VERSION) + this.SDK = window.bcModSdk.registerMod({name:"MBCHC",fullName:"Mute's Bondage Club Hacks Collection",version:this.VERSION,repository:"https://code.fleshless.org/mute/MBCHC/"}) this.before = (name, cb) => this.SDK.hookFunction(name, 0, (nextargs,next) => {try {cb?.(...nextargs)} catch (x) {console.error(x)} finally {return next(nextargs)}}) this.after = (name, cb) => this.SDK.hookFunction(name, 0, (nextargs,next) => {const result = next(nextargs); try {cb?.(...nextargs)} catch (x) {console.error(x)} finally {return result}}) if (window.CurrentModule && window.CurrentScreen && !("Character" === window.CurrentModule && "Login" === window.CurrentScreen)) return this.loader() @@ -667,5 +667,5 @@ } } // MBCHC - fetch("https://code.fleshless.org/mute/MBCHC/raw/branch/master/bondage-club-mod-sdk-1.0.2.js").then(r=>r.text()).then(r=>eval(r)).then(_=>window.MBCHC.preloader()).catch(x=>console.error(x)) /* eslint-disable-line no-eval */ + fetch("https://code.fleshless.org/mute/MBCHC/raw/branch/master/bondage-club-mod-sdk-1.1.0.js").then(r=>r.text()).then(r=>eval(r)).then(_=>window.MBCHC.preloader()).catch(x=>console.error(x)) /* eslint-disable-line no-eval */ })()