Skip to content

Play your Steam library's Windows games on a jailbroken PS5.

C++
835 B
Raw Blame
#pragma once
#include "library/model.h"
#include <vector>

namespace playden {
enum class LibrarySort { TitleAscending, TitleDescending, AppId };
struct LibraryQuery {
    std::string text;
    std::string developer; // Empty means all; exact case-folded developer label otherwise.
};
// Shared deterministic folding; malformed UTF-8 retains byte-exact behavior.
std::string FoldLibraryText(const std::string& value);
// Unicode case folding, then bytewise UTF-8 order; deliberately not locale collation.
// Only supplied ownership records are queried. No install/playability state is inferred.
std::vector<GameId> QueryLibrary(const std::vector<GameSummary>& games,
                                const LibraryQuery& query = {},
                                LibrarySort sort = LibrarySort::TitleAscending);
} // namespace playden