From 7a183cfa367db01413c001306741d06e1826d077 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 3 Aug 2012 05:16:52 +0200 Subject: might as well push all this. a massive amount of changes --- main.cpp | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 795386c..e2fb2f7 100644 --- a/main.cpp +++ b/main.cpp @@ -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(); } -- cgit v1.2.3