diff --git a/CMakeLists.txt b/CMakeLists.txt index 2383f2b..890b88d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(SRC_DIR ${CMAKE_SOURCE_DIR}/src) +link_directories("$ENV{JAVA_HOME}/lib") # libraries add_subdirectory(${CMAKE_SOURCE_DIR}/includes/ReflectiveDLLInjection) diff --git a/includes/JuiceAgent/JuiceAgent.h b/includes/JuiceAgent/JuiceAgent.h new file mode 100644 index 0000000..18fa729 --- /dev/null +++ b/includes/JuiceAgent/JuiceAgent.h @@ -0,0 +1,18 @@ +#ifndef JUICEAGENT_H +#define JUICEAGENT_H + +#define INJECT_PATH_MAX 260 + +typedef struct _InjectionInfo { + char BootstrapAPIPath[INJECT_PATH_MAX]; + char JuiceLoaderJarPath[INJECT_PATH_MAX]; + char EntryJarPath[INJECT_PATH_MAX]; + char EntryClass[INJECT_PATH_MAX]; + char EntryMethod[INJECT_PATH_MAX]; + char InjectionDir[INJECT_PATH_MAX]; + char JuiceLoaderLibraryPath[INJECT_PATH_MAX]; +} InjectionInfoType; + +extern InjectionInfoType InjectionInfo; + +#endif // JUICEAGENT_H \ No newline at end of file diff --git a/includes/tinytoml/toml.h b/includes/tinytoml/toml.h new file mode 100644 index 0000000..1765d0e --- /dev/null +++ b/includes/tinytoml/toml.h @@ -0,0 +1,2050 @@ +#ifndef TINYTOML_H_ +#define TINYTOML_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace toml { + +// ---------------------------------------------------------------------- +// Declarations + +class Value; +typedef std::chrono::system_clock::time_point Time; +typedef std::vector Array; +typedef std::map Table; + +namespace internal { +template struct call_traits_value { + typedef T return_type; +}; +template struct call_traits_ref { + typedef const T& return_type; +}; +} // namespace internal + +template struct call_traits; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_value {}; +template<> struct call_traits : public internal::call_traits_ref {}; +template<> struct call_traits