Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NaruseMioShirakana authored Aug 6, 2022
1 parent 201a267 commit a02adf3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ShirakanaUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,30 @@ void ShirakanaUI::loadMods() {
continue;
}
}
else if (modModerType[fileIndex] == "VITS_LJS") {
if ((fopen((modList[fileIndex] + "_ljs.onnx").c_str(), "r") != nullptr)) {
ui.ShirakanaModelSelectorOfficialComboBox->addItem((modModerType[fileIndex] + "::" + modNames[fileIndex]).c_str());
fileIndex++;
}
else {
modList.pop_back();
modNames.pop_back();
modModerType.pop_back();
continue;
}
}
else if (modModerType[fileIndex] == "VITS_VCTK") {
if ((fopen((modList[fileIndex] + "_vctk.onnx").c_str(), "r") != nullptr)) {
ui.ShirakanaModelSelectorOfficialComboBox->addItem((modModerType[fileIndex] + "::" + modNames[fileIndex]).c_str());
fileIndex++;
}
else {
modList.pop_back();
modNames.pop_back();
modModerType.pop_back();
continue;
}
}
else {
modList.pop_back();
modNames.pop_back();
Expand Down

0 comments on commit a02adf3

Please sign in to comment.