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;
}