From 7009eac0eed654753d22b68aaf98bef4c6681104 Mon Sep 17 00:00:00 2001 From: GloriousEggroll Date: Sun, 14 Apr 2024 06:35:08 -0600 Subject: [PATCH] media converter was merged into wine. a patch is added in proton-ge to allow these to work again. need to use the new value --- gamefixes-steam/1121560.py | 2 +- gamefixes-steam/1158850.py | 2 +- gamefixes-steam/1257290.py | 2 +- gamefixes-steam/1272580.py | 2 +- gamefixes-steam/1293820.py | 2 +- gamefixes-steam/1382330.py | 2 +- gamefixes-steam/1413480.py | 2 +- gamefixes-steam/1999770.py | 2 +- gamefixes-steam/2138090.py | 2 +- gamefixes-steam/2183070.py | 2 +- gamefixes-steam/2399220.py | 2 +- gamefixes-steam/260130.py | 2 +- gamefixes-steam/312790.py | 2 +- gamefixes-steam/586140.py | 2 +- gamefixes-steam/740550.py | 2 +- gamefixes-steam/893180.py | 2 +- gamefixes-steam/936160.py | 2 +- util.py | 23 ++++++++++++++++++++++- 18 files changed, 39 insertions(+), 18 deletions(-) diff --git a/gamefixes-steam/1121560.py b/gamefixes-steam/1121560.py index e96454f8..0e4cdea4 100755 --- a/gamefixes-steam/1121560.py +++ b/gamefixes-steam/1121560.py @@ -8,4 +8,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1158850.py b/gamefixes-steam/1158850.py index 4380429a..ee57d52b 100755 --- a/gamefixes-steam/1158850.py +++ b/gamefixes-steam/1158850.py @@ -9,4 +9,4 @@ def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1257290.py b/gamefixes-steam/1257290.py index 48efc538..2dc6ce48 100755 --- a/gamefixes-steam/1257290.py +++ b/gamefixes-steam/1257290.py @@ -8,4 +8,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1272580.py b/gamefixes-steam/1272580.py index d0da5abc..b32bd034 100644 --- a/gamefixes-steam/1272580.py +++ b/gamefixes-steam/1272580.py @@ -6,4 +6,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1293820.py b/gamefixes-steam/1293820.py index 36ce84a1..ab8cd367 100755 --- a/gamefixes-steam/1293820.py +++ b/gamefixes-steam/1293820.py @@ -12,4 +12,4 @@ def main(): util.disable_esync() util.disable_fsync() # Fixes audio not playing for in-game videos - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1382330.py b/gamefixes-steam/1382330.py index 63907d0d..8b53402a 100755 --- a/gamefixes-steam/1382330.py +++ b/gamefixes-steam/1382330.py @@ -8,4 +8,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1413480.py b/gamefixes-steam/1413480.py index 7fb977d1..0e3cabd2 100755 --- a/gamefixes-steam/1413480.py +++ b/gamefixes-steam/1413480.py @@ -8,4 +8,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/1999770.py b/gamefixes-steam/1999770.py index eac3604f..dcc3bc8e 100755 --- a/gamefixes-steam/1999770.py +++ b/gamefixes-steam/1999770.py @@ -8,4 +8,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/2138090.py b/gamefixes-steam/2138090.py index a7a0c744..86d9340b 100755 --- a/gamefixes-steam/2138090.py +++ b/gamefixes-steam/2138090.py @@ -9,4 +9,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/2183070.py b/gamefixes-steam/2183070.py index b8fec462..980f6db7 100755 --- a/gamefixes-steam/2183070.py +++ b/gamefixes-steam/2183070.py @@ -13,4 +13,4 @@ def main(): util.disable_esync() util.disable_fsync() # Fixes audio not playing for in-game videos - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/2399220.py b/gamefixes-steam/2399220.py index 62f192b8..d0b6f97c 100755 --- a/gamefixes-steam/2399220.py +++ b/gamefixes-steam/2399220.py @@ -8,4 +8,4 @@ def main(): """ # Fixes audio not playing for in-game videos - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/260130.py b/gamefixes-steam/260130.py index 04322a5e..5eb29b55 100755 --- a/gamefixes-steam/260130.py +++ b/gamefixes-steam/260130.py @@ -6,4 +6,4 @@ def main(): util.protontricks('wmp9') - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/312790.py b/gamefixes-steam/312790.py index c205b3f0..32dde462 100755 --- a/gamefixes-steam/312790.py +++ b/gamefixes-steam/312790.py @@ -6,4 +6,4 @@ def main(): util.protontricks('wmp9') - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/586140.py b/gamefixes-steam/586140.py index 30819bcb..5b6d6b9d 100755 --- a/gamefixes-steam/586140.py +++ b/gamefixes-steam/586140.py @@ -8,4 +8,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/740550.py b/gamefixes-steam/740550.py index 6bda960b..1f952094 100755 --- a/gamefixes-steam/740550.py +++ b/gamefixes-steam/740550.py @@ -6,4 +6,4 @@ def main(): util.protontricks('wmp9') - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/893180.py b/gamefixes-steam/893180.py index 755ecc81..a1024a3b 100755 --- a/gamefixes-steam/893180.py +++ b/gamefixes-steam/893180.py @@ -10,4 +10,4 @@ def main(): util.protontricks('lavfilters') util.protontricks('d3dcompiler_43') util.protontricks('d3dcompiler_47') - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/gamefixes-steam/936160.py b/gamefixes-steam/936160.py index 090d49da..ca7a4c20 100644 --- a/gamefixes-steam/936160.py +++ b/gamefixes-steam/936160.py @@ -9,4 +9,4 @@ from protonfixes import util def main(): - util.disable_protonaudioconverter() + util.disable_protonaudioconverterbin() diff --git a/util.py b/util.py index f1e00f7a..eb1fd7ab 100755 --- a/util.py +++ b/util.py @@ -447,9 +447,30 @@ def disable_protonaudioconverter() -> None: """ log.info('Disabling Proton Audio Converter') - set_environment('GST_PLUGIN_FEATURE_RANK', 'protonaudioconverterbin:NONE') + set_environment('PROTON_AUDIO_CONVERT', '0') +def disable_protonaudioconverterbin() -> None: + """ Disabling Proton Audio Converter + """ + + log.info('Disabling Proton Audio Converter') + set_environment('PROTON_AUDIO_CONVERT_BIN', '0') + +def disable_protonvideoconverter() -> None: + """ Disabling Proton Audio Converter + """ + + log.info('Disabling Proton Video Converter') + set_environment('PROTON_VIDEO_CONVERT', '0') + +def disable_protondemuxer() -> None: + """ Disabling Proton Audio Converter + """ + + log.info('Disabling Proton Demuxer') + set_environment('PROTON_DEMUX', '0') + @once def disable_uplay_overlay() -> bool: """Disables the UPlay in-game overlay.