Use a comma-separated args string for UWP (flutter/engine#26110)

UWP apps get a single arguments string on launch rather than an array.
The current implementation splits that args string on commas. This
updates the UWP launch args generation to match.

Part of https://github.com/flutter/flutter/issues/81756
Part of https://github.com/flutter/flutter/issues/82085
This commit is contained in:
Chris Bracken
2021-05-12 17:11:11 -07:00
committed by GitHub
parent 856ff8ac19
commit c364718981

View File

@@ -69,12 +69,12 @@ int main(int argc, char** argv) {
// Get the package ID.
std::string package_id = args[1];
// Concatenate the remaining args, space-separated.
// Concatenate the remaining args, comma-separated.
std::ostringstream app_args;
for (int i = 2; i < args.size(); ++i) {
app_args << args[i];
if (i < args.size() - 1) {
app_args << " ";
app_args << ",";
}
}
int process_id = LaunchApp(flutter::Utf16FromUtf8(package_id),