-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
#pragma once | ||
|
||
#include "RED4ext/Api/v0/FileVer.hpp" | ||
#include "RED4ext/Api/SemVer.hpp" | ||
|
||
|
||
struct Image | ||
{ | ||
void Initialize(); | ||
|
||
static std::tuple<uint32_t, uint16_t> GetSupportedVersion() noexcept { return std::make_tuple(2, 1000); } | ||
|
||
static uint64_t MakeVersion(const uint32_t acMajor, const uint16_t acMinor) noexcept { return static_cast<uint64_t>(acMajor) << 32 | static_cast<uint64_t>(acMinor) << 16; } | ||
|
||
[[nodiscard]] std::tuple<uint32_t, uint16_t> GetVersion() const noexcept | ||
{ | ||
return std::make_tuple(static_cast<uint32_t>(version >> 32), static_cast<uint16_t>((version >> 16) & 0xFFFF)); | ||
} | ||
|
||
uint64_t version{0}; | ||
uintptr_t base_address; | ||
mem::region TextRegion; | ||
RED4ext::v0::FileVer FileVersion{0,0,0,0}; | ||
RED4ext::v0::SemVer SemVersion{0, 0, 0, 0}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters