CursorBuddy: fix oneko (#633)
* CursorBuddy: fix oneko * fix murphy brutal mistake
This commit is contained in:
parent
bc230dde7b
commit
0c0ab3626a
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue