AdvancedLauncher.Management.ConfigurationManager.GetGamePath C# (CSharp) Method

GetGamePath() public method

public GetGamePath ( GameModel model ) : string
model AdvancedLauncher.SDK.Model.Config.GameModel
return string
        public string GetGamePath(GameModel model)
        {
            if (model == null) {
                throw new ArgumentException("model argument cannot be null");
            }
            IConfiguration config = GetConfiguration(model);
            if (string.IsNullOrEmpty(model.GamePath)) {
                return GetGamePathFromRegistry(config);
            }
            return model.GamePath;
        }