Changeset 1052 for Vago/trunk


Ignore:
Timestamp:
Sep 17, 2016, 3:32:34 PM (8 years ago)
Author:
s10k
Message:

Fixes for MacOS and minor bugfix

Location:
Vago/trunk/Vago
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Vago/trunk/Vago/Vago.pro

    r1047 r1052  
    2020# http://www.antonioborondo.com/2014/10/22/zipping-and-unzipping-files-with-qt/
    2121INCLUDEPATH += ../Libs/zlib-1.2.8
    22 LIBS += -LC:../Libs/zlib-1.2.8 -lz
     22LIBS += -L../Libs/zlib-1.2.8 -lz
    2323INCLUDEPATH += ../Libs/quazip-0.7.2/quazip
     24win32 {
    2425LIBS += -L../Libs/quazip-0.7.2/quazip/release -lquazip
     26}
     27macx {
     28LIBS += -L../Libs/quazip-0.7.2/quazip -lquazip
     29}
    2530
    2631macx {
  • Vago/trunk/Vago/converter.cpp

    r1047 r1052  
    6262
    6363            commandToExec=commands.mid(currentIndex,(nextIndex-currentIndex));
    64             this->myProcess->start(UtilVago::getOniSplitExeAbsolutePath() + " " + commandToExec);
     64            this->myProcess->start(UtilVago::getOniSplitExecutable() + " " + commandToExec);
    6565            this->myProcess->waitForFinished(-1);
    6666
  • Vago/trunk/Vago/mainwindow.cpp

    r1047 r1052  
    1717    setVagoWindowTitle();
    1818
    19     if(!QFile::exists(UtilVago::getOniSplitExeAbsolutePath())){
     19    if(!QFile::exists(UtilVago::getOniSplitExecutableAbsolutePath())){
    2020        UtilVago::showAndLogErrorPopUp(this->myLogger, "OniSplit not found. Please download it at "+GlobalVars::ModsDomain+" and put it the Vago's tools folder. \n\nProgram will now exit.");
    2121        exit(1);
    2222    }
    2323
    24     if(!QFile::exists(UtilVago::getXmlToolsExeAbsolutePath())){
     24    if(!QFile::exists(UtilVago::getXmlToolsExecutableAbsolutePath())){
    2525        UtilVago::showAndLogErrorPopUp(this->myLogger, "XmlTools not found. Please download it at "+GlobalVars::ModsDomain+" and put it the Vago's tools folder. \n\nProgram will now exit.");
    2626        exit(1);
     
    12161216    QProcess myProcess;
    12171217    myProcess.setWorkingDirectory(UtilVago::getAppPath());
    1218     myProcess.start(UtilVago::getOniSplitExeAbsolutePath()+" -version");
     1218    myProcess.start(UtilVago::getOniSplitExecutable()+" -version");
    12191219    myProcess.waitForFinished();
    12201220
     
    12281228    QProcess myProcess;
    12291229    myProcess.setWorkingDirectory(UtilVago::getAppPath());
    1230     myProcess.start(UtilVago::getXmlToolsExeAbsolutePath()+" --version");
     1230    myProcess.start(UtilVago::getXmlToolsExecutable()+" --version");
    12311231    myProcess.waitForFinished();
    12321232    QString result=myProcess.readLine();
     
    16961696
    16971697    setVagoWindowTitle();
     1698
     1699    showSuccessStatusMessage("Project saved sucessfully.");
    16981700}
    16991701
  • Vago/trunk/Vago/mainwindow.h

    r1047 r1052  
    2929#include <QScriptEngine>
    3030#include <QScriptValueIterator>
     31#ifdef Q_OS_WIN
    3132#include <QWinTaskbarProgress>
    3233#include <QWinTaskbarButton>
     34#endif
    3335
    3436#include "libs/pugixml/pugixml.hpp"
  • Vago/trunk/Vago/manualcommands.cpp

    r1047 r1052  
    6262    }
    6363
    64     QString var = UtilVago::getOniSplitExeAbsolutePath() +" "+ui->leManualCommand->text();
     64    QString var = UtilVago::getOniSplitExecutable() +" "+ui->leManualCommand->text();
    6565
    66     this->myProcess->start(UtilVago::getOniSplitExeAbsolutePath()+" "+ui->leManualCommand->text());
     66    this->myProcess->start(UtilVago::getOniSplitExecutable()+" "+ui->leManualCommand->text());
    6767    this->myProcess->waitForFinished(120000); //wait 2 minutes at maximum
    6868    ui->ptOutput->appendPlainText("> "+command);
  • Vago/trunk/Vago/utilvago.cpp

    r1047 r1052  
    6767}
    6868
    69 QString getOniSplitExeAbsolutePath(){
     69// Absolute paths
     70QString getOniSplitExecutableAbsolutePath(){
     71    return getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::OniSplitString;
     72}
     73
     74QString getXmlToolsExecutableAbsolutePath(){
     75    return getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::XmlToolsString;
     76}
     77
     78// Executables (includes mono if necessary)
     79QString getOniSplitExecutable(){
    7080
    7181#ifdef Q_OS_MAC
    72     return getMonoExecutablePath() + " " + getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::OniSplitString;
     82    return getMonoExecutablePath() + " " + getOniSplitExecutableAbsolutePath();
    7383#else
    74     return getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::OniSplitString;
     84    return getOniSplitExecutableAbsolutePath();
    7585#endif
    7686}
    7787
    78 QString getXmlToolsExeAbsolutePath(){
    79     return getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::XmlToolsString;
     88QString getXmlToolsExecutable(){
     89    return getXmlToolsExecutableAbsolutePath();
    8090}
    8191
  • Vago/trunk/Vago/utilvago.h

    r1047 r1052  
    5151QString getOSIndependentAppPath();
    5252QString getAppPath();
    53 QString getOniSplitExeAbsolutePath();
    54 QString getXmlToolsExeAbsolutePath();
     53QString getOniSplitExecutableAbsolutePath();
     54QString getXmlToolsExecutableAbsolutePath();
     55QString getOniSplitExecutable();
     56QString getXmlToolsExecutable();
    5557#ifdef Q_OS_MAC
    5658QString getMonoExecutablePath();
  • Vago/trunk/Vago/xmlprocessor.cpp

    r1047 r1052  
    1919    for(int i=0; i<this->commands->size(); i++){
    2020
    21         myProcess.start(UtilVago::getXmlToolsExeAbsolutePath() +" "+this->commands->at(i));
     21        myProcess.start(UtilVago::getXmlToolsExecutable() +" "+this->commands->at(i));
    2222        myProcess.waitForFinished(-1);
    2323        result=myProcess.readAllStandardError();
Note: See TracChangeset for help on using the changeset viewer.