MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / saveMappings

Method saveMappings

physx/samples/samplebase/SampleInputMappingAsset.cpp:241–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void SampleInputMappingAsset::saveMappings()
242{
243 if(!mIsOk)
244 return;
245
246 if(mFile)
247 {
248 fclose(mFile);
249 mFile = NULL;
250 }
251 PxToolkit::fopen_s(&mFile,mPath , "w");
252 if(mFile)
253 {
254 mMapping->saveScript(mFile,false);
255 fclose(mFile);
256 }
257
258 mFile = NULL;
259}
260
261bool SampleInputMappingAsset::isOk(void) const
262{

Callers 1

Calls 2

saveScriptMethod · 0.80
fopen_sFunction · 0.50

Tested by

no test coverage detected