mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fix 2nd Patch for CustomSounds
First is broken still
This commit is contained in:
parent
88a31a14b3
commit
21b1ca72d0
4 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ export default definePlugin({
|
|||
patches: [
|
||||
// sound class
|
||||
{
|
||||
find: 'Error("could not play audio")',
|
||||
find: '"_ensureAudioPromise"',
|
||||
replacement: [
|
||||
// override URL
|
||||
{
|
||||
|
@ -64,7 +64,7 @@ export default definePlugin({
|
|||
},
|
||||
// override volume
|
||||
{
|
||||
match: /Math.min\(\i\.\i\.getOutputVolume\(\)\/100\*this\._volume/,
|
||||
match: /Math.min\(\i\.\i\.getOutputVolume\(\).{0,20}volume/,
|
||||
replace: "$& * ($self.findOverride(this.name)?.volume ?? 100) / 100"
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue