Skip to content

Commit

Permalink
Handle 64bit graph plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Jun 26, 2024
1 parent 9050096 commit 298158a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/Common/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Preferences::Preferences()

//Plugins
GraphPluginURL=__T("");
GraphPlugin64URL=__T("");
GraphPluginVersion=__T("");
FFmpegPluginURL=__T("");
FFmpegPluginVersion=__T("");
Expand Down Expand Up @@ -219,6 +220,9 @@ int Preferences::Config_Load()
SponsorUrl.Write(Saved);
}

if (!Config(__T("GraphPlugin64URL")).empty())
GraphPlugin64URL=Config(__T("GraphPlugin64URL"));

if (!Config(__T("GraphPluginURL")).empty())
GraphPluginURL=Config(__T("GraphPluginURL"));

Expand Down Expand Up @@ -542,6 +546,13 @@ void __fastcall ThreadInternetCheck::Execute()
Prefs->Config_Save();

//Plugins
Ztring GraphPlugin64URL=Download(__T("GraphPlugin64URL"));
if (!GraphPlugin64URL.empty())
{
Prefs->Config(__T("GraphPlugin64URL"))=GraphPlugin64URL;
Prefs->Config_Save();
}

Ztring GraphPluginURL=Download(__T("GraphPluginURL"));
if (!GraphPluginURL.empty())
{
Expand Down
4 changes: 4 additions & 0 deletions Source/GUI/VCL/GUI_Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ bool __fastcall TPluginF::Configure()
switch (Plugin)
{
case PLUGIN_GRAPH:
#ifdef _WIN64
SourceURL = Prefs->Config(__T("GraphPlugin64URL"));
#else
SourceURL = Prefs->Config(__T("GraphPluginURL"));
#endif
break;
case PLUGIN_FFMPEG:
SourceURL = Prefs->Config(__T("FFmpegPluginURL"));
Expand Down

0 comments on commit 298158a

Please sign in to comment.