mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 13:47:43 +00:00
Self-rebuilding resource cache; init performance improvements
This commit is contained in:
@@ -8,6 +8,7 @@ namespace DataSpec
|
||||
|
||||
struct ITweakSlideShow : BigYAML
|
||||
{
|
||||
virtual const std::string& GetFont() const=0;
|
||||
virtual const zeus::CColor& GetFontColor() const=0;
|
||||
virtual const zeus::CColor& GetOutlineColor() const=0;
|
||||
virtual float GetX54() const=0;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "Tweaks/CTweakGunRes.hpp"
|
||||
#include "Tweaks/CTweakPlayer.hpp"
|
||||
#include "Tweaks/CTweakCameraBob.hpp"
|
||||
#include "Tweaks/CTweakSlideShow.hpp"
|
||||
|
||||
namespace DataSpec
|
||||
{
|
||||
@@ -321,6 +322,8 @@ ResExtractor<PAKBridge> PAKBridge::LookupExtractor(const PAK& pak, const PAK::En
|
||||
return {ExtractTweak<CTweakPlayer>, nullptr, {_S(".yaml")}};
|
||||
if (!name.compare("CameraBob"))
|
||||
return {ExtractTweak<CTweakCameraBob>, nullptr, {_S(".yaml")}};
|
||||
if (!name.compare("SlideShow"))
|
||||
return {ExtractTweak<CTweakSlideShow>, nullptr, {_S(".yaml")}};
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ struct CTweakSlideShow : ITweakSlideShow
|
||||
CTweakSlideShow() = default;
|
||||
CTweakSlideShow(athena::io::IStreamReader& in) { read(in); }
|
||||
|
||||
const std::string& GetFont() const { return x14_fontAssetName; }
|
||||
const zeus::CColor& GetFontColor() const { return x24_fontColor; }
|
||||
const zeus::CColor& GetOutlineColor() const { return x28_outlineColor; }
|
||||
float GetX54() const { return x54_; }
|
||||
|
||||
Reference in New Issue
Block a user