Skip to content

Commit 9c2d02c

Browse files
committed
Fixed error message
Fixed an error message that reports if the renamed Papyrus compiler cannot be found in the same folder as the wrapper. The message was previously saying that the renamed compiler could not be found in the renamed compiler when it should have been saying that the renamed compiler could not be found in the folder that should contain said renamed compiler.
1 parent b78d910 commit 9c2d02c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Advanced Papyrus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static void RunCompiler(string[] args)
151151
string PapyrusCompilerEXE = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\" + PapyrusCompilerName;
152152
if (!File.Exists(PapyrusCompilerEXE))
153153
{
154-
twError.WriteLine("Advanced Papyrus: ERROR! Unable to find \"" + PapyrusCompilerName + "\" in \"" + PapyrusCompilerEXE.Substring(PapyrusCompilerEXE.LastIndexOf("\\") + 1) + "\"!");
154+
twError.WriteLine("Advanced Papyrus: ERROR! Unable to find \"" + PapyrusCompilerName + "\" in \"" + PapyrusCompilerEXE.Substring(0, PapyrusCompilerEXE.LastIndexOf("\\") + 1) + "\"!");
155155
return;
156156
}
157157
var proc = new Process {

Advanced Papyrus.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)