Skip to content

Commit e618bd7

Browse files
authored
Merge pull request #40 from klorfmorf/no-tlb
Remove TLB emulation in favor of using relocations
2 parents 430bb51 + 73df568 commit e618bd7

37 files changed

+68087
-2160
lines changed

CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ endif()
130130
add_custom_target(PatchesBin
131131
COMMAND ${CMAKE_COMMAND} -E env CC=${PATCHES_C_COMPILER} LD=${PATCHES_LD} make
132132
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/patches
133-
BYPRODUCTS ${CMAKE_SOURCE_DIR}/patches/patches.elf
133+
BYPRODUCTS ${CMAKE_SOURCE_DIR}/patches/build/patches.elf
134134
)
135135

136136
# Generate patches_bin.c from patches.bin
@@ -148,7 +148,7 @@ add_custom_command(OUTPUT
148148
# TODO: Look into why modifying patches requires two builds to take
149149
COMMAND ./N64Recomp patches.toml
150150
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
151-
DEPENDS ${CMAKE_SOURCE_DIR}/patches/patches.elf
151+
DEPENDS ${CMAKE_SOURCE_DIR}/patches/build/patches.elf
152152
)
153153

154154
# Main executable
@@ -164,8 +164,8 @@ set (SOURCES
164164
${CMAKE_SOURCE_DIR}/src/game/input.cpp
165165
${CMAKE_SOURCE_DIR}/src/game/controls.cpp
166166
${CMAKE_SOURCE_DIR}/src/game/config.cpp
167+
${CMAKE_SOURCE_DIR}/src/game/scene_table.cpp
167168
${CMAKE_SOURCE_DIR}/src/game/debug.cpp
168-
${CMAKE_SOURCE_DIR}/src/game/patch_api.cpp
169169
${CMAKE_SOURCE_DIR}/src/game/quicksaving.cpp
170170
${CMAKE_SOURCE_DIR}/src/game/recomp_api.cpp
171171
${CMAKE_SOURCE_DIR}/src/game/recomp_actor_api.cpp
@@ -419,3 +419,10 @@ target_sources(Goemon64Recompiled PRIVATE ${GENERATED_NRM_SOURCES})
419419
target_sources(Goemon64Recompiled PRIVATE ${SOURCES})
420420

421421
set_property(TARGET Goemon64Recompiled PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
422+
423+
if(CMAKE_EXPORT_COMPILE_COMMANDS)
424+
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
425+
"${CMAKE_BINARY_DIR}/compile_commands.json"
426+
"${CMAKE_SOURCE_DIR}/compile_commands.json"
427+
)
428+
endif()

flatpak/io.github.klorfmorf.goemon64recomp.metainfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<description>
1919
<p>
20-
Zelda 64: Recompiled is a project that uses N64: Recompiled to statically recompile Majora's Mask (and soon Ocarina of Time) into a native port with many new features and enhancements. This project uses RT64 as the rendering engine to provide some of these enhancements.
20+
Goemon 64: Recompiled is a project that uses N64: Recompiled to statically recompile Mystical Ninja Starring Goemon (and soon Goemon's Great Adventure) into a native port with many new features and enhancements. This project uses RT64 as the rendering engine to provide some of these enhancements.
2121

2222
The original game is required to run this project.
2323

include/goemon_debug.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ namespace goemon64 {
1111
std::vector<std::string> entrances;
1212
};
1313

14-
//! REMOVED
15-
/*
1614
struct AreaWarps {
1715
std::string name;
1816
std::vector<SceneWarps> scenes;
1917
};
2018

2119
extern std::vector<AreaWarps> game_warps;
22-
*/
2320

2421
void do_warp(int area, int scene, int entrance);
2522
void set_time(uint8_t day, uint8_t hour, uint8_t minute);

0 commit comments

Comments
 (0)