Skip to content

Commit

Permalink
Update plugify
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka committed Jul 12, 2024
1 parent 03a4d6c commit 4407e4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(cs2-plugify VERSION 1.0.0.0 DESCRIPTION "Plugify CS2 Core" HOMEPAGE_URL

include("cmake/shared.cmake")

set(PLUGIFY_PROJECT_VERSION "${CMAKE_PROJECT_VERSION}" CACHE STRING "Set version name")
set(PLUGIFY_PROJECT_VERSION "0" CACHE STRING "Set version name")

# We target plugify as object to have exported methods of plugify
set(PLUGIFY_BUILD_OBJECT_LIB ON CACHE INTERNAL "")
Expand Down
2 changes: 1 addition & 1 deletion external/hl2sdk-cs2
2 changes: 1 addition & 1 deletion external/plugify
Submodule plugify updated 46 files
+28 −2 CMakeLists.txt
+3 −3 cmake/asmjit.cmake
+11 −11 cmake/curl.cmake
+3 −3 cmake/glaze.cmake
+3 −3 cmake/sha256.cmake
+248 −0 include/plugify/assembly.h
+2 −2 include/plugify/descriptor.h
+221 −138 include/plugify/function.cpp
+17 −20 include/plugify/function.h
+2 −1 include/plugify/language_module.h
+0 −4 include/plugify/language_module_unit.h
+73 −0 include/plugify/load_flag.h
+39 −33 include/plugify/log.h
+48 −83 include/plugify/math.h
+57 −0 include/plugify/mem_accessor.h
+234 −0 include/plugify/mem_addr.h
+74 −0 include/plugify/mem_protector.h
+374 −134 include/plugify/method.h
+30 −25 include/plugify/module.h
+3 −3 include/plugify/package.h
+5 −3 include/plugify/plugify_provider.h
+41 −34 include/plugify/plugin.h
+1 −1 include/plugify/plugin_reference_descriptor.h
+59 −0 include/plugify/prot_flag.h
+20 −10 src/core/module.cpp
+3 −3 src/core/module.h
+1 −1 src/core/package_manager.cpp
+2 −1 src/core/package_manager.h
+3 −1 src/core/plugin.cpp
+37 −2 src/core/plugin_manager.cpp
+1 −1 src/interface/plugify_provider.cpp
+144 −0 src/utils/assembly.cpp
+162 −0 src/utils/assembly_apple.cpp
+241 −0 src/utils/assembly_linux.cpp
+238 −0 src/utils/assembly_windows.cpp
+2 −2 src/utils/file_system.cpp
+3 −3 src/utils/http_downloader_winhttp.cpp
+0 −90 src/utils/library.cpp
+0 −27 src/utils/library.h
+1 −1 src/utils/library_search_dirs.cpp
+174 −0 src/utils/mem_accesor.cpp
+185 −0 src/utils/mem_protector.cpp
+15 −1 src/utils/os.h
+6 −6 src/utils/strings.cpp
+5 −5 src/utils/strings.h
+6 −6 test/plug/main.cpp
10 changes: 5 additions & 5 deletions src/mm_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ namespace plugifyMM
}
for (auto &pluginRef : pluginManager->GetPlugins())
{
Print<plugify::PluginState>(pluginRef.get(), plugify::PluginStateToString);
Print<plugify::PluginState>(pluginRef.get(), plugify::PluginUtils::ToString);
}
}

Expand All @@ -322,7 +322,7 @@ namespace plugifyMM
}
for (auto &moduleRef : pluginManager->GetModules())
{
Print<plugify::ModuleState>(moduleRef.get(), plugify::ModuleStateToString);
Print<plugify::ModuleState>(moduleRef.get(), plugify::ModuleUtils::ToString);
}
}

Expand All @@ -339,15 +339,15 @@ namespace plugifyMM
if (pluginRef.has_value())
{
auto &plugin = pluginRef->get();
Print<plugify::PluginState>("Plugin", plugin, plugify::PluginStateToString);
Print<plugify::PluginState>("Plugin", plugin, plugify::PluginUtils::ToString);
CONPRINTF(" Language module: %s\n", plugin.GetDescriptor().languageModule.name.c_str());
CONPRINT(" Dependencies: \n");
for (const auto &reference : plugin.GetDescriptor().dependencies)
{
auto dependencyRef = pluginManager->FindPlugin(reference.name);
if (dependencyRef.has_value())
{
Print<plugify::PluginState>(dependencyRef->get(), plugify::PluginStateToString, " ");
Print<plugify::PluginState>(dependencyRef->get(), plugify::PluginUtils::ToString, " ");
}
else
{
Expand Down Expand Up @@ -380,7 +380,7 @@ namespace plugifyMM
if (moduleRef.has_value())
{
auto &module = moduleRef->get();
Print<plugify::ModuleState>("Module", module, plugify::ModuleStateToString);
Print<plugify::ModuleState>("Module", module, plugify::ModuleUtils::ToString);
CONPRINTF(" Language: %s\n", module.GetDescriptor().language.c_str());
CONPRINTF(" File: %s\n\n", module.GetFilePath().string().c_str());
}
Expand Down

0 comments on commit 4407e4d

Please sign in to comment.