Skip to content

Commit

Permalink
Added ModLoader.GetLoadedMods method and deprecated the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
blushiemagic committed Jan 11, 2016
1 parent 21045dd commit 5d84fc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -24,8 +24,6 @@ In order to do get the tModLoader code, first clone the repository, then run the

When that's all done, you should have the tModLoader source in the src folder. Open the solutions folder then open the tModLoader solution.

Do note that if you want to run tModLoader, you will need to navigate to Terraria's Content folder, create a new folder there called ModLoader, then copy the Terraria.ModLoader.Default/MysteryItem.png and Terraria.ModLoader.Default/StartBag.png files to there.

### Committing changes

So you've made some changes to Terraria and want to commit them. Run setup.bat again, then *(Important) click on Format Code*. Select the src/tModLoader folder, then wait a bit for it to format. When that's done, click on Diff tModLoader. This will create patch files with the changes you've made. Finally, all you'll need to do is commit the patches folder.
1 change: 1 addition & 0 deletions installer/DEPRECATED
@@ -0,0 +1 @@
The installer has been deprecated.
5 changes: 5 additions & 0 deletions patches/tModLoader/Terraria.ModLoader/ModLoader.cs
Expand Up @@ -122,6 +122,11 @@ public static Mod GetMod(string name)
return null;
}

public static string[] GetLoadedMods()
{
return loadOrder.ToArray();
}

internal static void Load()
{
ThreadPool.QueueUserWorkItem(new WaitCallback(do_Load), 1);
Expand Down

0 comments on commit 5d84fc2

Please sign in to comment.