Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add RAHasher and util to calculate RetroAchievements hashes #1206

Merged
merged 1 commit into from
Sep 23, 2024

Commits on Sep 23, 2024

  1. feat: Add RAHasher and util to calculate RetroAchievements hashes

    Build and include the `RAHasher` binary in the Docker image, to
    calculate hashes for RetroAchievements. Also, add a service to
    run `RAHasher` from Python.
    
    Example usage:
    
    ```python
    from adapters.services.rahasher import RAHasherError, RAHasherService
    
    rahasher = RAHasherService()
    try:
        hash = await rahasher.calculate_hash("nes", Path("path/to/rom.nes"))
    except RAHasherError:
        # Handle error
        hash = None
    ```
    adamantike committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    a82489a View commit details
    Browse the repository at this point in the history