Program.cs 634 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Threading.Tasks;
  6. namespace DotLoader
  7. {
  8. static class Program
  9. {
  10. /// <summary>
  11. /// The main entry point for the application.
  12. /// </summary>
  13. [STAThread]
  14. static void Main()
  15. {
  16. Environment.CurrentDirectory = @"Z:\dandanplay_11_5_2\dandanplay_11_5_2-x86";
  17. var mainAssembly = Assembly.LoadFile(@"Z:\dandanplay_11_5_2\dandanplay_11_5_2-x86\dandanplay.exe");
  18. var ep = mainAssembly.EntryPoint;
  19. ep.Invoke(null,null);
  20. }
  21. }
  22. }