Skip to content

Commit

Permalink
Release v1.4.0 and fix several massive bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
xsacha committed Aug 25, 2014
1 parent 1c07112 commit 1716322
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sachesi.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ win32: QT += sql xmlpatterns

TARGET="Sachesi"
ICON=sachesi-114.png
VERSION=1.3.2
VERSION=1.4.0

# Global specific
win32:CONFIG(release, debug|release): CONFIG_DIR = $$join(OUT_PWD,,,/release)
Expand Down
5 changes: 5 additions & 0 deletions qml/generic/installer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ PageTab {
font.pixelSize: config.defaultSubtextSize
}
}
Text {
anchors {bottom: parent.bottom; bottomMargin: 4; horizontalCenter: parent.horizontalCenter }
text: "Look at your device for total install percent."
font.pixelSize: config.defaultSubtextSize
}
MouseArea {
anchors.fill: parent
}
Expand Down
2 changes: 1 addition & 1 deletion qml/generic/usbconnect.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PageTab {
Text {
visible: !i.wrongPassBlock
anchors.horizontalCenter: parent.horizontalCenter
text: "Searching for USB device"
text: "Searching for USB device" + (i.possibleDevices ? ("\nTalking to " + i.possibleDevices + " possible devices.") : "")
font.pixelSize: config.defaultFontSize
}
Circle {
Expand Down
2 changes: 2 additions & 0 deletions src/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ void InstallNet::login()
}
}
ips.removeDuplicates();
// Keep the user updated with how many potential devices we are dealing with here.
setPossibleDevices(ips.count());
if (ips.isEmpty())
return;
// Note: Removing fallback IP. Device will have to respond.
Expand Down
5 changes: 5 additions & 0 deletions src/install.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class InstallNet : public QObject {
Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
Q_PROPERTY(bool wrongPass READ wrongPass WRITE setWrongPass NOTIFY wrongPassChanged)
Q_PROPERTY(bool wrongPassBlock READ wrongPassBlock WRITE setWrongPassBlock NOTIFY wrongPassBlockChanged)
Q_PROPERTY(int possibleDevices READ possibleDevices WRITE setPossibleDevices NOTIFY possibleDevicesChanged)
Q_PROPERTY(QString ip READ ip WRITE setIp NOTIFY ipChanged)
Q_PROPERTY(QString newLine READ newLine WRITE setNewLine NOTIFY newLineChanged)
Q_PROPERTY(int state READ state NOTIFY stateChanged)
Expand Down Expand Up @@ -124,6 +125,7 @@ class InstallNet : public QObject {
QString password() const;
bool wrongPass() const;
bool wrongPassBlock() const;
int possibleDevices() const;
QString ip() const;
QString newLine() const;
int state() const;
Expand Down Expand Up @@ -158,6 +160,7 @@ class InstallNet : public QObject {
void setPassword(const QString &password);
void setWrongPass(const bool &wrong);
void setWrongPassBlock(const bool &wrong);
void setPossibleDevices(const int &devices);
void setNewLine(const QString &newLine);
void setState(const int &state);
void setDGProgress(const int &progress);
Expand All @@ -178,6 +181,7 @@ class InstallNet : public QObject {
void newPassword(QString newPass);
void wrongPassChanged();
void wrongPassBlockChanged();
void possibleDevicesChanged();
void ipChanged();
void newLineChanged();
void stateChanged();
Expand Down Expand Up @@ -258,6 +262,7 @@ private slots:
QString _password;
bool _wrongPass;
bool _wrongPassBlock;
int _possibleDevices;
QString _newLine;
QFile _firmware;
int _state;
Expand Down
3 changes: 3 additions & 0 deletions src/install_qml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// Official GIT repository and contact information can be found at
// http://github.com/xsacha/Sachesi

// This file is just Qt hooks that don't need to be seen. It should really do this for you anyway.

#include "install.h"

#define SET_QML(type, name) \
Expand All @@ -38,6 +40,7 @@
SET_QML(QString, ip)
SET_QML(bool, wrongPass)
SET_QML2(bool, wrongPassBlock, setWrongPassBlock)
SET_QML2(int, possibleDevices, setPossibleDevices)
SET_QML(QString, newLine)
SET_QML(QStringList, firmwareNames)
SET_QML(QStringList, firmwarePaths)
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QString curPath = QDir::currentPath();
// Use .app path instead of binary path. Should really use a different method.
#ifdef __APPLE__
if (curPath.endsWith("Contents/MacOS")
if (curPath.endsWith("Contents/MacOS"))
QDir::setCurrent(QApplication::applicationDirPath()+"/../../../");
#endif
if (curPath.endsWith(".tmp") || curPath.endsWith(".zip") || curPath.endsWith("/system32")) {
Expand Down
3 changes: 1 addition & 2 deletions src/mainnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ void MainNet::cancelSplit()

void MainNet::abortSplit()
{
if (splitThread)
splitThread->quit();
killSplit();
cancelSplit();
}

Expand Down
3 changes: 2 additions & 1 deletion src/splitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ void Splitter::extractDir(int nodenum, QString basedir, qint64 startPos, int tie
QDir mainDir;
if (!extractApps)
mainDir.mkdir(basedir);

QNXStream stream(signedFile);
int count;
qinode ind = createNode(nodenum, startPos);
Expand Down Expand Up @@ -109,7 +110,7 @@ void Splitter::extractDir(int nodenum, QString basedir, qint64 startPos, int tie
if (ind2.perms & QCFM_IS_DIRECTORY)
{
if (extractApps) {
if (dir == "apps") {
if (dir == "apps" && tier == 0) {
mainDir.mkdir(basedir);
extractDir(inodenum, basedir, startPos, 1);
continue;
Expand Down
1 change: 0 additions & 1 deletion src/splitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public slots:
currentZip = nullptr;
}

// This should be used from the QML interface but isn't yet
void killSplit() {
kill = true;
die();
Expand Down

0 comments on commit 1716322

Please sign in to comment.