Support achievements that are triggered automatically with stats.

The achievements config MUST be generated with the achievements_gen.py script.
This commit is contained in:
Mr_Goldberg 2022-07-12 01:09:27 -04:00
parent 3f8ce69b6d
commit 8695ea2dce
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
5 changed files with 151 additions and 76 deletions

View file

@ -165,6 +165,12 @@ inline std::wstring utf8_decode(const std::string &str)
#include <string.h>
#include <stdio.h>
inline std::string ascii_to_lowercase(std::string data) {
std::transform(data.begin(), data.end(), data.begin(),
[](unsigned char c){ return std::tolower(c); });
return data;
}
// Other libs includes
#include "../json/json.hpp"
#include "../controller/gamepad.h"