-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/outercloudstudio/Amethyst
- Loading branch information
Showing
211 changed files
with
708 additions
and
335 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,4 +1,4 @@ | ||
#include "amethyst/Config.h" | ||
#include "amethyst/Config.hpp" | ||
|
||
Config::Config() | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
AmethystAPI/src/amethyst/Config.h → AmethystAPI/src/amethyst/Config.hpp
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,4 +1,4 @@ | ||
#include "amethyst/Log.h" | ||
#include "amethyst/Log.hpp" | ||
|
||
namespace Log { | ||
FILE* fp; | ||
|
2 changes: 1 addition & 1 deletion
2
AmethystAPI/src/amethyst/Log.h → AmethystAPI/src/amethyst/Log.hpp
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
2 changes: 1 addition & 1 deletion
2
AmethystAPI/src/amethyst/Memory.h → AmethystAPI/src/amethyst/Memory.hpp
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
2 changes: 1 addition & 1 deletion
2
AmethystAPI/src/amethyst/MinecraftVtables.h → ...hystAPI/src/amethyst/MinecraftVtables.hpp
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,4 +1,4 @@ | ||
#pragma once | ||
#include <amethyst/Memory.h> | ||
#include <amethyst/Memory.hpp> | ||
|
||
void InitializeVtablePtrs(); |
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
File renamed without changes.
18 changes: 9 additions & 9 deletions
18
...PI/src/amethyst/runtime/AmethystContext.h → .../src/amethyst/runtime/AmethystContext.hpp
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
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
File renamed without changes.
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
File renamed without changes.
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
6 changes: 3 additions & 3 deletions
6
...src/amethyst/runtime/input/InputManager.h → ...c/amethyst/runtime/input/InputManager.hpp
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
2 changes: 1 addition & 1 deletion
2
.../runtime/minecraft/MinecraftPackageInfo.h → ...untime/minecraft/MinecraftPackageInfo.hpp
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,4 +1,4 @@ | ||
#include "Mod.h" | ||
#include "Mod.hpp" | ||
#include <fstream> | ||
|
||
Mod::Mod(std::string modName) | ||
|
4 changes: 2 additions & 2 deletions
4
AmethystAPI/src/amethyst/runtime/mod/Mod.h → AmethystAPI/src/amethyst/runtime/mod/Mod.hpp
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
6 changes: 3 additions & 3 deletions
6
AmethystAPI/src/amethyst/runtime/patchManager/PatchManager.cpp
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
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
...hystAPI/src/amethyst/ui/NinesliceHelper.h → ...stAPI/src/amethyst/ui/NinesliceHelper.hpp
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
2 changes: 1 addition & 1 deletion
2
AmethystAPI/src/minecraft/src-client/common/client/game/ClientInstance.cpp
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
10 changes: 5 additions & 5 deletions
10
...lient/common/client/game/ClientInstance.h → ...ent/common/client/game/ClientInstance.hpp
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
AmethystAPI/src/minecraft/src-client/common/client/gui/ScreenView.cpp
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 +1 @@ | ||
#include "minecraft/src-client/common/client/gui/ScreenView.h" | ||
#include "minecraft/src-client/common/client/gui/ScreenView.hpp" |
4 changes: 2 additions & 2 deletions
4
...src-client/common/client/gui/ScreenView.h → ...c-client/common/client/gui/ScreenView.hpp
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
13 changes: 13 additions & 0 deletions
13
AmethystAPI/src/minecraft/src-client/common/client/gui/controls/SliderComponent.hpp
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
#include "minecraft/src-client/common/client/gui/controls/UIComponent.hpp" | ||
#include <cstddef> | ||
#include <cstdint> | ||
|
||
class SliderComponent : public UIComponent { | ||
public: | ||
/* this + 16 */ std::byte padding16[48]; | ||
/* this + 64 */ float mPercentage; | ||
|
||
// 1.20.71.1 - 40 53 48 83 EC ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 44 24 ? 48 8B D9 F3 0F 11 4C 24 ? 48 8B 49 | ||
int64_t _updateSliderFromStepSize(int64_t a2, int64_t a3); | ||
}; |
7 changes: 7 additions & 0 deletions
7
AmethystAPI/src/minecraft/src-client/common/client/gui/controls/TextComponent.cpp
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "minecraft/src-client/common/client/gui/controls/TextComponent.hpp" | ||
|
||
void TextComponent::setText(const std::string& text) { | ||
using function = decltype(&TextComponent::setText); | ||
static auto func = std::bit_cast<function>(SigScan("48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8D B9 ? ? ? ? 48 8B DA 48 83 7F")); | ||
(this->*func)(text); | ||
} |
17 changes: 17 additions & 0 deletions
17
AmethystAPI/src/minecraft/src-client/common/client/gui/controls/TextComponent.hpp
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
#include "minecraft/src-client/common/client/gui/controls/UIComponent.hpp" | ||
#include <cstddef> | ||
#include <cstdint> | ||
#include <string> | ||
#include <amethyst/Memory.hpp> | ||
|
||
class TextComponent : public UIComponent { | ||
public: | ||
/* this + 16 */ std::byte padding16[288]; | ||
/* this + 304 */ std::string mLabel; | ||
|
||
// 1.20.71.1 - 48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8D B9 ? ? ? ? 48 8B DA 48 83 7F | ||
void setText(const std::string& text); | ||
}; | ||
|
||
///* this + 464 */ bool mCachedTextDirty; |
14 changes: 14 additions & 0 deletions
14
AmethystAPI/src/minecraft/src-client/common/client/gui/controls/ToggleComponent.hpp
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
#include "minecraft/src-client/common/client/gui/controls/UIComponent.hpp" | ||
#include <cstddef> | ||
#include <cstdint> | ||
|
||
class ToggleComponent : public UIComponent { | ||
public: | ||
/* this + 16 */ std::byte padding16[128]; | ||
/* this + 144 */ bool mChecked : 1; | ||
/* this + 144 */ bool mHover : 1; | ||
|
||
// 1.20.71.1 - 48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC ? 48 8B F9 0F B6 81 | ||
int64_t setChecked(int64_t checked, int64_t a3); | ||
}; |
10 changes: 10 additions & 0 deletions
10
AmethystAPI/src/minecraft/src-client/common/client/gui/controls/UIComponent.hpp
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#pragma once | ||
#include <cstdint> | ||
|
||
class UIControl; | ||
|
||
class UIComponent { | ||
public: | ||
/* this + 0 */ uintptr_t** vtable; | ||
/* this + 8 */ UIControl& mOwner; | ||
}; |
File renamed without changes.
Oops, something went wrong.