1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
--- a/model/src/plugin_loader.cpp
+++ b/model/src/plugin_loader.cpp
@@ -492,15 +492,15 @@ bool PluginLoader::LoadPluginCandidate(const wxString& file_name,
if (!base_plugin_path.EndsWith(wxFileName::GetPathSeparator()))
base_plugin_path += wxFileName::GetPathSeparator();
- if (!g_bportable) {
- if (base_plugin_path.IsSameAs(plugin_file_path)) {
- if (!IsSystemPluginPath(file_name.ToStdString())) {
- DEBUG_LOG << "Skipping plugin " << file_name << " in "
- << g_BasePlatform->GetPluginDir();
- return false;
- }
- }
- }
+ // if (!g_bportable) {
+ // if (base_plugin_path.IsSameAs(plugin_file_path)) {
+ // if (!IsSystemPluginPath(file_name.ToStdString())) {
+ // DEBUG_LOG << "Skipping plugin " << file_name << " in "
+ // << g_BasePlatform->GetPluginDir();
+ // return false;
+ // }
+ // }
+ // }
if (!IsSystemPluginPath(file_name.ToStdString()) && safe_mode::get_mode()) {
DEBUG_LOG << "Skipping plugin " << file_name << " in safe mode";
--- a/gui/src/OCPNPlatform.cpp
+++ b/gui/src/OCPNPlatform.cpp
@@ -1317,6 +1317,30 @@ void OCPNPlatform::SetDefaultOptions(void) {
pConfig->SetPath(_T ( "/Settings/WMM" ));
pConfig->Write(_T ( "ShowIcon" ), true);
pConfig->Write(_T ( "ShowLiveIcon" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libcelestial_navigation_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libclimatology_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libocpn_draw_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libo-charts_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libpolar_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libroute_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libweatherfax_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
+
+ pConfig->SetPath(_T ( "/PlugIns/libweather_routing_pi.so" ));
+ pConfig->Write(_T ( "bEnabled" ), true);
}
#endif
|