Skip to content

Commit 2d171e8

Browse files
committed
adjust FindGameModule for poking
Now case insensitive and uses ModuleName instead of the full FileName. An attempt to remedy a possible bug from the Halo Mods discord.
1 parent 18b4d7f commit 2d171e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Blamite/RTE/PC/PCRTEProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected ProcessModule FindGameModule(Process process, out bool errorOccured)
165165
try
166166
{
167167
foreach (ProcessModule m in process.Modules)
168-
if (Path.GetFileNameWithoutExtension(m.FileName) == _buildInfo.PokingModule)
168+
if (string.Equals(Path.GetFileNameWithoutExtension(m.ModuleName), _buildInfo.PokingModule, System.StringComparison.InvariantCultureIgnoreCase))
169169
return m;
170170

171171
ErrorMessage = "Game process \"" + _buildInfo.PokingExecutable + "\" does not appear to be currently running any module named \"" + _buildInfo.PokingModule + "\".";

0 commit comments

Comments
 (0)