Skip to content

Commit 56d230e

Browse files
Updates version to 1.0.2
1 parent 49b0ff3 commit 56d230e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

buildspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"displayName": "Elgato Marketplace Connect",
4141
"versionMajor": 1,
4242
"versionMinor": 0,
43-
"versionPatch": 1,
43+
"versionPatch": 2,
4444
"buildNumber": 0,
4545
"releaseType": "release",
4646
"author": "Elgato",

loader/main.cpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,24 @@ bool obs_is_running(std::wstring name) {
265265
int main(int argc, char *argv[]) {
266266
if (argc < 2) {
267267
std::cerr << "[ERROR] No argument provided." << std::endl;
268+
system("pause");
268269
return 1;
269270
}
271+
int resp;
270272

271273
std::string payload = argv[1];
272274

273275
if (payload.find("elgatolink://auth") == 0) {
274276
// Send auth to OBS which requested it.
275-
return send_auth_to_obs(payload);
277+
resp = send_auth_to_obs(payload);
276278
} else {
277-
int resp = launch_obs();
278-
if (resp == 1) {
279-
return 1;
280-
}
281-
return open_obs_mp_window();
279+
resp = launch_obs();
280+
if(resp == 0) resp = open_obs_mp_window();
282281
}
282+
283+
if (resp == 1) {
284+
system("pause");
285+
}
286+
287+
return resp;
283288
}

0 commit comments

Comments
 (0)