You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2024. It is now read-only.
// if powershell has errored out, make it print an error into the console and open a window indicating that powershell errored out.
103
-
eprintln!("Error: download_quark() exited with status code {}", output.status.code().unwrap_or(-1));
104
-
error_window("QuarkGUI has encountered an error in download_quark(). \nReport this in GitHub Issues (with steps on how to replicate) if the error happens again.");
109
+
eprintln!("Error: Photon Downloader exited with status code {}", output.status.code().unwrap_or(-1));
110
+
error_window("QuarkGUI has encountered an error in the Photon Downloader, but the activation will proceed (assuming that photon.exe was downloaded before)\nReport this in GitHub Issues (with steps on how to replicate) if the error happens again.");
111
+
}
112
+
progressbar.set_fraction(0.5);
113
+
// launch photon with elevated perms
114
+
let status:ExitStatus = AdminCommand::new(photon_exe_path)
115
+
.status()
116
+
.expect("Failed to launch Photon. Did you download Photon?");
117
+
118
+
// error checking
119
+
if !status.success() && status.code() != Some(-1073741510){
120
+
// if photon.exe has errored out, make it print an error into the console and open a window indicating that photon errored out.
121
+
eprintln!("Error: Photon exited with status code {}", status.code().unwrap_or(-1));
122
+
progressbar.set_fraction(0.0);
123
+
error_window("QuarkGUI has encountered an error while running Photon. Try re-downloading it.\nAlternatively, report this in GitHub Issues (with steps on how to replicate) if the error proceeds to happen");
105
124
}else{
106
-
// update the progress bar to indicate that the download is complete
107
-
progress_bar.set_fraction(1.0);
125
+
// if photon.exe has exited successfully, open a window indicating that it's done
// if powershell has errored out, make it print an error into the console and open a window indicating that powershell errored out.
154
+
eprintln!("Error: Quark Downloader exited with status code {}", output.status.code().unwrap_or(-1));
155
+
error_window("QuarkGUI has encountered an error in the Quark Downloader, but the activation will proceed (assuming that photon.exe was downloaded before).\nReport this in GitHub Issues (with steps on how to replicate) if the error happens again.");
156
+
}
157
+
progressbar.set_fraction(0.5);
158
+
progressbar.set_text(Some("Using Quark..."));
123
159
// launch quark with elevated perms
124
160
let status:ExitStatus = AdminCommand::new(quark_exe_path)
125
161
.status()
@@ -129,9 +165,11 @@ fn launch_quark() {
129
165
if !status.success() && status.code() != Some(-1073741510){
130
166
// if quark.exe has errored out, make it print an error into the console and open a window indicating that quark errored out.
131
167
eprintln!("Error: Quark exited with status code {}", status.code().unwrap_or(-1));
132
-
error_window("Quark has encountered an error. Try re-downloading Quark.\nAlternatively, \nReport this in GitHub Issues (with steps on how to replicate) if the error proceeds to happen");
168
+
progressbar.set_fraction(0.0);
169
+
error_window("QuarkGUI has encountered an error while running Quark. Try re-downloading it.\nAlternatively, report this in GitHub Issues (with steps on how to replicate) if the error proceeds to happen");
133
170
}else{
134
171
// if quark.exe has exited successfully, open a window indicating that it's done
0 commit comments