File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 40
40
"displayName" : " Elgato Marketplace Connect" ,
41
41
"versionMajor" : 1 ,
42
42
"versionMinor" : 0 ,
43
- "versionPatch" : 1 ,
43
+ "versionPatch" : 2 ,
44
44
"buildNumber" : 0 ,
45
45
"releaseType" : " release" ,
46
46
"author" : " Elgato" ,
Original file line number Diff line number Diff line change @@ -265,19 +265,24 @@ bool obs_is_running(std::wstring name) {
265
265
int main (int argc, char *argv[]) {
266
266
if (argc < 2 ) {
267
267
std::cerr << " [ERROR] No argument provided." << std::endl;
268
+ system (" pause" );
268
269
return 1 ;
269
270
}
271
+ int resp;
270
272
271
273
std::string payload = argv[1 ];
272
274
273
275
if (payload.find (" elgatolink://auth" ) == 0 ) {
274
276
// Send auth to OBS which requested it.
275
- return send_auth_to_obs (payload);
277
+ resp = send_auth_to_obs (payload);
276
278
} 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 ();
282
281
}
282
+
283
+ if (resp == 1 ) {
284
+ system (" pause" );
285
+ }
286
+
287
+ return resp;
283
288
}
You can’t perform that action at this time.
0 commit comments