You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
617 B
23 lines
617 B
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// Copyright Citra Emulator Project / Azahar Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
namespace UpdateChecker {
|
|
|
|
typedef struct {
|
|
std::string tag;
|
|
std::string name;
|
|
} Update;
|
|
|
|
std::optional<std::string> GetResponse(std::string url, std::string path);
|
|
std::optional<Update> GetLatestRelease(bool include_prereleases);
|
|
std::optional<Update> GetUpdate();
|
|
} // namespace UpdateChecker
|