@@ -226,7 +226,7 @@ namespace system_tray {
226226
227227 #ifdef _WIN32
228228 std::string tmp_str = " Open Apollo (" + config::nvhttp.sunshine_name + " :" + std::to_string (net::map_port (confighttp::PORT_HTTPS)) + " )" ;
229- static const std::string title_str = convertUtf8ToCurrentCodepage (tmp_str);
229+ static const std::string title_str = utf8ToAcp (tmp_str);
230230 #else
231231 static const std::string title_str = " Open Apollo (" + config::nvhttp.sunshine_name + " :" + std::to_string (net::map_port (confighttp::PORT_HTTPS)) + " )" ;
232232 #endif
@@ -268,8 +268,8 @@ namespace system_tray {
268268 snprintf (msg, std::size (msg), " %s launched." , app_name.c_str ());
269269 snprintf (force_close_msg, std::size (force_close_msg), " Force close [%s]" , app_name.c_str ());
270270 #ifdef _WIN32
271- strncpy (msg, convertUtf8ToCurrentCodepage (msg).c_str (), std::size (msg) - 1 );
272- strncpy (force_close_msg, convertUtf8ToCurrentCodepage (force_close_msg).c_str (), std::size (force_close_msg) - 1 );
271+ strncpy (msg, utf8ToAcp (msg).c_str (), std::size (msg) - 1 );
272+ strncpy (force_close_msg, utf8ToAcp (force_close_msg).c_str (), std::size (force_close_msg) - 1 );
273273 #endif
274274 tray.notification_text = msg;
275275 tray.notification_icon = TRAY_ICON_PLAYING;
@@ -293,7 +293,7 @@ namespace system_tray {
293293 char msg[256 ];
294294 snprintf (msg, std::size (msg), " Streaming paused for %s" , app_name.c_str ());
295295 #ifdef _WIN32
296- strncpy (msg, convertUtf8ToCurrentCodepage (msg).c_str (), std::size (msg) - 1 );
296+ strncpy (msg, utf8ToAcp (msg).c_str (), std::size (msg) - 1 );
297297 #endif
298298 tray.icon = TRAY_ICON_PAUSING;
299299 tray.notification_title = " Stream Paused" ;
@@ -318,7 +318,7 @@ namespace system_tray {
318318 char msg[256 ];
319319 snprintf (msg, std::size (msg), " Streaming stopped for %s" , app_name.c_str ());
320320 #ifdef _WIN32
321- strncpy (msg, convertUtf8ToCurrentCodepage (msg).c_str (), std::size (msg) - 1 );
321+ strncpy (msg, utf8ToAcp (msg).c_str (), std::size (msg) - 1 );
322322 #endif
323323 tray.icon = TRAY_ICON;
324324 tray.notification_icon = TRAY_ICON;
@@ -344,7 +344,7 @@ namespace system_tray {
344344 char msg[256 ];
345345 snprintf (msg, std::size (msg), " Application %s exited too fast with code %d. Click here to terminate the stream." , app_name.c_str (), exit_code);
346346 #ifdef _WIN32
347- strncpy (msg, convertUtf8ToCurrentCodepage (msg).c_str (), std::size (msg) - 1 );
347+ strncpy (msg, utf8ToAcp (msg).c_str (), std::size (msg) - 1 );
348348 #endif
349349 tray.icon = TRAY_ICON;
350350 tray.notification_icon = TRAY_ICON;
@@ -395,7 +395,7 @@ namespace system_tray {
395395 char msg[256 ];
396396 snprintf (msg, std::size (msg), " Device %s paired Succesfully. Please make sure you have access to the device." , device_name.c_str ());
397397 #ifdef _WIN32
398- strncpy (msg, convertUtf8ToCurrentCodepage (msg).c_str (), std::size (msg) - 1 );
398+ strncpy (msg, utf8ToAcp (msg).c_str (), std::size (msg) - 1 );
399399 #endif
400400 tray.notification_title = " Device Paired Succesfully" ;
401401 tray.notification_text = msg;
@@ -419,7 +419,7 @@ namespace system_tray {
419419 char msg[256 ];
420420 snprintf (msg, std::size (msg), " %s has connected to the session." , client_name.c_str ());
421421 #ifdef _WIN32
422- strncpy (msg, convertUtf8ToCurrentCodepage (msg).c_str (), std::size (msg) - 1 );
422+ strncpy (msg, utf8ToAcp (msg).c_str (), std::size (msg) - 1 );
423423 #endif
424424 tray.notification_title = " Client Connected" ;
425425 tray.notification_text = msg;
0 commit comments