diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 41 |
1 files changed, 33 insertions, 8 deletions
@@ -27,24 +27,42 @@ #include "wii/archiveu8.h" +#include "layoutgl/widget.h" + int main(int argc, char *argv[]) { QApplication a(argc, argv); LSGlobals::setup(); + LSMainWindow w; + w.show(); + + return a.exec(); + /*QFile file("H:\\ISOs\\NSMBWii\\Extracted\\Layout\\continue\\continue.arc"); file.open(QFile::ReadOnly); QByteArray arc = file.readAll(); file.close();*/ - LYTArchivePackage package("H:\\ISOs\\NSMBWii\\Extracted\\Layout\\continue\\continue.arc"); - LYTLayout layout(package, "continue_05.brlyt"); - QByteArray brlyt = layout.pack(); - QFile file("H:\\ISOs\\NSMBWii\\Extracted\\Layout\\continue\\continue\\arc\\blyt\\continue_05_repack.brlyt"); - file.open(QFile::WriteOnly); - file.write(brlyt); - file.close(); + //LYTArchivePackage package("H:\\ISOs\\NSMBWii\\Extracted\\Layout\\continue\\continue.arc"); + QString blah1 = "preGame"; + //QString blah = "preGame/preGame.arc"; + QString blah = QString("%1/%1.arc").arg(blah1); + QString cpath; + if (QFile::exists("/home/me/Games/Newer/ISO/files/Layout/" + blah)) { + cpath = "/home/me/Games/Newer/ISO/files/Layout/" + blah; + } else { + cpath = "Z:\\stuff\\Games\\Newer\\ISO\\files\\Layout\\" + blah; + } + LYTArchivePackage package(cpath); + LYTLayout layout(package, package.listLayouts().first()); + //LYTLayout layout(package, "continue_05.brlyt"); + //QByteArray brlyt = layout.pack(); + //QFile file("H:\\ISOs\\NSMBWii\\Extracted\\Layout\\continue\\continue\\arc\\blyt\\continue_05_repack.brlyt"); + //file.open(QFile::WriteOnly); + //file.write(brlyt); + //file.close(); //package.writeLayout("continue_05.brlyt", brlyt); //package.savePackage(); @@ -52,10 +70,17 @@ int main(int argc, char *argv[]) { //LYTDirectoryPackage package("H:\\ISOs\\NSMBWii\\Extracted\\Layout\\continue\\continue\\arc"); //LYTLayout layout(package, "continue_05.brlyt"); //LYTDirectoryPackage package("H:\\ISOs\\TP\\banner\\arc_extr"); + //LYTDirectoryPackage package("/mnt/h/ISOs/TP/banner/arc_extr"); + //LYTDirectoryPackage package("/mnt/h/ISOs/hbm/InetChannelNew/0001000148414450/00000000_app_OUT/meta/banner_bin_OUT/arc"); + //LYTDirectoryPackage package("/mnt/h/ISOs/CSWii/BannerTools/0001000157435645/00000000_app_OUT/meta/banner_bin_OUT/arc"); //LYTLayout layout(package, "banner.brlyt"); - LSMainWindow w; + //LSMainWindow w; w.show(); + LGLWidget w2; + w2.setLayout(&layout); + w2.show(); + return a.exec(); } |