public static void InitializeLibrary() { /* 初期化カウンタの更新 */ CriFsPlugin.initializationCount++; if (CriFsPlugin.initializationCount != 1) { return; } /* シーン実行前に初期化済みの場合は終了させる */ if (CriFsPlugin.IsLibraryInitialized() == true) { CriFsPlugin.FinalizeLibrary(); CriFsPlugin.initializationCount = 1; } /* 初期化パラメータが設定済みかどうかを確認 */ if (CriFsPlugin.isConfigured == false) { Debug.Log("[CRIWARE] FileSystem initialization parameters are not configured. " + "Initializes FileSystem by default parameters."); } /* ライブラリの初期化 */ CriFsPlugin.criFsUnity_Initialize(); }
public static void InitializeLibrary() { /* 初期化カウンタの更新 */ CriFsPlugin.initializationCount++; if (CriFsPlugin.initializationCount != 1) { return; } /* CriWareInitializerが実行済みかどうかを確認 */ bool initializerWorking = CriWareInitializer.IsInitialized(); if (initializerWorking == false) { Debug.Log("[CRIWARE] CriWareInitializer is not working. " + "Initializes FileSystem by default parameters."); } /* ライブラリの初期化 */ CriFsPlugin.criFsUnity_Initialize(); }