From ad0ea67a3fe9c6e1cc0f71bd9eea65a848fb3efa Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Tue, 8 Nov 2022 17:08:03 +0400 Subject: Changed exception --- tools_sources/CoolgirlCombiner/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools_sources/CoolgirlCombiner/Program.cs b/tools_sources/CoolgirlCombiner/Program.cs index cbad2c6..88ea810 100644 --- a/tools_sources/CoolgirlCombiner/Program.cs +++ b/tools_sources/CoolgirlCombiner/Program.cs @@ -500,9 +500,9 @@ namespace com.clusterrr.Famicom.CoolGirl if (usedSpace > optionMaxRomSize * 1024 * 1024) problems.Add(new OutOfMemoryException($"ROM is too big: {Math.Round(usedSpace / 1024.0 / 1024.0, 3)}MB")); if (games.Count > 256 * 6) - problems.Add(new ArgumentOutOfRangeException("games", $"Too many ROMs: {games.Count} (maximum {256 * 6})")); + problems.Add(new InvalidDataException($"Too many ROMs: {games.Count} (maximum {256 * 6})")); if (saveId > byte.MaxValue) - problems.Add(new ArgumentOutOfRangeException("saves", $"Too many battery backed games: {saveId} (maximum {byte.MaxValue})")); + problems.Add(new InvalidDataException($"Too many battery backed games: {saveId} (maximum {byte.MaxValue})")); int c = 0; foreach (var game in sortedGames) -- cgit v1.2.3