attempt to switch to asar dll
This commit is contained in:
BIN
assets/asar.dll
Normal file
BIN
assets/asar.dll
Normal file
Binary file not shown.
@@ -36,12 +36,6 @@ set(
|
|||||||
|
|
||||||
# Asar Assembly ---------------------------------------------------------------
|
# Asar Assembly ---------------------------------------------------------------
|
||||||
add_subdirectory(lib/asar/src)
|
add_subdirectory(lib/asar/src)
|
||||||
get_target_property(ASAR_INCLUDE_DIR asar-static INCLUDE_DIRECTORIES)
|
|
||||||
include_directories(${ASAR_INCLUDE_DIR})
|
|
||||||
set(ASAR_GEN_EXE_TEST OFF)
|
|
||||||
set(ASAR_GEN_DLL_TEST OFF)
|
|
||||||
set(ASAR_GEN_EXE OFF)
|
|
||||||
add_definitions(-Dstricmp=strcasecmp)
|
|
||||||
|
|
||||||
# yaze source files -----------------------------------------------------------
|
# yaze source files -----------------------------------------------------------
|
||||||
set(
|
set(
|
||||||
@@ -99,6 +93,7 @@ add_executable(
|
|||||||
${YAZE_APP_ZELDA3_SRC}
|
${YAZE_APP_ZELDA3_SRC}
|
||||||
${YAZE_GUI_SRC}
|
${YAZE_GUI_SRC}
|
||||||
${IMGUI_SRC}
|
${IMGUI_SRC}
|
||||||
|
lib/asar/src/asar-dll-bindings/c/asardll.c
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
@@ -110,6 +105,7 @@ target_include_directories(
|
|||||||
${PNG_INCLUDE_DIRS}
|
${PNG_INCLUDE_DIRS}
|
||||||
${SDL2_INCLUDE_DIR}
|
${SDL2_INCLUDE_DIR}
|
||||||
${GLEW_INCLUDE_DIRS}
|
${GLEW_INCLUDE_DIRS}
|
||||||
|
lib/asar/src/asar-dll-bindings/c
|
||||||
)
|
)
|
||||||
|
|
||||||
set(
|
set(
|
||||||
@@ -142,7 +138,6 @@ target_link_libraries(
|
|||||||
${PNG_LIBRARIES}
|
${PNG_LIBRARIES}
|
||||||
${GLEW_LIBRARIES}
|
${GLEW_LIBRARIES}
|
||||||
${OPENGL_LIBRARIES}
|
${OPENGL_LIBRARIES}
|
||||||
asar-static
|
|
||||||
ImGui
|
ImGui
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "script.h"
|
#include "script.h"
|
||||||
|
|
||||||
#include <interface-lib.h>
|
#include <asardll.h>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef YAZE_APP_ASM_SCRIPT_H
|
#ifndef YAZE_APP_ASM_SCRIPT_H
|
||||||
#define YAZE_APP_ASM_SCRIPT_H
|
#define YAZE_APP_ASM_SCRIPT_H
|
||||||
|
|
||||||
#include <interface-lib.h>
|
#include <asardll.h>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@@ -23,7 +23,7 @@ constexpr char kDefaultMosaicHook[] = "$02AADB";
|
|||||||
|
|
||||||
class Script {
|
class Script {
|
||||||
public:
|
public:
|
||||||
Script() = default;
|
Script() { asar_init_with_dll_path("C:/Users/starw/Code/yaze/assets/asar.dll"); }
|
||||||
|
|
||||||
absl::Status ApplyPatchToROM(ROM& rom);
|
absl::Status ApplyPatchToROM(ROM& rom);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user