diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-11-08 16:08:03 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-11-08 16:08:03 +0300 |
commit | ad0ea67a3fe9c6e1cc0f71bd9eea65a848fb3efa (patch) | |
tree | 0cf017ee6f0006a3535879f671bb52ffb3ec6790 | |
parent | 705cd57b17039850e67cc405739df3e9b5681a8e (diff) |
Changed exception
-rw-r--r-- | tools_sources/CoolgirlCombiner/Program.cs | 4 |
1 files 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)
|