protected override bool PrepareRun() { if (PlayerPrefs.GetInt(ImpulseVersionKey, 0) < ImpulseVersion || !DataManagement.DataDirectoryExists(HRTFDirectory)) { rawData = (byte[])impulseZip.bytes.Clone(); outputPath = DataManagement.PathForDataDirectory(HRTFDirectory); return(true); } return(false); }
protected override bool PrepareRun() { if (PlayerData.GlobalData.GetInt(ImpulseVersionKey, 0) < ImpulseVersion && DataManagement.DataDirectoryExists(HRTFDirectory)) { //Delete the old HRTF directory. Directory.Delete(DataManagement.PathForDataDirectory(HRTFDirectory), true); } if (PlayerData.GlobalData.GetInt(ImpulseVersionKey, 0) < ImpulseVersion || !File.Exists(DataManagement.PathForDataFile(HRTFDirectory, "0_impulse.wav", false))) { rawData = (byte[])impulseZip.bytes.Clone(); outputPath = DataManagement.PathForDataDirectory(HRTFDirectory); return(true); } return(false); }
private void InitializeInline() { if (initialized) { return; } initialized = true; Application.logMessageReceived += LogManager.HandleLog; if (!DataManagement.DataDirectoryExists("HRTF")) { Debug.LogError("Hey, Dummy! You gotta run the Splashscreen Scene at least once to extract the HRTF Files!"); } IEnumerator initializationProcess = RunInitialization(); while (initializationProcess.MoveNext()) { //Do not wait //We need to do all initialization immediately } }