@@ -655,13 +655,13 @@ SString CInstallManager::_PrepareLaunchLocation()
655
655
if (fs::is_regular_file (sourcePath, ec))
656
656
{
657
657
SString strMessage (_ (" MTA:SA cannot launch because copying a file failed:" ));
658
- strMessage += " \n\n " + targetPath.string ();
658
+ strMessage += " \n\n " + targetPath.u8string ();
659
659
BrowseToSolution (" copy-files" , ASK_GO_ONLINE, strMessage);
660
660
}
661
661
else
662
662
{
663
663
SString strMessage (_ (" MTA:SA cannot launch because an MTA:SA file is incorrect or missing:" ));
664
- strMessage += " \n\n " + sourcePath.string ();
664
+ strMessage += " \n\n " + sourcePath.u8string ();
665
665
BrowseToSolution (" mta-datafiles-missing" , ASK_GO_ONLINE, strMessage);
666
666
}
667
667
@@ -693,15 +693,15 @@ SString CInstallManager::_ProcessGtaPatchCheck()
693
693
if (!FileGenerator::IsPatchBase (patchBasePath))
694
694
{
695
695
SString strMessage (_ (" MTA:SA cannot launch because a GTA:SA file is incorrect or missing:" ));
696
- strMessage += " \n\n " + patchBasePath.string ();
696
+ strMessage += " \n\n " + patchBasePath.u8string ();
697
697
BrowseToSolution (" gengta_pakfiles" , ASK_GO_ONLINE, strMessage);
698
698
return " quit" ;
699
699
}
700
700
701
701
if (!FileGenerator::IsPatchDiff (patchDiffPath))
702
702
{
703
703
SString strMessage (_ (" MTA:SA cannot launch because an MTA:SA file is incorrect or missing:" ));
704
- strMessage += " \n\n " + patchDiffPath.string ();
704
+ strMessage += " \n\n " + patchDiffPath.u8string ();
705
705
BrowseToSolution (" mta-datafiles-missing" , ASK_GO_ONLINE, strMessage);
706
706
return " quit" ;
707
707
}
@@ -771,7 +771,7 @@ SString CInstallManager::_ProcessGtaDllCheck()
771
771
if (isAdmin)
772
772
{
773
773
SString strMessage (_ (" MTA:SA cannot launch because a GTA:SA file is incorrect or missing:" ));
774
- strMessage += " \n\n " + dependecyPath.string ();
774
+ strMessage += " \n\n " + dependecyPath.u8string ();
775
775
BrowseToSolution (SString (" gendep_error&name=%s" , dependency.fileName ), ASK_GO_ONLINE, strMessage);
776
776
return " quit" ;
777
777
}
@@ -826,7 +826,7 @@ SString CInstallManager::_ProcessGtaVersionCheck()
826
826
if (isAdmin)
827
827
{
828
828
SString strMessage (_ (" MTA:SA cannot launch because the GTA:SA executable is incorrect or missing:" ));
829
- strMessage += " \n\n " + gtaExePath.string ();
829
+ strMessage += " \n\n " + gtaExePath.u8string ();
830
830
strMessage +=
831
831
" \n\n " +
832
832
_ (" Please check your anti-virus for a false-positive detection, try to add an exception for the GTA:SA executable and restart MTA:SA." );
@@ -851,7 +851,7 @@ SString CInstallManager::_ProcessGtaVersionCheck()
851
851
if (isAdmin)
852
852
{
853
853
SString strMessage (_ (" MTA:SA cannot launch because the GTA:SA executable is not loadable:" ));
854
- strMessage += " \n\n " + gtaExePath.string ();
854
+ strMessage += " \n\n " + gtaExePath.u8string ();
855
855
BrowseToSolution (SString (" gengta_error&code=%d" , ec.value ()), ASK_GO_ONLINE, strMessage);
856
856
return " quit" ;
857
857
}
@@ -874,7 +874,7 @@ SString CInstallManager::_ProcessGtaVersionCheck()
874
874
if (isAdmin)
875
875
{
876
876
SString strMessage (_ (" MTA:SA cannot launch because patching GTA:SA has failed:" ));
877
- strMessage += " \n\n " + gtaExePath.string ();
877
+ strMessage += " \n\n " + gtaExePath.u8string ();
878
878
BrowseToSolution (SString (" patchgta_error&code=%d" , ec.value ()), ASK_GO_ONLINE, strMessage);
879
879
return " quit" ;
880
880
}
0 commit comments