From 4eace11a8b040644d74db7145cfcef86f994b51e Mon Sep 17 00:00:00 2001
From: Connor McLaughlin <stenzek@gmail.com>
Date: Sun, 28 Feb 2021 19:04:40 +1000
Subject: [PATCH] Enable building with RetroAchievements by default

---
 .github/workflows/rolling-release.yml | 4 ++--
 CMakeLists.txt                        | 2 +-
 README.md                             | 5 ++++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/rolling-release.yml b/.github/workflows/rolling-release.yml
index 9ccca227b..1e455b132 100644
--- a/.github/workflows/rolling-release.yml
+++ b/.github/workflows/rolling-release.yml
@@ -166,7 +166,7 @@ jobs:
       shell: bash
       run: |
         sudo apt-get update
-        sudo apt-get -y install cmake ninja-build ccache libsdl2-dev libgtk-3-dev qtbase5-dev qtbase5-dev-tools qtbase5-private-dev qt5-default qttools5-dev libegl1-mesa-dev libevdev-dev libgbm-dev libdrm-dev libwayland-dev libwayland-egl-backend-dev extra-cmake-modules
+        sudo apt-get -y install cmake ninja-build ccache libsdl2-dev libgtk-3-dev qtbase5-dev qtbase5-dev-tools qtbase5-private-dev qt5-default qttools5-dev libegl1-mesa-dev libevdev-dev libgbm-dev libdrm-dev libwayland-dev libwayland-egl-backend-dev extra-cmake-modules libcurl4-gnutls-dev
 
     - name: Compile build
       shell: bash
@@ -249,7 +249,7 @@ jobs:
     - name: Install packages
       shell: bash
       run: |
-        brew install qt5 sdl2
+        brew install qt5 sdl2 curl
 
     - name: Clone mac externals
       shell: bash
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9aae8f385..26441da48 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,7 +22,7 @@ if(NOT ANDROID)
   option(BUILD_NOGUI_FRONTEND "Build the NoGUI frontend" ON)
   option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
   option(ENABLE_DISCORD_PRESENCE "Build with Discord Rich Presence support" ON)
-  option(ENABLE_CHEEVOS "Build with RetroAchievements support" OFF)
+  option(ENABLE_CHEEVOS "Build with RetroAchievements support" ON)
   option(USE_SDL2 "Link with SDL2 for controller support" ON)
 endif()
 
diff --git a/README.md b/README.md
index c5963d625..477df98b3 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,8 @@ Other features include:
  - Memory card editor and save importer
  - Emulated CPU overclocking
  - Integrated and remote debugging
+ - Multitap controllers (up to 8 devices)
+ - RetroAchievements
 
 ## System Requirements
  - A CPU faster than a potato. But it needs to be x86_64, AArch32/armv7, or AArch64/ARMv8, otherwise you won't get a recompiler and it'll be slow.
@@ -180,8 +182,9 @@ Requirements (Debian/Ubuntu package names):
  - Qt 5 (`qtbase5-dev`, `qtbase5-private-dev`, `qtbase5-dev-tools`, `qttools5-dev`)
  - libevdev (`libevdev-dev`)
  - git (`git`) (Note: needed to clone the repository and at build time)
- - Optional for faster building: Ninja (`ninja-build`)
+ - Optional for RetroAchievements (on by default): libcurl (`libcurl4-gnutls-dev`)
  - Optional for framebuffer output: DRM/GBM (`libgbm-dev`, `libdrm-dev`)
+ - Optional for faster building: Ninja (`ninja-build`)
 
 1. Clone the repository. Submodules aren't necessary, there is only one and it is only used for Windows (`git clone https://github.com/stenzek/duckstation.git -b dev`).
 2. Create a build directory, either in-tree or elsewhere.