@@ -43,14 +43,14 @@ namespace Addictol
4343 static REL::Relocation<std::uint32_t *> PipboyConstraintWidth_PowerArmor{ RE::ID::MenuCursor::PipboyConstraintWidth_PowerArmor };
4444 static REL::Relocation<std::uint32_t *> PipboyConstraintHeight_PowerArmor{ RE::ID::MenuCursor::PipboyConstraintHeight_PowerArmor };
4545
46- inline void LogPipBoyConstraints (std::string a_title, std::uint32_t a_tlx, std::uint32_t a_tly, std::uint32_t a_width, std::uint32_t a_height) noexcept
46+ inline void LogPipBoyConstraints (std::string_view a_title, std::uint32_t a_tlx, std::uint32_t a_tly, std::uint32_t a_width, std::uint32_t a_height) noexcept
4747 {
4848#if !AD_NOMESSAGE_PIPBOY_CURSOR_CONSTRAINTS
49- REX::INFO (" {}" , a_title);
50- REX::INFO (" TLX: {}" , a_tlx);
51- REX::INFO (" TLY: {}" , a_tly);
52- REX::INFO (" Width: {}" , a_width);
53- REX::INFO (" Height: {}" , a_height);
49+ REX::INFO (" {}" sv , a_title);
50+ REX::INFO (" TLX: {}" sv , a_tlx);
51+ REX::INFO (" TLY: {}" sv , a_tly);
52+ REX::INFO (" Width: {}" sv , a_width);
53+ REX::INFO (" Height: {}" sv , a_height);
5454#endif
5555 }
5656
@@ -67,13 +67,13 @@ namespace Addictol
6767 // Fail if we couldn't get the Settings
6868 if (!uPipboyTargetWidth || !uPipboyTargetHeight)
6969 {
70- REX::WARN (" Could not get one of the uPipboyTargetWidth/Height settings!" );
70+ REX::WARN (" Could not get one of the uPipboyTargetWidth/Height settings!" sv );
7171 return false ;
7272 }
7373
7474#if !AD_NOMESSAGE_PIPBOY_CURSOR_CONSTRAINTS
7575 // Log PipBoy Resolution
76- REX::INFO (" PipBoy Resolution: {}x{}" , uPipboyTargetWidth->GetUInt (), uPipboyTargetHeight->GetUInt ());
76+ REX::INFO (" PipBoy Resolution: {}x{}" sv , uPipboyTargetWidth->GetUInt (), uPipboyTargetHeight->GetUInt ());
7777#endif
7878
7979 return true ;
@@ -90,8 +90,8 @@ namespace Addictol
9090 const float heightFactor = (float )uPipboyTargetHeight->GetUInt () / defaultPipboyTargetHeight;
9191
9292 // Log before updating PipBoy Constraints
93- LogPipBoyConstraints (" PipBoy Constraints Pre-Update:" , *PipboyConstraintTLX, *PipboyConstraintTLY, *PipboyConstraintWidth, *PipboyConstraintHeight);
94- LogPipBoyConstraints (" PA PipBoy Constraints Pre-Update:" , *PipboyConstraintTLX_PowerArmor, *PipboyConstraintTLY_PowerArmor, *PipboyConstraintWidth_PowerArmor, *PipboyConstraintHeight_PowerArmor);
93+ LogPipBoyConstraints (" PipBoy Constraints Pre-Update:" sv , *PipboyConstraintTLX, *PipboyConstraintTLY, *PipboyConstraintWidth, *PipboyConstraintHeight);
94+ LogPipBoyConstraints (" PA PipBoy Constraints Pre-Update:" sv , *PipboyConstraintTLX_PowerArmor, *PipboyConstraintTLY_PowerArmor, *PipboyConstraintWidth_PowerArmor, *PipboyConstraintHeight_PowerArmor);
9595
9696 // Update PipBoy Constraints
9797 *PipboyConstraintTLX = static_cast <std::uint32_t >(std::ceil (defaultPipboyConstraintTLX * widthFactor));
@@ -106,8 +106,8 @@ namespace Addictol
106106 *PipboyConstraintHeight_PowerArmor = static_cast <std::uint32_t >(std::ceil (defaultPipboyConstraintHeight_PowerArmor * heightFactor));
107107
108108 // Log after updating PipBoy Constraints
109- LogPipBoyConstraints (" PipBoy Constraints Post-Update:" , *PipboyConstraintTLX, *PipboyConstraintTLY, *PipboyConstraintWidth, *PipboyConstraintHeight);
110- LogPipBoyConstraints (" PA PipBoy Constraints Post-Update:" , *PipboyConstraintTLX_PowerArmor, *PipboyConstraintTLY_PowerArmor, *PipboyConstraintWidth_PowerArmor, *PipboyConstraintHeight_PowerArmor);
109+ LogPipBoyConstraints (" PipBoy Constraints Post-Update:" sv , *PipboyConstraintTLX, *PipboyConstraintTLY, *PipboyConstraintWidth, *PipboyConstraintHeight);
110+ LogPipBoyConstraints (" PA PipBoy Constraints Post-Update:" sv , *PipboyConstraintTLX_PowerArmor, *PipboyConstraintTLY_PowerArmor, *PipboyConstraintWidth_PowerArmor, *PipboyConstraintHeight_PowerArmor);
111111
112112 return true ;
113113 }
0 commit comments