You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb Per.Larsson ### ISourceControlProvider - Add a new ISourceControlProvider::Init overload that returns a struct (FInitResult) and takes a bitfield of flags (EInitFlags) so that we can more easily extend the initialization in future and return things to the caller. - If a provider does not implement the new overload we fall-back to the original. This will be removed once all providers support the new path. ### PerforceSourceControlProvider - Support the new init options via FPerforceConnection::EnsureValidConnection and update places that call it. ### FPerforceConnection - Update ::AutoDetectWorkspace to return errors to the caller rather than handle its own logging. - ::TestLoginConnection and ::TestClientConnection no longer calls FPerforceSourceControlProvider::SetLastErrors, this will be done at a higher level. - ::AutoDetectWorkspace still does its own logging which will be fixed in a future update, it does however return its errors to the caller. - Split the implementation of ::EnsureValidConnection to a stand alone internal function, the original function now handles and consolidates error handling. -- Changed the logic to early out of failure rather than constantly checking a boolean all the way down. -- Tried to remove the need for FPerforceSourceControlProvider to be passed in but a few places still require it. -- Fixed our handling of the P4PORT value so that we can at least report problems if the address uses unicode characters. I have not yet tested if we can actually connect to such an address. We no longer use the servers unicode setting to decide the port strings encoding as it is not affected by the server settings. -- Each error encountered should now record a localized error that we expect the user to be able to react to, then an array of errors from the API itself. -- Once the internal code has run we will do a pass on all errors (if any) and strip any whitespace at the end (p4 tends to end error messages with newline characters) and then add a final entry to the additional errors detailing the settings at the point of failure. This was mostly being done before but is now enforced for every error. -- No longer log the ticket, although the workflow to allow the user to supply one is not common we still probably don't want to save that to log files. [CL 26952104 by paul chipchase in ue5-main branch]
6.1 KiB
6.1 KiB