MCPcopy Create free account
hub / github.com/EasyDarwin/EasyPusher / LoadDataIntAngle

Method LoadDataIntAngle

EasyPusher_Win/EasyPusher/IniFileLoad.cpp:256–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254
255
256void CIniFileLoad::LoadDataIntAngle(CString strSection,CString strKey,int &nYPos,int &nZPos,int &nFocusPos)
257{
258 CString strValue=_T("");
259 LoadString(strSection,strKey,strValue);
260
261
262 CString strYPos = GetFirstParam(strValue);
263 CString strZPos = GetFirstParam(strValue);
264 CString strFocusPos = GetFirstParam(strValue);
265 if(strYPos.IsEmpty())
266 {
267 nYPos = 0xFFFF;
268 }
269 else
270 {
271 nYPos = _ttoi(strYPos);
272 }
273 if(strZPos.IsEmpty())
274 {
275 nZPos = 0xFFFF;
276 }
277 else
278 {
279 nZPos = _ttoi(strZPos);
280 }
281 if(strFocusPos.IsEmpty())
282 {
283 nFocusPos = 0xFFFF;
284 }
285 else
286 {
287 nFocusPos = _ttoi(strFocusPos);
288 }
289
290}
291
292CString CIniFileLoad::GetFirstParam(CString &strInfo)
293{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected