"""
Configuration settings for the update checker
"""

# Update checker configuration
UPDATE_CONFIG = {
    # Current version of the application
    "current_version": "0.2.1",
    
    # Repository information
    "repo_owner": "HRiggs",
    "repo_name": "ProgressionMods",
    "api_base_url": "https://git.hudsonriggs.systems/api/v1",
    
    # Update check frequency (in hours) - set to 0 to check every startup
    "check_interval_hours": 0,
    
    # Whether to check for updates on startup
    "check_on_startup": True,
    
    # Whether updates are required (blocks app if true)
    "updates_required": True,
    
    # Whether to auto-restart after successful update
    "auto_restart_after_update": True,
    
    # Whether to include pre-releases in update checks
    "include_prereleases": True,
    
    # User agent string for API requests
    "user_agent": "ProgressionLoader-UpdateChecker/1.0",
    
    # Request timeout in seconds
    "request_timeout": 10,
    
    # File to store last check time and skipped versions (set to None to disable persistence)
    "last_check_file": None
}

def get_update_config():
    """Get the update configuration"""
    return UPDATE_CONFIG.copy()

def set_current_version(version):
    """Set the current version"""
    UPDATE_CONFIG["current_version"] = version

def get_current_version():
    """Get the current version"""
    return UPDATE_CONFIG["current_version"]