From a2c80f7b6fa7813ed0a9e801287ed7f9271a949c Mon Sep 17 00:00:00 2001
From: kasha695 <67257234+kasha695@users.noreply.github.com>
Date: Tue, 17 Dec 2024 18:11:23 +0000
Subject: [PATCH] Add Dungeon Siege 1 and 2 Multiplayer fixes (#178)

* Add Dungeon Siege 1 and 2 Multiplayer fixes

* add umu- to file
---
 gamefixes-gog/umu-39190.py |  1 +
 gamefixes-gog/umu-39200.py |  1 +
 gamefixes-steam/39190.py   |  9 +++++++++
 gamefixes-steam/39200.py   | 11 +++++++++++
 gamefixes-umu/umu-39190.py |  8 ++++++++
 gamefixes-umu/umu-39200.py |  1 +
 6 files changed, 31 insertions(+)
 create mode 120000 gamefixes-gog/umu-39190.py
 create mode 120000 gamefixes-gog/umu-39200.py
 create mode 100644 gamefixes-steam/39190.py
 create mode 100644 gamefixes-steam/39200.py
 create mode 100644 gamefixes-umu/umu-39190.py
 create mode 120000 gamefixes-umu/umu-39200.py

diff --git a/gamefixes-gog/umu-39190.py b/gamefixes-gog/umu-39190.py
new file mode 120000
index 00000000..f6eb1b58
--- /dev/null
+++ b/gamefixes-gog/umu-39190.py
@@ -0,0 +1 @@
+../gamefixes-steam/39190.py
\ No newline at end of file
diff --git a/gamefixes-gog/umu-39200.py b/gamefixes-gog/umu-39200.py
new file mode 120000
index 00000000..899c588c
--- /dev/null
+++ b/gamefixes-gog/umu-39200.py
@@ -0,0 +1 @@
+../gamefixes-steam/39200.py
\ No newline at end of file
diff --git a/gamefixes-steam/39190.py b/gamefixes-steam/39190.py
new file mode 100644
index 00000000..232d7a86
--- /dev/null
+++ b/gamefixes-steam/39190.py
@@ -0,0 +1,9 @@
+"""Game fix for Dungeon Siege"""
+
+from protonfixes import util
+
+
+def main() -> None:
+    """Enable Multiplayer and protontricks directplay for full functionality"""
+    util.append_argument('Zonematch=true')
+    util.protontricks('directplay')
diff --git a/gamefixes-steam/39200.py b/gamefixes-steam/39200.py
new file mode 100644
index 00000000..68509473
--- /dev/null
+++ b/gamefixes-steam/39200.py
@@ -0,0 +1,11 @@
+"""Game fix for Dungeon Siege II"""
+
+from protonfixes import util
+
+
+def main() -> None:
+    """Apply protontricks directplay for full multiplayer functionality"""
+    # Even though the Steam version has disabled multiplayer functionality
+    # many people will apply a fix to unlock Broken Worlds which will also
+    # enable multiplayer again.
+    util.protontricks('directplay')
diff --git a/gamefixes-umu/umu-39190.py b/gamefixes-umu/umu-39190.py
new file mode 100644
index 00000000..341a9795
--- /dev/null
+++ b/gamefixes-umu/umu-39190.py
@@ -0,0 +1,8 @@
+"""Game fix for Dungeon Siege"""
+
+from protonfixes import util
+
+
+def main() -> None:
+    """Apply protontricks directplay for full multiplayer functionality"""
+    util.protontricks('directplay')
diff --git a/gamefixes-umu/umu-39200.py b/gamefixes-umu/umu-39200.py
new file mode 120000
index 00000000..899c588c
--- /dev/null
+++ b/gamefixes-umu/umu-39200.py
@@ -0,0 +1 @@
+../gamefixes-steam/39200.py
\ No newline at end of file