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