mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43: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: [
|
patches: [
|
||||||
// sound class
|
// sound class
|
||||||
{
|
{
|
||||||
find: 'Error("could not play audio")',
|
find: '"_ensureAudioPromise"',
|
||||||
replacement: [
|
replacement: [
|
||||||
// override URL
|
// override URL
|
||||||
{
|
{
|
||||||
|
@ -64,7 +64,7 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
// override volume
|
// 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"
|
replace: "$& * ($self.findOverride(this.name)?.volume ?? 100) / 100"
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in a new issue