diff --git a/PCK-Studio/FileFormats/PckAudioFile.cs b/PCK-Studio/FileFormats/PckAudioFile.cs index 14c32616..40e77bfd 100644 --- a/PCK-Studio/FileFormats/PckAudioFile.cs +++ b/PCK-Studio/FileFormats/PckAudioFile.cs @@ -34,7 +34,7 @@ namespace PckStudio.FileFormats Battle, Tumble, Glide, - Unused, + BuildOff, } public enum EAudioParameterType : int @@ -110,7 +110,7 @@ namespace PckStudio.FileFormats public AudioCategory GetCategory(AudioCategory.EAudioType category) { if (category < AudioCategory.EAudioType.Overworld || - category > AudioCategory.EAudioType.Unused) + category > AudioCategory.EAudioType.BuildOff) throw new InvalidCategoryException(nameof(category)); return _categories[(int)category]; } @@ -132,7 +132,7 @@ namespace PckStudio.FileFormats public bool AddCategory(AudioCategory.EAudioParameterType parameterType, AudioCategory.EAudioType category, string name = "") { if (category < AudioCategory.EAudioType.Overworld || - category > AudioCategory.EAudioType.Unused) + category > AudioCategory.EAudioType.BuildOff) throw new InvalidCategoryException(nameof(category)); bool exists = HasCategory(category); if (!exists) diff --git a/PCK-Studio/Forms/Editor/AudioEditor.cs b/PCK-Studio/Forms/Editor/AudioEditor.cs index 19a8a236..cc37747c 100644 --- a/PCK-Studio/Forms/Editor/AudioEditor.cs +++ b/PCK-Studio/Forms/Editor/AudioEditor.cs @@ -54,7 +54,7 @@ namespace PckStudio.Forms.Editor private string GetCategoryFromId(PckAudioFile.AudioCategory.EAudioType categoryId) => categoryId >= PckAudioFile.AudioCategory.EAudioType.Overworld && - categoryId <= PckAudioFile.AudioCategory.EAudioType.Unused + categoryId <= PckAudioFile.AudioCategory.EAudioType.BuildOff ? Categories[(int)categoryId] : "Not valid";