Tool dedicated to isohacking for Xenosaga on Playstation 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
939 B

8 years ago
8 years ago
8 years ago
  1. using System.Diagnostics;
  2. using Hack.Xenosaga.Common;
  3. using Hack.Xenosaga.Process;
  4. namespace Hack.Xenosaga
  5. {
  6. class Xenosaga
  7. {
  8. public static void Main(string[] args)
  9. {
  10. Variables.stArgs listArgs;
  11. Functions.ManageListener(true);
  12. Trace.WriteLine("Hack.Xenosaga - (c) 2016 BahaBulle\n");
  13. if (!Functions.CheckArgs(args, out listArgs))
  14. {
  15. Functions.usage();
  16. return;
  17. }
  18. switch (listArgs.option)
  19. {
  20. case "-l":
  21. Unpack.listFiles(listArgs.filename);
  22. break;
  23. case "-p":
  24. Unpack.packIsoFiles(listArgs.filename, listArgs.regroup);
  25. break;
  26. case "-u":
  27. Unpack.unpackIsoFiles(listArgs.filename);
  28. break;
  29. }
  30. }
  31. }
  32. }