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.

46 lines
1.2 KiB

8 years ago
8 years ago
8 years ago
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.ToLower());
  22. break;
  23. case "-p":
  24. Unpack.packIsoFiles(listArgs.filename.ToLower(), listArgs.regroup);
  25. break;
  26. case "-u":
  27. Unpack.unpackIsoFiles(listArgs.filename.ToLower());
  28. break;
  29. case "-e":
  30. Scripts.extract(listArgs.filename.ToLower(), listArgs.encode);
  31. break;
  32. case "-i":
  33. Scripts.insert(listArgs.filename.ToLower(), listArgs.encode);
  34. break;
  35. }
  36. }
  37. }
  38. }