| 63 | } |
| 64 | |
| 65 | void SaveStateLoader::Poll() |
| 66 | { |
| 67 | for (int i = 0; i < (int)mLoadButtons.size(); ++i) |
| 68 | { |
| 69 | if (mLoadButtons[i].mShouldShowSelectDialog) |
| 70 | { |
| 71 | mLoadButtons[i].mShouldShowSelectDialog = false; |
| 72 | |
| 73 | juce::FileChooser chooser("Select state file", juce::File(ofToDataPath("savestate")), "*.bsk;*.bskt", true, false, TheSynth->GetFileChooserParent()); |
| 74 | if (chooser.browseForFileToOpen()) |
| 75 | { |
| 76 | mLoadButtons[i].mFilePath = chooser.getResult().getFullPathName().replace("\\", "/").toStdString(); |
| 77 | UpdateButtonLabel(i); |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void SaveStateLoader::GetModuleDimensions(float& w, float& h) |
| 84 | { |
nothing calls this directly
no test coverage detected