8000 Dependencies Update by Lioncky · Pull Request #702 · praydog/REFramework · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Dependencies Update #702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
url = https://github.com/gabime/spdlog.git
[submodule "dependencies/glm"]
path = dependencies/glm
url = https://github.com/g-truc/glm
url = https://github.com/g-truc/glm.git
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ if(REF_BUILD_DEPENDENCIES AND CMAKE_SIZEOF_VOID_P EQUAL 8) # build-framework-dep

list(APPEND spdlog_SOURCES
"dependencies/spdlog/src/async.cpp"
"dependencies/spdlog/src/bundled_fmtlib_format.cpp"
"dependencies/spdlog/src/cfg.cpp"
"dependencies/spdlog/src/color_sinks.cpp"
"dependencies/spdlog/src/file_sinks.cpp"
"dependencies/spdlog/src/fmt.cpp"
"dependencies/spdlog/src/spdlog.cpp"
"dependencies/spdlog/src/stdout_sinks.cpp"
)
Expand Down
2 changes: 1 addition & 1 deletion dependencies/glm
Submodule glm updated 153 files
2 changes: 1 addition & 1 deletion dependencies/imgui
Submodule imgui updated 174 files
2 changes: 1 addition & 1 deletion dependencies/imguizmo/GraphEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
// SOFTWARE.
//

#include "imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui.h"
#include "imgui_internal.h"
#include <math.h>
#include <vector>
Expand Down
4 changes: 1 addition & 3 deletions dependencies/imguizmo/ImGuizmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@

#include <cstdint>

#include "imgui.h"
#ifndef IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS
#endif
#include "imgui.h"
#include "imgui_internal.h"
#include "ImGuizmo.h"

Expand Down
2 changes: 1 addition & 1 deletion dependencies/imnodes/imnodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// [SECTION] render helpers
// [SECTION] API implementation

#define IMGUI_DEFINE_MATH_OPERATORS
#include "imnodes.h"
#include "imnodes_internal.h"

#define IMGUI_DEFINE_MATH_OPERATORS
#include <imgui_internal.h>

// Check minimum ImGui version
Expand Down
2 changes: 1 addition & 1 deletion dependencies/spdlog
Submodule spdlog updated 148 files
2 changes: 1 addition & 1 deletion src/DInputHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool DInputHook::hook() {
// Get the addresses of the methods we want to hook.
auto get_device_state = (*(uintptr_t**)device)[9];

spdlog::info("Got IDirectInputDevice::GetDeviceState {:p}", get_device_state);
// spdlog::info("Got IDirectInputDevice::GetDeviceState {:p}", get_device_state);

device->Release();
dinput->Release();
Expand Down
2 changes: 1 addition & 1 deletion src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void startup_thread(HMODULE reframework_module) {

BOOL APIENTRY DllMain(HANDLE handle, DWORD reason, LPVOID reserved) {
if (reason == DLL_PROCESS_ATTACH) {
CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)startup_thread, handle, 0, nullptr);
CreateRemoteThread(INVALID_HANDLE_VALUE, nullptr, 0, (LPTHREAD_START_ROUTINE)startup_thread, handle, 0, nullptr);
}

return TRUE;
Expand Down
2 changes: 1 addition & 1 deletion src/mods/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void Camera::on_config_save(Config& cfg) {
}

void Camera::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
if (!ImGui::CollapsingHeader(get_name().data())) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/FirstPerson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void FirstPerson::on_frame() {
}

void FirstPerson::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);

if (!ImGui::CollapsingHeader(get_name().data())) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/mods/FreeCam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void FreeCam::on_frame() {
}

void FreeCam::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);

if (!ImGui::CollapsingHeader(get_name().data())) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/mods/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void Graphics::on_config_save(utility::Config& cfg) {
}

void Graphics::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
if (!ImGui::CollapsingHeader(get_name().data())) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/ManualFlashlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void ManualFlashlight::on_frame() {
}

void ManualFlashlight::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
if (!ImGui::CollapsingHeader(get_name().data())) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mods/PluginLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ std::optional<std::string> PluginLoader::on_initialize() {
}

void PluginLoader::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_Once);

if (ImGui::CollapsingHeader(get_name().data())) {
std::scoped_lock _{m_mux};
Expand Down
2 changes: 1 addition & 1 deletion src/mods/Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void SceneMods::on_frame() {
}

void SceneMods::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);

if (!ImGui::CollapsingHeader(get_name().data())) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/mods/ScriptRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ void ScriptRunner::on_frame() {
}

void ScriptRunner::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_Once);

if (ImGui::CollapsingHeader(get_name().data())) {
if (ImGui::Button("Run script")) {
Expand Down
6 changes: 3 additions & 3 deletions src/mods/VR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3584,12 +3584,12 @@ void VR::openvr_input_to_re_engine() {
void VR::on_draw_ui() {
// create VR tree entry in menu (imgui)
if (get_runtime()->loaded) {
ImGui::SetNextTreeNodeOpen(m_has_hw_scheduling, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(m_has_hw_scheduling, ImGuiCond_::ImGuiCond_FirstUseEver);
} else {
if (m_openvr->error && !m_openvr->dll_missing) {
ImGui::SetNextTreeNodeOpen(true, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(true, ImGuiCond_::ImGuiCond_FirstUseEver);
} else {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/mods/bindings/ImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,19 +867,19 @@ Vector2f get_mouse() {
}

int get_key_index(int imgui_key) {
return ImGui::GetKeyIndex(imgui_key);
return ImGui::GetKeyIndex((ImGuiKey)imgui_key);
}

bool is_key_down(int key) {
return ImGui::IsKeyDown(key);
return ImGui::IsKeyDown((ImGuiKey)key);
}

bool is_key_pressed(int key) {
return ImGui::IsKeyPressed(key);
return ImGui::IsKeyPressed((ImGuiKey)key);
}

bool is_key_released(int key) {
return ImGui::IsKeyReleased(key);
return ImGui::IsKeyReleased((ImGuiKey)key);
}

bool is_mouse_down(int button) {
Expand Down
4 changes: 2 additions & 2 deletions src/mods/tools/ChainViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void ChainViewer::on_config_save(utility::Config& cfg) {


void ChainViewer::on_draw_dev_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_Once);

if (!ImGui::CollapsingHeader(get_name().data())) {
return;
Expand Down Expand Up @@ -317,7 +317,7 @@ void ChainViewer::on_frame() {
if (made) {
ImGui::PushID(&collider);

ImGui::SetNextTreeNodeOpen(true, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(true, ImGuiCond_::ImGuiCond_Once);

#if TDB_VER >= 69 && !defined(MHRISE_CHAIN70)
if (ImGui::TreeNode(&collider, "Collision %d %d", i, j)) {
Expand Down
2 changes: 1 addition & 1 deletion src/mods/tools/GameObjectsDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void GameObjectsDisplay::on_config_save(utility::Config& cfg) {


void GameObjectsDisplay::on_draw_dev_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_Once);

if (!ImGui::CollapsingHeader(get_name().data())) {
return;
Expand Down
6 changes: 3 additions & 3 deletions src/mods/tools/ObjectExplorer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ ObjectExplorer::ObjectExplorer()
}

void ObjectExplorer::on_draw_dev_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_Once);

if (m_do_init) {
init();
Expand Down Expand Up @@ -430,7 +430,7 @@ void ObjectExplorer::on_draw_dev_ui() {
continue;
}

ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_Once);

auto made_node = ImGui::TreeNode(t->name);
context_menu(obj);
Expand Down Expand Up @@ -2065,7 +2065,7 @@ void ObjectExplorer::handle_address(Address address, int32_t offset, Address par


if (offset != -1) {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_Once);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_Once);

made_node = stretched_tree_node(parent.get(offset), "0x%X:", offset);
auto is_hovered = ImGui::IsItemHovered();
Expand Down
2 changes: 1 addition & 1 deletion src/mods/vr/games/RE8VR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void RE8VR::on_lua_state_destroyed(sol::state& lua) {
}

void RE8VR::on_draw_ui() {
ImGui::SetNextTreeNodeOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);
ImGui::SetNextItemOpen(false, ImGuiCond_::ImGuiCond_FirstUseEver);

if (!ImGui::CollapsingHeader(get_name().data())) {
return;
Expand Down
0