MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Poll

Method Poll

Source/SaveStateLoader.cpp:65–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void 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
83void SaveStateLoader::GetModuleDimensions(float& w, float& h)
84{

Callers

nothing calls this directly

Calls 3

ofToDataPathFunction · 0.85
sizeMethod · 0.80
GetFileChooserParentMethod · 0.80

Tested by

no test coverage detected