CCamera::LoadSettings
function · uicamera · primitive
- Address
0x50c5a0· 402 bytes, up to0x50c731- Signature
void __thiscall (CCamera *this)- Meaning
- Reads the distance and pitch from camera-settings.txt into the current and target values
- Confidence
- verified, proof one
- Finding
- uicamera/view#reading-the-file
Finding: Reading the file in uicamera: the camera's saved view
The reader reads the whole file and splits it into lines on carriage return and line feed, and each line into a
key and a value on a space. A key matches cameraDistance or cameraPitch without case; any other line is skipped.
A distance is stored unchanged into both the current and the target distance (+0xec, +0x198). A pitch is
multiplied by π/180 and stored into both the current and the target pitch (+0xf4, +0x1e0). Nothing clamps
either value, so a file can hold a distance outside the zoom range or a pitch past 89 degrees until the next
input.
The derivation is in the doc.
Callers 1
- CCamera::CCamera uicamera
Callees 8
- __alloca_probe crt
- 0x42a520 unassigned
- 0x42a670 unassigned
- OpenAccountDataFile net
- CloseFileHandle net
- SStrCmpI storm
- SStrToFloat storm
- SStrTokenize storm
Calls and jumps by a bare address, from tables/calls.tsv.