mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-06 15:09:58 +01:00
update_checker.cpp: Use fmt::format instead of std::format
It seems that certain environments still don't have access to `std::format` yet, and I missed this because it built fine on my machine and CI passed because the code using `std::format` wasn't included in non-tagged builds.
This commit is contained in:
parent
2c8a3b17b4
commit
6df92285e1
@ -4,6 +4,7 @@
|
||||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <fmt/format.h>
|
||||
#include <httplib.h>
|
||||
#include <json.hpp>
|
||||
#include "common/logging/log.h"
|
||||
@ -67,7 +68,7 @@ std::optional<std::string> UpdateChecker::GetLatestRelease(bool include_prerelea
|
||||
const std::string latest_tag =
|
||||
nlohmann::json::parse(tags_response.value()).at(0).at("name");
|
||||
const bool latest_tag_has_release =
|
||||
releases_response.value().find(std::format("\"{}\"", latest_tag)) !=
|
||||
releases_response.value().find(fmt::format("\"{}\"", latest_tag)) !=
|
||||
std::string::npos;
|
||||
|
||||
// If there is a newer tag, but that tag has no associated release, don't prompt the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user