This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -673,12 +673,12 @@ UniqueAotDataPtr LoadAotData(const std::filesystem::path& aot_data_path) {
673
673
<< std::endl;
674
674
return nullptr ;
675
675
}
676
+ std::string path_string = aot_data_path.string ();
676
677
if (!std::filesystem::exists (aot_data_path)) {
677
- std::cerr << " Can't load AOT data from " << aot_data_path. string ()
678
- << " ; no such file. " << std::endl;
678
+ std::cerr << " Can't load AOT data from " << path_string << " ; no such file. "
679
+ << std::endl;
679
680
return nullptr ;
680
681
}
681
- std::string path_string = aot_data_path.u8string ();
682
682
FlutterEngineAOTDataSource source = {};
683
683
source.type = kFlutterEngineAOTDataSourceTypeElfPath ;
684
684
source.elf_path = path_string.c_str ();
@@ -757,8 +757,8 @@ static bool RunFlutterEngine(
757
757
}
758
758
FlutterProjectArgs args = {};
759
759
args.struct_size = sizeof (FlutterProjectArgs);
760
- args.assets_path = assets_path.c_str ();
761
- args.icu_data_path = icu_path.c_str ();
760
+ args.assets_path = assets_path.string (). c_str ();
761
+ args.icu_data_path = icu_path.string (). c_str ();
762
762
args.command_line_argc = static_cast <int >(argv.size ());
763
763
args.command_line_argv = &argv[0 ];
764
764
args.platform_message_callback = EngineOnFlutterPlatformMessage;
You can’t perform that action at this time.
0 commit comments