fix: Use correct path for model name audio
It is expected to have `_` in the name in place of spaces. Uncaught side-effect of #645. It now looks for `_` instead of whitespace first, and then checks for model name with whitespace. Also, trigger postModelLoad() alams when changing model for checks and playing model name.
This commit is contained in:
committed by
Peter Feerick
parent
b74cd10927
commit
15a19e1fef
@@ -539,13 +539,12 @@ class ModelCategoryPageBody : public FormWindow
|
||||
memcpy(g_eeGeneral.currModelFilename, btn->modelFilename(),
|
||||
LEN_MODEL_FILENAME);
|
||||
|
||||
loadModel(g_eeGeneral.currModelFilename, false);
|
||||
loadModel(g_eeGeneral.currModelFilename, true);
|
||||
storageDirty(EE_GENERAL);
|
||||
storageCheck(true);
|
||||
|
||||
modelslist.setCurrentModel(btn->getModelCell());
|
||||
modelslist.setCurrentCategory(category);
|
||||
checkAll();
|
||||
|
||||
// Exit to main view
|
||||
auto w = Layer::back();
|
||||
|
||||
Reference in New Issue
Block a user