-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Patcher referencing /bin/Debug explicitly
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,31 @@ static void Main(string[] args) | |
string sourceAsm = null; | ||
string modificationGlob = null; | ||
string outputPath = null; | ||
string folder = null; | ||
|
||
Console.WriteLine("TShock Mintaka Bootstrapper, Open Terraria API v2.0"); | ||
|
||
if (File.Exists("env.config")) | ||
{ | ||
using (StreamReader sr = File.OpenText("env.config")) | ||
{ | ||
folder = sr.ReadLine(); | ||
Console.WriteLine($"Folder set to: " + folder); | ||
} | ||
} | ||
else | ||
{ | ||
Console.WriteLine("Something went wrong! (env.config not found)"); | ||
Console.ReadLine(); | ||
return; | ||
} | ||
|
||
if (args.Length == 0) | ||
{ | ||
args = new[] | ||
{ | ||
"-in=OTAPI.dll", | ||
"-mod=" + Path.Combine("..", "..", "..", "TShock.Modifications.**", "bin", "Debug", "TShock.Modifications.*.dll"), | ||
"-mod=" + Path.Combine("..", "..", "..", "TShock.Modifications.**", "bin", folder, "TShock.Modifications.*.dll"), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
QuiCM
Member
|
||
"-o=" + Path.Combine("Output", "OTAPI.dll") | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@QuiCM this patch broke the build instructions. Now, you can't just run the patcher -- you have to make an
env.config
in theDebug
orRelease
folder for theTShock.Modifications.Bootstrapper
project otherwise it just dies.