001package com.ctre.phoenix;
002
003public class CTREJNIWrapper {
004  static boolean libraryLoaded = false;
005  
006  static {
007    if (!libraryLoaded) {
008      //try to load real CCI, then Sim
009      try{
010        System.loadLibrary("CTRE_PhoenixCCI");
011      } catch (UnsatisfiedLinkError err) {
012        try {
013          System.loadLibrary("CTRE_PhoenixCCISim");
014        } catch (UnsatisfiedLinkError e) {
015          err.printStackTrace();
016          System.exit(1);
017        }
018      }
019      libraryLoaded = true;
020    }
021  }
022}