Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void Check()
- {
- if (!Inject.Module.get_Types().Contains("Terraria.Steam") || Inject.GetMethod(Inject.Module.get_Types().get_Item("Terraria.Program"), "Main").get_Body().get_Instructions().Count != 144 || File.Exists(Inject.Path + "SDU.exe"))
- {
- Inject.Notice("Warning! Your copy of Terraria has been identified as illegally modified. In the near future, tMod will explicitly detect and prevent the use of illegal software. Consider this your final warning: purchase Terraria.");
- }
- if (!File.Exists(Inject.Path + "steam_api.dll"))
- {
- Inject.Notice("Warning! You currently do not use Steam. However, tMod will soon be requiring Steam. Please ensure that steam_api.dll is in the same directory as Terraria.exe.");
- return;
- }
- using (FileStream fileStream = File.OpenRead(Inject.Path + "steam_api.dll"))
- {
- if (fileStream.Length != 124712L)
- {
- Inject.Notice("Warning! Your steam_api.dll file has been modified. This is a sign that you are using an illegal copy of Terraria. In the near future, it will be technically impossible to use tMod in conjunction with illegal copies of Terraria. Please purchase Terraria as soon as possible to avoid losing access to tMod.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment