This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/common.hpp
Yimura 335e9325b0
feat(logger): use AsyncLogger instead of g3log (#882)
* feat(exception_handler): skip certain exception codes
* feat(zydis): Disable BUILD_DOXYGEN and FEATURE_ENCODER
* feat(cmake): link dbghelp
* feat(exception_handler): implement stack dumper
* feat(logger): differentiate between wine and non-wine
* feat(logger): add NO_COLOR env var support
* fix(logger): fix wine logging (#960)
* feat(exception_handler): added string logging of exception
* fix(logger): exception access violation NO_COLOR

--------

Co-authored-by: Aure7138 <100095051+Aure7138@users.noreply.github.com>
Co-authored-by: tupoy-ya <72797377+tupoy-ya@users.noreply.github.com>
2023-02-08 22:36:55 +00:00

93 lines
1.4 KiB
C++

#ifndef COMMON_INC
#define COMMON_INC
#include <sdkddkver.h>
#include <winsock2.h>
#include <windows.h>
#include <d3d11.h>
#include <cinttypes>
#include <cstddef>
#include <cstdint>
#include <chrono>
#include <ctime>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <atomic>
#include <mutex>
#include <thread>
#include <memory>
#include <new>
#include <sstream>
#include <string>
#include <string_view>
#include <algorithm>
#include <functional>
#include <utility>
#include <stack>
#include <vector>
#include <typeinfo>
#include <type_traits>
#include <exception>
#include <stdexcept>
#include <any>
#include <optional>
#include <variant>
#include <format>
#include <nlohmann/json.hpp>
#include "logger/logger.hpp"
#include "core/globals.hpp"
#include "gta/natives.hpp"
#include "ped/CPed.hpp"
#include "services/notifications/notification_service.hpp"
#include "services/translation_service/translation_service.hpp"
namespace big
{
using namespace std::chrono_literals;
inline HMODULE g_hmodule{};
inline HANDLE g_main_thread{};
inline DWORD g_main_thread_id{};
inline std::atomic_bool g_running{ false };
inline CPed* g_local_player;
}
namespace self
{
inline Ped ped;
inline Player id;
inline Vector3 pos;
inline Vehicle veh;
}
template<size_t N>
struct template_str
{
constexpr template_str(const char(&str)[N])
{
std::copy_n(str, N, value);
}
char value[N];
};
#endif