CursorBuddy: fix oneko (#633)

* CursorBuddy: fix oneko

* fix murphy brutal mistake
This commit is contained in:
prism 2026-01-08 17:02:44 +01:00 • committed by GitHub
parent bc230dde7b
commit 0c0ab3626a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -235,7 +235,7 @@ export function identifyAudioType(audio: string): AudioType {
/**
* Adds a function to process an audio before it is played.
* @param key A unique identifier for this audio processor. Plugin name is recommended.
* @param processor A function that takes an audio, volume (0-100), and type (AudioType), and returns the replacement audio and volume.
* @param processor A function that takes a data object with audio, volume (0-100), and type (AudioType) attributes, and modifies the audio and volume in place.
*/
export function addAudioProcessor(key: string, processor: AudioProcessor): void {
audioProcessorFunctions[key] = processor;

View file

@ -117,7 +117,8 @@ function load() {
.replace("./oneko.gif", ONEKO_IMAGE)
.replace("nekoSpeed = 10;", `nekoSpeed = ${settings.store.speed};`)
.replace(" > 100", ` > ${1000 / settings.store.fps}`)
);
)
.then(s => Function(s)());
break;
}
case "fathorse": {