temporarily reduce channel limit to 63

thanks ImGui
This commit is contained in:
tildearrow 2022-01-19 18:24:37 -05:00
parent 9f6b8ed521
commit 0e346f5d73
1 changed files with 3 additions and 2 deletions

View File

@ -2580,8 +2580,9 @@ bool DivEngine::addSystem(DivSystem which) {
lastError="cannot add more than 32";
return false;
}
if (chans+getChannelCount(which)>DIV_MAX_CHANS) {
lastError="max number of total channels is 128";
// this was DIV_MAX_CHANS but I am setting it to 63 for now due to an ImGui limitation
if (chans+getChannelCount(which)>63) {
lastError="max number of total channels is 63";
return false;
}
quitDispatch();