Skip to content

Commit

Permalink
Use d3d11.dll for Sonic Forces... for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesupersonic16 committed Sep 8, 2024
1 parent 225770d commit a4914b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HedgeModManager/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static class Games
AppID = "637100",
GBProtocol = "hedgemmforces",
Is64Bit = true,
ModLoader = ModLoaders.HE2ModLoader,
ModLoader = ModLoaders.HE2ModLoaderD3D11,
CodesURL = Resources.URL_WARS_CODES,
GamePaths = [Path.Combine("SonicForces", "build", "main", "projects", "exec", "Sonic Forces.exe")]
};
Expand Down
13 changes: 13 additions & 0 deletions HedgeModManager/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ public static class ModLoaders
IncompatibleFileCallback = ModLoader.IncompatibleByOriginalName("HE2ModLoader.dll")
};

// Temporary workaround for Sonic Forces
public static ModLoader HE2ModLoaderD3D11 = new ModLoader()
{
ModLoaderDownloadURL = Resources.URL_HE2ML_DL,
ModLoaderData = EmbeddedLoaders.HE2ModLoader,
ModLoaderName = "Hedgehog Engine 2 Mod Loader",
ModLoaderID = "HE2ModLoader",
ModLoaderFileName = "d3d11.dll",
DirectXVersion = 11,
IncompatibleFiles = new[] { "dinput8.dll" },
IncompatibleFileCallback = ModLoader.IncompatibleByOriginalName("HE2ModLoader.dll")
};

public static ModLoader RainbowModLoader = new ModLoader()
{
ModLoaderDownloadURL = Resources.URL_RML_DL,
Expand Down

0 comments on commit a4914b6

Please sign in to comment.