inquiry.c 486 Bytes

#include <ultra64.h>

#ifndef	_LONGCMD
#include <leo.h>
#else
#include <leosp.h>
#endif

extern 	s32	__leoActive;
extern	LEOVersion __leoVersion;

s32 LeoInquiry(LEOVersion *ver)
{
  
  /* 
   * Check for existence of Leo Manager 
   */
  if (!__leoActive) {
    return(-1);
  }
  
  /*
   * We do not issue any leo command.
   * Simply return the value we previously have gotten.
   */
  bcopy((void *)&__leoVersion, (void *)ver, sizeof(LEOVersion));

  return 0;

} /* LeoInquiry */