Skip to content

Commit 5d84fc2

Browse files
committed
Added ModLoader.GetLoadedMods method and deprecated the installer
1 parent 21045dd commit 5d84fc2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ In order to do get the tModLoader code, first clone the repository, then run the
2424

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

27-
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.
28-
2927
### Committing changes
3028

3129
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.

installer/DEPRECATED

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The installer has been deprecated.

patches/tModLoader/Terraria.ModLoader/ModLoader.cs

+5
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ public static Mod GetMod(string name)
122122
return null;
123123
}
124124

125+
public static string[] GetLoadedMods()
126+
{
127+
return loadOrder.ToArray();
128+
}
129+
125130
internal static void Load()
126131
{
127132
ThreadPool.QueueUserWorkItem(new WaitCallback(do_Load), 1);

0 commit comments

Comments
 (0)