Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 6/4/23.
3//
4
5#pragma once
6#ifndef ATLASGAMEMANAGER_UTILS_HPP
7#define ATLASGAMEMANAGER_UTILS_HPP
8
9#include <QString>
10
11#include <filesystem>
12#include <vector>
13
14namespace gl
15{
17 {
18 QString version {};
19 // I can only assume that this ID is actually some internal thing used by GL. Sadly we can't really access it without tid's assistance.
20 // So it's just a dummy for this time.
21 std::uint64_t gl_id { 0 };
22 QString name {};
23 QString thread_url {};
25 };
26
27#define GL_INFO_FILENAME "GL_Infos.ini"
28
29 [[nodiscard]] GameListInfos parse( const std::filesystem::path& path );
30
31 [[nodiscard]] AtlasID parseAtlas( const std::filesystem::path& path );
32
33 [[nodiscard]] inline bool dirHasGLInfo( const std::filesystem::path& path )
34 {
35 return std::filesystem::exists( path / GL_INFO_FILENAME );
36 }
37
38} // namespace gl
39
40#endif //ATLASGAMEMANAGER_UTILS_HPP
std::uint64_t F95ID
Definition Types.hpp:13
std::uint64_t AtlasID
Definition Types.hpp:12
constexpr F95ID INVALID_F95_ID
Definition Types.hpp:17
Definition parser.cpp:14
AtlasID parseAtlas(const std::filesystem::path &path)
Definition parser.cpp:73
GameListInfos parse(const std::filesystem::path &path)
Parses a GL_Infos.ini file for it's information.
Definition parser.cpp:26
bool dirHasGLInfo(const std::filesystem::path &path)
Definition utils.hpp:33
Definition utils.hpp:17
QString version
Definition utils.hpp:18
F95ID f95_thread_id
Definition utils.hpp:24
QString thread_url
Definition utils.hpp:23
std::uint64_t gl_id
Definition utils.hpp:21
QString name
Definition utils.hpp:22
#define GL_INFO_FILENAME
Definition utils.hpp:27