2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 16:31:21 +00:00

Fix debug build

This commit is contained in:
Luke Street 2025-04-04 02:00:17 -06:00
parent 7439c26b67
commit 2c4d4ea6f6
17 changed files with 19 additions and 24 deletions

View File

@ -339,15 +339,6 @@ include(${CMAKE_CURRENT_LIST_DIR}/bintoc/bintocHelpers.cmake)
add_subdirectory(extern) add_subdirectory(extern)
add_subdirectory(imgui) add_subdirectory(imgui)
if(NOT TARGET atdna)
# Import native atdna if cross-compiling
find_package(atdna REQUIRED)
if(NOT TARGET atdna)
message(FATAL_ERROR "atdna required for building Metaforce; please verify LLVM installation")
endif()
endif()
add_subdirectory(NESEmulator EXCLUDE_FROM_ALL) add_subdirectory(NESEmulator EXCLUDE_FROM_ALL)
add_subdirectory(Runtime) add_subdirectory(Runtime)
add_subdirectory(gbalink EXCLUDE_FROM_ALL) add_subdirectory(gbalink EXCLUDE_FROM_ALL)

View File

@ -288,10 +288,6 @@
"cacheVariables": { "cacheVariables": {
"CMAKE_C_COMPILER_LAUNCHER": "buildcache", "CMAKE_C_COMPILER_LAUNCHER": "buildcache",
"CMAKE_CXX_COMPILER_LAUNCHER": "buildcache", "CMAKE_CXX_COMPILER_LAUNCHER": "buildcache",
"BUILD_ATDNA": {
"type": "BOOL",
"value": false
},
"USE_LTO": { "USE_LTO": {
"type": "BOOL", "type": "BOOL",
"value": false "value": false

View File

@ -1,6 +1,7 @@
#include "Runtime/CObjectList.hpp" #include "Runtime/CObjectList.hpp"
#ifndef NDEBUG #ifndef NDEBUG
#include "Runtime/Logging.hpp" #include "Runtime/Logging.hpp"
#include "Runtime/Formatting.hpp"
#endif #endif
namespace metaforce { namespace metaforce {

View File

@ -1435,7 +1435,7 @@ std::pair<TEditorId, TUniqueId> CStateManager::LoadScriptObject(TAreaId aid, ESc
return {kInvalidEditorId, kInvalidUniqueId}; return {kInvalidEditorId, kInvalidUniqueId};
} else { } else {
#ifndef NDEBUG #ifndef NDEBUG
LogModule.report(logvisor::Info, "Loaded {} in area {}", ent->GetName(), ent->GetAreaIdAlways()); spdlog::info("Loaded {} in area {}", ent->GetName(), ent->GetAreaIdAlways());
#endif #endif
return {id, ent->GetUniqueId()}; return {id, ent->GetUniqueId()};
} }

View File

@ -11,6 +11,7 @@
#include "Runtime/GuiSys/CGuiWidget.hpp" #include "Runtime/GuiSys/CGuiWidget.hpp"
#include "Runtime/GuiSys/CGuiWidgetDrawParms.hpp" #include "Runtime/GuiSys/CGuiWidgetDrawParms.hpp"
#include "Runtime/Input/CFinalInput.hpp" #include "Runtime/Input/CFinalInput.hpp"
#include "Runtime/Formatting.hpp"
#include <zeus/CColor.hpp> #include <zeus/CColor.hpp>

View File

@ -14,6 +14,7 @@
#include "Runtime/Particle/CSwooshDescription.hpp" #include "Runtime/Particle/CSwooshDescription.hpp"
#include "Runtime/Particle/CWarp.hpp" #include "Runtime/Particle/CWarp.hpp"
#include "Runtime/Logging.hpp" #include "Runtime/Logging.hpp"
#include "Runtime/Formatting.hpp"
#define MAX_GLOBAL_PARTICLES 2560 #define MAX_GLOBAL_PARTICLES 2560

View File

@ -12,6 +12,7 @@
#include "Runtime/Particle/CParticleGlobals.hpp" #include "Runtime/Particle/CParticleGlobals.hpp"
#include "Runtime/Particle/CParticleSwoosh.hpp" #include "Runtime/Particle/CParticleSwoosh.hpp"
#include "Runtime/Particle/CSwooshDescription.hpp" #include "Runtime/Particle/CSwooshDescription.hpp"
#include "Runtime/Formatting.hpp"
#include <zeus/CQuaternion.hpp> #include <zeus/CQuaternion.hpp>
#include <zeus/CRelAngle.hpp> #include <zeus/CRelAngle.hpp>

View File

@ -4,6 +4,7 @@
#include "Runtime/Graphics/CCubeRenderer.hpp" #include "Runtime/Graphics/CCubeRenderer.hpp"
#include "Runtime/Particle/CParticleGlobals.hpp" #include "Runtime/Particle/CParticleGlobals.hpp"
#include "Runtime/Particle/CSwooshDescription.hpp" #include "Runtime/Particle/CSwooshDescription.hpp"
#include "Runtime/Formatting.hpp"
#include <chrono> #include <chrono>

View File

@ -11,6 +11,7 @@
#include "Runtime/World/CPlayer.hpp" #include "Runtime/World/CPlayer.hpp"
#include "Runtime/World/CScriptPlatform.hpp" #include "Runtime/World/CScriptPlatform.hpp"
#include "Runtime/World/CWorld.hpp" #include "Runtime/World/CWorld.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path

View File

@ -13,6 +13,7 @@
#include "Runtime/Graphics/CSkinnedModel.hpp" #include "Runtime/Graphics/CSkinnedModel.hpp"
#include "Runtime/World/CActorParameters.hpp" #include "Runtime/World/CActorParameters.hpp"
#include "Runtime/World/CWorld.hpp" #include "Runtime/World/CWorld.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path

View File

@ -10,6 +10,7 @@
#include "Runtime/World/CActorParameters.hpp" #include "Runtime/World/CActorParameters.hpp"
#include "Runtime/World/CPlayer.hpp" #include "Runtime/World/CPlayer.hpp"
#include "Runtime/World/CWorld.hpp" #include "Runtime/World/CWorld.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path

View File

@ -30,6 +30,7 @@
#include "Runtime/World/CScriptPlayerHint.hpp" #include "Runtime/World/CScriptPlayerHint.hpp"
#include "Runtime/World/CScriptWater.hpp" #include "Runtime/World/CScriptWater.hpp"
#include "Runtime/Logging.hpp" #include "Runtime/Logging.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path
@ -3941,7 +3942,7 @@ void CPlayer::SetOrbitState(EPlayerOrbitState state, CStateManager& mgr) {
#ifndef NDEBUG #ifndef NDEBUG
if (x310_orbitTargetId != kInvalidUniqueId) { if (x310_orbitTargetId != kInvalidUniqueId) {
if (const CEntity* ent = mgr.GetObjectById(x310_orbitTargetId)) { if (const CEntity* ent = mgr.GetObjectById(x310_orbitTargetId)) {
Log.report(logvisor::Info, "Orbiting {} {}", ent->GetEditorId(), ent->GetName()); spdlog::info("Orbiting {} {}", ent->GetEditorId(), ent->GetName());
} }
} }
#endif #endif

View File

@ -15,6 +15,7 @@
#include "Runtime/World/CAiFuncMap.hpp" #include "Runtime/World/CAiFuncMap.hpp"
#include "Runtime/World/CGameLight.hpp" #include "Runtime/World/CGameLight.hpp"
#include "Runtime/World/CPlayer.hpp" #include "Runtime/World/CPlayer.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path

View File

@ -6,6 +6,7 @@
#include "Runtime/World/CActorParameters.hpp" #include "Runtime/World/CActorParameters.hpp"
#include "Runtime/World/CPlayer.hpp" #include "Runtime/World/CPlayer.hpp"
#include "Runtime/Logging.hpp" #include "Runtime/Logging.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path
namespace metaforce { namespace metaforce {
@ -24,10 +25,10 @@ CScriptTrigger::CScriptTrigger(TUniqueId uid, std::string_view name, const CEnti
, x148_27_deactivateOnExited(deactivateOnExited) { , x148_27_deactivateOnExited(deactivateOnExited) {
SetCallTouch(false); SetCallTouch(false);
#ifndef NDEBUG #ifndef NDEBUG
// HACK: For some reason MetroidPrime's lair doesn't enable this trigger until after the cutscene, activate it in debug build // HACK: For some reason MetroidPrime's lair doesn't enable this trigger until after the cutscene, activate it in
// debug build
if (GetEditorId() == 0x000B01DB && !GetActive()) { if (GetEditorId() == 0x000B01DB && !GetActive()) {
Log.report(logvisor::Warning, "BUG THIS!: Overriding active for trigger {} in area {}", GetEditorId(), spdlog::warn("BUG THIS!: Overriding active for trigger {} in area {}", GetEditorId(), GetAreaIdAlways());
GetAreaIdAlways());
SetActive(true); SetActive(true);
} }
#endif #endif

View File

@ -22,6 +22,7 @@
#include "Runtime/World/CScriptDoor.hpp" #include "Runtime/World/CScriptDoor.hpp"
#include "Runtime/World/CScriptWaypoint.hpp" #include "Runtime/World/CScriptWaypoint.hpp"
#include "Runtime/World/CWorld.hpp" #include "Runtime/World/CWorld.hpp"
#include "Runtime/Formatting.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path #include "TCastTo.hpp" // Generated file, do not modify include path

View File

@ -8,15 +8,11 @@
#include <iterator> #include <iterator>
#ifndef NDEBUG #ifndef NDEBUG
#include <logvisor/logvisor.hpp> #include "Runtime/Logging.hpp"
#endif #endif
namespace rstl { namespace rstl {
#ifndef NDEBUG
static logvisor::Module Log("rstl");
#endif
/** /**
* @brief Base vector backed by statically-allocated array * @brief Base vector backed by statically-allocated array
*/ */

2
extern/aurora vendored

@ -1 +1 @@
Subproject commit b07d55f71d7d43099d537d23db1d9cfafd87b175 Subproject commit 1016fbb36d5479cbad909323d083ed232063a7a5