kopia lustrzana https://github.com/jameshball/osci-render
Revert build.yaml, fix FILE_EXTENSIONS usage
rodzic
bb91e1c0ff
commit
fc21919973
|
@ -2,6 +2,7 @@ name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
- main
|
||||||
- develop
|
- develop
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -130,10 +130,8 @@ bool OscirenderAudioProcessorEditor::isInterestedInFileDrag(const juce::StringAr
|
||||||
}
|
}
|
||||||
juce::File file(files[0]);
|
juce::File file(files[0]);
|
||||||
juce::String ext = file.getFileExtension().toLowerCase();
|
juce::String ext = file.getFileExtension().toLowerCase();
|
||||||
if (std::find(audioProcessor.FILE_EXTENSIONS.begin(), audioProcessor.FILE_EXTENSIONS.end(), ext) != audioProcessor.FILE_EXTENSIONS.end()) {
|
ext = ext.substring(1); // Remove the dot
|
||||||
return true;
|
return std::find(audioProcessor.FILE_EXTENSIONS.begin(), audioProcessor.FILE_EXTENSIONS.end(), ext) != audioProcessor.FILE_EXTENSIONS.end();
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OscirenderAudioProcessorEditor::filesDropped(const juce::StringArray& files, int x, int y) {
|
void OscirenderAudioProcessorEditor::filesDropped(const juce::StringArray& files, int x, int y) {
|
||||||
|
|
|
@ -213,23 +213,23 @@ public:
|
||||||
void removeParser(FileParser* parser);
|
void removeParser(FileParser* parser);
|
||||||
|
|
||||||
const std::vector<juce::String> FILE_EXTENSIONS = {
|
const std::vector<juce::String> FILE_EXTENSIONS = {
|
||||||
".obj",
|
"obj",
|
||||||
".svg",
|
"svg",
|
||||||
".lua",
|
"lua",
|
||||||
".txt",
|
"txt",
|
||||||
".gpla",
|
"gpla",
|
||||||
".gif",
|
"gif",
|
||||||
".png",
|
"png",
|
||||||
".jpg",
|
"jpg",
|
||||||
".jpeg",
|
"jpeg",
|
||||||
".wav",
|
"wav",
|
||||||
".aiff",
|
"aiff",
|
||||||
".ogg",
|
"ogg",
|
||||||
".flac",
|
"flac",
|
||||||
".mp3",
|
"mp3",
|
||||||
#if OSCI_PREMIUM
|
#if OSCI_PREMIUM
|
||||||
".mp4",
|
"mp4",
|
||||||
".mov",
|
"mov",
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4ddac1f6ff0853c989bf3ab619e0f1e0264f5a45
|
Subproject commit a517f09beac37a919fe43772e98e779ffc1f0ba3
|
Ładowanie…
Reference in New Issue