Move application strings into separate namespace
Them being in the overlay controller required them to be static, which forces the compiler to give them a memory location at compile time. They also don't really fit into the overlaycontroller.
This commit is contained in:
@@ -259,8 +259,8 @@ QString getBatteryIconPath( int batteryState )
|
||||
vr::VROverlayHandle_t createBatteryOverlay( vr::TrackedDeviceIndex_t index )
|
||||
{
|
||||
vr::VROverlayHandle_t handle = vr::k_ulOverlayHandleInvalid;
|
||||
std::string batteryKey = std::string( OverlayController::applicationKey )
|
||||
+ ".battery." + std::to_string( index );
|
||||
std::string batteryKey = std::string( application_strings::applicationKey ) + ".battery."
|
||||
+ std::to_string( index );
|
||||
vr::VROverlayError overlayError = vr::VROverlay()->CreateOverlay(
|
||||
batteryKey.c_str(), batteryKey.c_str(), &handle );
|
||||
if ( overlayError == vr::VROverlayError_None )
|
||||
|
||||
Reference in New Issue
Block a user