From 6489f5ebf0a1d05355eebc8718c5adf0709790c3 Mon Sep 17 00:00:00 2001
From: Yarn366 <12212657+Yarn366@users.noreply.github.com>
Date: Thu, 11 Aug 2022 19:44:43 -0400
Subject: [PATCH] Add detection for the Final Doom WADs that were recently
 added to the Steam version of Doom II.

Also add detection for the Steam Unity versions of Doom and Doom II to posix/i_steam.cpp, which was apparently missed by whoever added it to the win32 version.
---
 src/posix/i_steam.cpp | 5 ++++-
 src/win32/i_steam.cpp | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/posix/i_steam.cpp b/src/posix/i_steam.cpp
index e0baa472f..b104fb9e8 100644
--- a/src/posix/i_steam.cpp
+++ b/src/posix/i_steam.cpp
@@ -160,7 +160,10 @@ static struct SteamAppInfo
 	{"Hexen Deathkings of the Dark Citadel/base", 2370},
 	{"Ultimate Doom/base", 2280},
 	{"DOOM 3 BFG Edition/base/wads", 208200},
-	{"Strife", 317040}
+	{"Strife", 317040},
+	{"Ultimate Doom/rerelease/DOOM_Data/StreamingAssets", 2280},
+	{"Doom 2/rerelease/DOOM II_Data/StreamingAssets", 2300},
+	{"Doom 2/finaldoombase", 2300}
 };
 
 TArray<FString> I_GetSteamPath()
diff --git a/src/win32/i_steam.cpp b/src/win32/i_steam.cpp
index 3aab30391..5dc5276a6 100644
--- a/src/win32/i_steam.cpp
+++ b/src/win32/i_steam.cpp
@@ -222,7 +222,8 @@ TArray<FString> I_GetSteamPath()
 		"DOOM 3 BFG Edition/base/wads",
 		"Strife",
 		"Ultimate Doom/rerelease/DOOM_Data/StreamingAssets",
-		"Doom 2/rerelease/DOOM II_Data/StreamingAssets"
+		"Doom 2/rerelease/DOOM II_Data/StreamingAssets",
+		"Doom 2/finaldoombase"
 	};
 
 	FString path;