2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:47:42 +00:00

Update submodules

This commit is contained in:
Jack Andersen
2018-01-09 20:20:34 -10:00
parent 92b640214a
commit 613d57299e
11 changed files with 115 additions and 86 deletions

View File

@@ -416,22 +416,22 @@ struct ANCS : BigYAML
MetaTransTrans() MetaTransTrans()
: IMetaTrans(Type::Trans, "Trans") {} : IMetaTrans(Type::Trans, "Trans") {}
DECL_YAML DECL_YAML
Value<float> time; Value<float> transDurTime;
Value<atUint32> unk1; Value<atUint32> transDurTimeMode;
Value<atUint8> unk2; Value<bool> unk2;
Value<atUint8> unk3; Value<bool> runA;
Value<atUint32> unk4; Value<atUint32> flags;
}; };
struct MetaTransPhaseTrans : IMetaTrans struct MetaTransPhaseTrans : IMetaTrans
{ {
MetaTransPhaseTrans() MetaTransPhaseTrans()
: IMetaTrans(Type::PhaseTrans, "PhaseTrans") {} : IMetaTrans(Type::PhaseTrans, "PhaseTrans") {}
DECL_YAML DECL_YAML
Value<float> time; Value<float> transDurTime;
Value<atUint32> unk1; Value<atUint32> transDurTimeMode;
Value<atUint8> unk2; Value<bool> unk2;
Value<atUint8> unk3; Value<bool> runA;
Value<atUint32> unk4; Value<atUint32> flags;
}; };
struct Transition : BigYAML struct Transition : BigYAML

View File

@@ -494,6 +494,7 @@ void SpecBase::copyBuildListData(std::vector<std::tuple<size_t, size_t, bool>>&
{ {
fprintf(stderr, "\r %" PRISize " / %" PRISize " %.4s %08X", ++loadIdx, buildList.size(), fprintf(stderr, "\r %" PRISize " / %" PRISize " %.4s %08X", ++loadIdx, buildList.size(),
tag.type.getChars(), (unsigned int)tag.id.Value()); tag.type.getChars(), (unsigned int)tag.id.Value());
fflush(stderr);
fileIndex.emplace_back(); fileIndex.emplace_back();
auto& thisIdx = fileIndex.back(); auto& thisIdx = fileIndex.back();
@@ -626,6 +627,7 @@ void SpecBase::doPackage(const hecl::ProjectPath& path, const hecl::Database::Da
{ {
fprintf(stderr, "\r %" PRISize " / %" PRISize " %.4s %08X", ++loadIdx, buildList.size(), fprintf(stderr, "\r %" PRISize " / %" PRISize " %.4s %08X", ++loadIdx, buildList.size(),
tag.type.getChars(), (unsigned int)tag.id.Value()); tag.type.getChars(), (unsigned int)tag.id.Value());
fflush(stderr);
if (addedTags.find(tag) != addedTags.end()) if (addedTags.find(tag) != addedTags.end())
continue; continue;
addedTags.insert(tag); addedTags.insert(tag);

View File

@@ -18,53 +18,53 @@ endif()
if(WIN32) if(WIN32)
configure_file(platforms/win/urde.rc.in "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/urde.rc" @ONLY) configure_file(platforms/win/urde.rc.in "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/urde.rc" @ONLY)
set(PLAT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/urde.rc") set(PLAT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/platforms/win/urde.rc" platforms/win/urde.manifest)
if(WINDOWS_STORE) if(WINDOWS_STORE)
set(UWP_ASSETS set(UWP_ASSETS
platforms/win/Assets/LargeTile.scale-100.png platforms/win/Assets/LargeTile.scale-100.png
platforms/win/Assets/LargeTile.scale-125.png platforms/win/Assets/LargeTile.scale-125.png
platforms/win/Assets/LargeTile.scale-150.png platforms/win/Assets/LargeTile.scale-150.png
platforms/win/Assets/LargeTile.scale-200.png platforms/win/Assets/LargeTile.scale-200.png
platforms/win/Assets/LargeTile.scale-400.png platforms/win/Assets/LargeTile.scale-400.png
platforms/win/Assets/SmallTile.scale-100.png platforms/win/Assets/SmallTile.scale-100.png
platforms/win/Assets/SmallTile.scale-125.png platforms/win/Assets/SmallTile.scale-125.png
platforms/win/Assets/SmallTile.scale-150.png platforms/win/Assets/SmallTile.scale-150.png
platforms/win/Assets/SmallTile.scale-200.png platforms/win/Assets/SmallTile.scale-200.png
platforms/win/Assets/SmallTile.scale-400.png platforms/win/Assets/SmallTile.scale-400.png
platforms/win/Assets/SplashScreen.scale-100.png platforms/win/Assets/SplashScreen.scale-100.png
platforms/win/Assets/SplashScreen.scale-125.png platforms/win/Assets/SplashScreen.scale-125.png
platforms/win/Assets/SplashScreen.scale-150.png platforms/win/Assets/SplashScreen.scale-150.png
platforms/win/Assets/SplashScreen.scale-200.png platforms/win/Assets/SplashScreen.scale-200.png
platforms/win/Assets/SplashScreen.scale-400.png platforms/win/Assets/SplashScreen.scale-400.png
platforms/win/Assets/Square44x44Logo.scale-100.png platforms/win/Assets/Square44x44Logo.scale-100.png
platforms/win/Assets/Square44x44Logo.scale-125.png platforms/win/Assets/Square44x44Logo.scale-125.png
platforms/win/Assets/Square44x44Logo.scale-150.png platforms/win/Assets/Square44x44Logo.scale-150.png
platforms/win/Assets/Square44x44Logo.scale-200.png platforms/win/Assets/Square44x44Logo.scale-200.png
platforms/win/Assets/Square44x44Logo.scale-400.png platforms/win/Assets/Square44x44Logo.scale-400.png
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-16.png platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-24.png platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-24.png
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-32.png platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-48.png platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-256.png platforms/win/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
platforms/win/Assets/Square150x150Logo.scale-100.png platforms/win/Assets/Square150x150Logo.scale-100.png
platforms/win/Assets/Square150x150Logo.scale-125.png platforms/win/Assets/Square150x150Logo.scale-125.png
platforms/win/Assets/Square150x150Logo.scale-150.png platforms/win/Assets/Square150x150Logo.scale-150.png
platforms/win/Assets/Square150x150Logo.scale-200.png platforms/win/Assets/Square150x150Logo.scale-200.png
platforms/win/Assets/Square150x150Logo.scale-400.png platforms/win/Assets/Square150x150Logo.scale-400.png
platforms/win/Assets/urde.scale-100.png platforms/win/Assets/urde.scale-100.png
platforms/win/Assets/urde.scale-125.png platforms/win/Assets/urde.scale-125.png
platforms/win/Assets/urde.scale-150.png platforms/win/Assets/urde.scale-150.png
platforms/win/Assets/urde.scale-200.png platforms/win/Assets/urde.scale-200.png
platforms/win/Assets/urde.scale-400.png platforms/win/Assets/urde.scale-400.png
platforms/win/Assets/WideTile.scale-100.png platforms/win/Assets/WideTile.scale-100.png
platforms/win/Assets/WideTile.scale-125.png platforms/win/Assets/WideTile.scale-125.png
platforms/win/Assets/WideTile.scale-150.png platforms/win/Assets/WideTile.scale-150.png
platforms/win/Assets/WideTile.scale-200.png platforms/win/Assets/WideTile.scale-200.png
platforms/win/Assets/WideTile.scale-400.png) platforms/win/Assets/WideTile.scale-400.png)
set_property(SOURCE platforms/win/Package.appxmanifest PROPERTY VS_DEPLOYMENT_CONTENT 1) set_property(SOURCE platforms/win/Package.appxmanifest PROPERTY VS_DEPLOYMENT_CONTENT 1)
set_property(SOURCE ${UWP_ASSETS} PROPERTY VS_DEPLOYMENT_CONTENT 1) set_property(SOURCE ${UWP_ASSETS} PROPERTY VS_DEPLOYMENT_CONTENT 1)
set_property(SOURCE ${UWP_ASSETS} PROPERTY VS_DEPLOYMENT_LOCATION "Assets") set_property(SOURCE ${UWP_ASSETS} PROPERTY VS_DEPLOYMENT_LOCATION "Assets")
list(APPEND PLAT_SRCS ${UWP_ASSETS} platforms/win/Package.appxmanifest) list(APPEND PLAT_SRCS ${UWP_ASSETS} platforms/win/Package.appxmanifest)
endif() endif()
elseif(APPLE) elseif(APPLE)
set(PLAT_SRCS platforms/mac/mainicon.icns) set(PLAT_SRCS platforms/mac/mainicon.icns)
@@ -99,7 +99,7 @@ target_link_libraries(urde
UrdeBadging UrdeBadging
RuntimeCommon RuntimeCommon
specter specter-fonts freetype ${DATA_SPEC_LIBS} specter specter-fonts freetype ${DATA_SPEC_LIBS}
hecl-common hecl-blender-addon hecl-full hecl-blender-addon
athena-core nod logvisor athena-libyaml amuse boo athena-core nod logvisor athena-libyaml amuse boo
${PNG_LIB} libjpeg-turbo squish xxhash zeus ${PNG_LIB} libjpeg-turbo squish xxhash zeus
kabufuda jbus ${ZLIB_LIBRARIES} ${LZO_LIB} kabufuda jbus ${ZLIB_LIBRARIES} ${LZO_LIB}
@@ -108,8 +108,8 @@ if(COMMAND add_sanitizers)
add_sanitizers(urde) add_sanitizers(urde)
endif() endif()
if(COMMAND cotire) if(COMMAND cotire)
set_target_properties(urde PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE) set_target_properties(urde PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
cotire(urde) cotire(urde)
endif() endif()
set_target_properties(urde PROPERTIES set_target_properties(urde PROPERTIES

View File

@@ -40,14 +40,18 @@ SplashScreen::SplashScreen(ViewManager& vm, specter::ViewResources& res)
GIT_COMMIT_HASH[0] != '\0' && GIT_COMMIT_HASH[0] != '\0' &&
GIT_BRANCH[0] != '\0') GIT_BRANCH[0] != '\0')
{ {
m_buildInfoStr = hecl::Format("%s: %s\n%s: %s\n%s: %s",
#ifdef URDE_DLPACKAGE #ifdef URDE_DLPACKAGE
vm.translateOr("release", "Release").data(), URDE_DLPACKAGE, if ((URDE_DLPACKAGE)[0])
#else m_buildInfoStr = hecl::Format("%s: %s\n%s: %s\n%s: %s",
vm.translateOr("branch", "Branch").data(), GIT_BRANCH, vm.translateOr("release", "Release").data(), URDE_DLPACKAGE,
vm.translateOr("commit", "Commit").data(), GIT_COMMIT_HASH,
vm.translateOr("date", "Date").data(), GIT_COMMIT_DATE);
else
#endif #endif
vm.translateOr("commit", "Commit").data(), GIT_COMMIT_HASH, m_buildInfoStr = hecl::Format("%s: %s\n%s: %s\n%s: %s",
vm.translateOr("date", "Date").data(), GIT_COMMIT_DATE); vm.translateOr("branch", "Branch").data(), GIT_BRANCH,
vm.translateOr("commit", "Commit").data(), GIT_COMMIT_HASH,
vm.translateOr("date", "Date").data(), GIT_COMMIT_DATE);
} }
m_openProjBind.m_openRecentMenuRoot.m_text = vm.translateOr("recent_projects", "Recent Projects"); m_openProjBind.m_openRecentMenuRoot.m_text = vm.translateOr("recent_projects", "Recent Projects");

View File

@@ -5,6 +5,7 @@
#include "Runtime/CBasics.hpp" #include "Runtime/CBasics.hpp"
#include "ViewManager.hpp" #include "ViewManager.hpp"
#include "hecl/hecl.hpp" #include "hecl/hecl.hpp"
#include "hecl/CVarCommons.hpp"
static logvisor::Module AthenaLog("Athena"); static logvisor::Module AthenaLog("Athena");
static void AthenaExc(athena::error::Level level, const char* file, static void AthenaExc(athena::error::Level level, const char* file,
@@ -56,23 +57,16 @@ struct Application : boo::IApplicationCallback
{ {
hecl::Runtime::FileStoreManager m_fileMgr; hecl::Runtime::FileStoreManager m_fileMgr;
hecl::CVarManager m_cvarManager; hecl::CVarManager m_cvarManager;
hecl::CVarCommons m_cvarCommons;
std::unique_ptr<ViewManager> m_viewManager; std::unique_ptr<ViewManager> m_viewManager;
hecl::CVar* m_drawSamples;
hecl::CVar* m_texAnisotropy;
bool m_running = true; bool m_running = true;
Application() : Application() :
m_fileMgr(_S("urde")), m_fileMgr(_S("urde")),
m_cvarManager(m_fileMgr) m_cvarManager(m_fileMgr),
m_cvarCommons(m_cvarManager)
{ {
m_drawSamples = m_cvarManager.findOrMakeCVar("drawSamples"sv,
"Number of MSAA samples to use for render targets"sv,
1, hecl::CVar::EFlags::System | hecl::CVar::EFlags::Archive);
m_texAnisotropy = m_cvarManager.findOrMakeCVar("texAnisotropy"sv,
"Number of anisotropic samples to use for sampling textures"sv,
1, hecl::CVar::EFlags::System | hecl::CVar::EFlags::Archive);
m_viewManager = std::make_unique<ViewManager>(m_fileMgr, m_cvarManager); m_viewManager = std::make_unique<ViewManager>(m_fileMgr, m_cvarManager);
} }
@@ -129,14 +123,19 @@ struct Application : boo::IApplicationCallback
Log.report(logvisor::Info, _S("CPU Features: %s"), CPUFeatureString(cpuInf).c_str()); Log.report(logvisor::Info, _S("CPU Features: %s"), CPUFeatureString(cpuInf).c_str());
} }
uint32_t getSamples() std::string getGraphicsApi() const
{ {
return uint32_t(std::max(1, m_drawSamples->toInteger())); return m_cvarCommons.getGraphicsApi();
} }
uint32_t getAnisotropy() uint32_t getSamples() const
{ {
return uint32_t(std::max(1, m_texAnisotropy->toInteger())); return m_cvarCommons.getSamples();
}
uint32_t getAnisotropy() const
{
return m_cvarCommons.getAnisotropy();
} }
}; };
@@ -204,8 +203,9 @@ int main(int argc, const boo::SystemChar** argv)
urde::Application appCb; urde::Application appCb;
int ret = boo::ApplicationRun(boo::IApplication::EPlatformType::Auto, int ret = boo::ApplicationRun(boo::IApplication::EPlatformType::Auto,
appCb, _S("urde"), _S("URDE"), argc, argv, appCb.getSamples(), appCb.getAnisotropy(), false); appCb, _S("urde"), _S("URDE"), argc, argv, appCb.getGraphicsApi(),
printf("IM DYING!!\n"); appCb.getSamples(), appCb.getAnisotropy(), false);
//printf("IM DYING!!\n");
return ret; return ret;
} }
#endif #endif

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<description>URDE</description>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true/PM</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>

2
amuse

Submodule amuse updated: fd292491c7...f37296d560

2
hecl

Submodule hecl updated: 5231817e2f...942a9afa99

2
nod

Submodule nod updated: bf00fcd10f...648c015383

Submodule specter updated: 712b8bc904...b949259bf1