void InitPortedCode(string playername) { PlaylistTextFile = new TextFileObject(Path.Combine(thisNotifierDataDir, "playlist.txt"), true, false, true, false, false, false); LoadPlaylist(); try { defQueueSoundPlayer = new SB_SoundPlayer(Path.Combine(ParentModule.ModuleAssetDir, "defQueueSound.ogg")); defQueueSoundPlayer.Load(volumeAdjust: false); } catch (Exception _e) { Logger.LogError("could not load default queue sound", this, _e); defQueueSoundPlayerEnabled = false; } }
void InitLogState() { isInitialized = false; SetPathToLogFile(this.logDirPath); this.LogFile = new TextFileObject(this.logAddress, true, false, false, true, true, true, true); this.UpdateAndGetNewEvents(); }