public static void FinalizeLibrary() { /* 初期化カウンタの更新 */ CriFsPlugin.initializationCount--; if (CriFsPlugin.initializationCount < 0) { CriFsPlugin.initializationCount = 0; if (CriFsPlugin.IsLibraryInitialized() == false) { return; } } if (CriFsPlugin.initializationCount != 0) { return; } /* パラメータを初期値に戻す */ installBufferSize = defaultInstallBufferSize; /* 未破棄のDisposableを破棄 */ CriDisposableObjectManager.CallOnModuleFinalization(CriDisposableObjectManager.ModuleType.Fs); /* ライブラリの終了 */ CriFsPlugin.criFsUnity_Finalize(); }
public static void FinalizeLibrary() { /* 初期化カウンタの更新 */ CriFsPlugin.initializationCount--; if (CriFsPlugin.initializationCount < 0) { Debug.LogError("[CRIWARE] ERROR: FileSystem library is already finalized."); return; } if (CriFsPlugin.initializationCount != 0) { return; } /* ライブラリの終了 */ CriFsPlugin.criFsUnity_Finalize(); }