mirror of https://github.com/AxioDL/metaforce.git
CCompoundTargetReticle: Declare file-scope strings as arrays
Reduces the overall size of the resulting binary, as only the string data will be stored rather than the string and a pointer pointing to said string data.
This commit is contained in:
parent
267fd2962a
commit
20696fd500
|
@ -11,22 +11,22 @@
|
|||
|
||||
namespace urde {
|
||||
namespace {
|
||||
constexpr const char* skCrosshairsReticleAssetName = "CMDL_Crosshairs";
|
||||
constexpr const char* skOrbitZoneReticleAssetName = "CMDL_OrbitZone";
|
||||
constexpr const char* skSeekerAssetName = "CMDL_Seeker";
|
||||
constexpr const char* skLockConfirmAssetName = "CMDL_LockConfirm";
|
||||
constexpr const char* skTargetFlowerAssetName = "CMDL_TargetFlower";
|
||||
constexpr const char* skMissileBracketAssetName = "CMDL_MissileBracket";
|
||||
constexpr const char* skChargeGaugeAssetName = "CMDL_ChargeGauge";
|
||||
constexpr const char* skChargeBeamTickAssetName = "CMDL_ChargeTickFirst";
|
||||
constexpr const char* skOuterBeamIconSquareNameBase = "CMDL_BeamSquare";
|
||||
constexpr const char* skInnerBeamIconName = "CMDL_InnerBeamIcon";
|
||||
constexpr const char* skLockFireAssetName = "CMDL_LockFIre";
|
||||
constexpr const char* skLockDaggerAssetName = "CMDL_LockDagger0";
|
||||
constexpr const char* skGrappleReticleAssetName = "CMDL_Grapple";
|
||||
constexpr const char* skXRayRingModelName = "CMDL_XRayRetRing";
|
||||
constexpr const char* skThermalReticleAssetName = "CMDL_ThermalRet";
|
||||
constexpr const char* skOrbitPointAssetName = "CMDL_OrbitPoint";
|
||||
constexpr char skCrosshairsReticleAssetName[] = "CMDL_Crosshairs";
|
||||
[[maybe_unused]] constexpr char skOrbitZoneReticleAssetName[] = "CMDL_OrbitZone";
|
||||
constexpr char skSeekerAssetName[] = "CMDL_Seeker";
|
||||
constexpr char skLockConfirmAssetName[] = "CMDL_LockConfirm";
|
||||
constexpr char skTargetFlowerAssetName[] = "CMDL_TargetFlower";
|
||||
constexpr char skMissileBracketAssetName[] = "CMDL_MissileBracket";
|
||||
constexpr char skChargeGaugeAssetName[] = "CMDL_ChargeGauge";
|
||||
constexpr char skChargeBeamTickAssetName[] = "CMDL_ChargeTickFirst";
|
||||
constexpr char skOuterBeamIconSquareNameBase[] = "CMDL_BeamSquare";
|
||||
constexpr char skInnerBeamIconName[] = "CMDL_InnerBeamIcon";
|
||||
constexpr char skLockFireAssetName[] = "CMDL_LockFIre";
|
||||
constexpr char skLockDaggerAssetName[] = "CMDL_LockDagger0";
|
||||
constexpr char skGrappleReticleAssetName[] = "CMDL_Grapple";
|
||||
constexpr char skXRayRingModelName[] = "CMDL_XRayRetRing";
|
||||
constexpr char skThermalReticleAssetName[] = "CMDL_ThermalRet";
|
||||
[[maybe_unused]] constexpr char skOrbitPointAssetName[] = "CMDL_OrbitPoint";
|
||||
|
||||
float offshoot_func(float f1, float f2, float f3) { return (f1 * 0.5f) + std::sin((f3 - 0.5f) * f2); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue