/Engine/Source/Runtime/Engine/Classes/Engine/GameInstance.h
Find a map override argument on the command-line string (the first argument without a leading '-' or -map=..., whichever comes first).
static bool GetMapOverrideName ( const TCHAR * CmdLine, [FString](API\Runtime\Core\Containers\FString) & OverrideMapName )