Fix: Add getLastPluginPath() so reload works after crash, fix Editor reload button
Browse files
Source/Plugin/PluginBridgeProcessor.h
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
#include <juce_dsp/juce_dsp.h>
|
| 5 |
#include "HelperConnection.h"
|
| 6 |
#include "McpServer.h"
|
| 7 |
-
#include "
|
| 8 |
|
| 9 |
class PluginBridgeProcessor : public juce::AudioProcessor
|
| 10 |
{
|
|
@@ -49,6 +49,9 @@ public:
|
|
| 49 |
int getLoadedPluginParamCount() const { return pluginParamCount; }
|
| 50 |
HelperConnection::State getConnectionState() const { return helper.getState(); }
|
| 51 |
|
|
|
|
|
|
|
|
|
|
| 52 |
// Plugin file listing (safe — no binary loading)
|
| 53 |
juce::Array<juce::File> getInstalledPluginFiles() const;
|
| 54 |
|
|
@@ -58,7 +61,7 @@ private:
|
|
| 58 |
|
| 59 |
bool pluginLoaded = false;
|
| 60 |
juce::String pluginName;
|
| 61 |
-
juce::String pluginPath;
|
| 62 |
int pluginParamCount = 0;
|
| 63 |
|
| 64 |
double currentSampleRate = 44100.0;
|
|
|
|
| 4 |
#include <juce_dsp/juce_dsp.h>
|
| 5 |
#include "HelperConnection.h"
|
| 6 |
#include "McpServer.h"
|
| 7 |
+
#include "Constants.h"
|
| 8 |
|
| 9 |
class PluginBridgeProcessor : public juce::AudioProcessor
|
| 10 |
{
|
|
|
|
| 49 |
int getLoadedPluginParamCount() const { return pluginParamCount; }
|
| 50 |
HelperConnection::State getConnectionState() const { return helper.getState(); }
|
| 51 |
|
| 52 |
+
// Retained even after crash — for reload button
|
| 53 |
+
juce::String getLastPluginPath() const { return pluginPath; }
|
| 54 |
+
|
| 55 |
// Plugin file listing (safe — no binary loading)
|
| 56 |
juce::Array<juce::File> getInstalledPluginFiles() const;
|
| 57 |
|
|
|
|
| 61 |
|
| 62 |
bool pluginLoaded = false;
|
| 63 |
juce::String pluginName;
|
| 64 |
+
juce::String pluginPath; // retained after crash for reload
|
| 65 |
int pluginParamCount = 0;
|
| 66 |
|
| 67 |
double currentSampleRate = 44100.0;
|