comparison minijss/jloadjss.c @ 796:97ecc0a9c21f

Silence some "probing".
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Oct 2013 19:47:30 +0300
parents ed60a7ee3ebb
children de25e0f2b856
comparison
equal deleted inserted replaced
795:926e3900119c 796:97ecc0a9c21f
293 } 293 }
294 } 294 }
295 #endif 295 #endif
296 296
297 297
298 int jssLoadJSSMOD(DMResource *inFile, JSSModule **ppModule) 298 int jssLoadJSSMOD(DMResource *inFile, JSSModule **ppModule, BOOL probe)
299 { 299 {
300 JSSModule *module; 300 JSSModule *module;
301 JSSMODHeader jssH; 301 JSSMODHeader jssH;
302 int index; 302 int index;
303 303
307 memset(&jssH, 0, sizeof(jssH)); 307 memset(&jssH, 0, sizeof(jssH));
308 JSGETBUF(&jssH, JSSMODHeader); 308 JSGETBUF(&jssH, JSSMODHeader);
309 309
310 if (memcmp(jssH.idMagic, "JM", 2) != 0) 310 if (memcmp(jssH.idMagic, "JM", 2) != 0)
311 { 311 {
312 JSSERROR(DMERR_INVALID_DATA, DMERR_INVALID_DATA, 312 if (probe)
313 "Not a valid JSSMOD file, header signature missing!\n"); 313 return DMERR_NOT_SUPPORTED;
314 else
315 JSSERROR(DMERR_NOT_SUPPORTED, DMERR_NOT_SUPPORTED,
316 "Not a JSSMOD file, header signature mismatch!\n");
314 } 317 }
315 318
316 if (jssH.idVersion != JSSMOD_VERSION) 319 if (jssH.idVersion != JSSMOD_VERSION)
317 { 320 {
318 JSSERROR(DMERR_VERSION, DMERR_VERSION, 321 JSSERROR(DMERR_VERSION, DMERR_VERSION,