get rid of cstr dependency

This commit is contained in:
galister
2025-04-07 04:46:47 +09:00
parent 3dd31ec468
commit bc6c510af1
3 changed files with 14 additions and 27 deletions

View File

@@ -99,12 +99,11 @@ impl From<OVRError> for BackendError {
}
}
use cstr::cstr;
const STEAMVR_SECTION: &CStr = cstr!("steamvr");
const STEAMVR_SECTION: &CStr = c"steamvr";
const COLOR_GAIN_CSTR: [&CStr; 3] = [
cstr!("hmdDisplayColorGainR"),
cstr!("hmdDisplayColorGainG"),
cstr!("hmdDisplayColorGainB"),
c"hmdDisplayColorGainR",
c"hmdDisplayColorGainG",
c"hmdDisplayColorGainB",
];
pub(super) fn adjust_gain(