Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
75e75aae
Commit
75e75aae
authored
Jun 29, 2015
by
Robert McGibbon
Browse files
loadPlugins in order
parent
b2e7d94e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
olla/src/Platform.cpp
olla/src/Platform.cpp
+6
-0
No files found.
olla/src/Platform.cpp
View file @
75e75aae
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include <cstdlib>
#include <cstdlib>
#endif
#endif
#include <set>
#include <set>
#include <algorithm>
#include "ReferencePlatform.h"
#include "ReferencePlatform.h"
...
@@ -53,6 +54,10 @@ using namespace std;
...
@@ -53,6 +54,10 @@ using namespace std;
std
::
vector
<
std
::
string
>
Platform
::
loadFailures
;
std
::
vector
<
std
::
string
>
Platform
::
loadFailures
;
static
bool
stringLengthComparator
(
string
i
,
string
j
)
{
return
(
i
.
size
()
<
j
.
size
());
}
static
int
registerPlatforms
()
{
static
int
registerPlatforms
()
{
...
@@ -269,6 +274,7 @@ vector<string> Platform::loadPluginsFromDirectory(const string& directory) {
...
@@ -269,6 +274,7 @@ vector<string> Platform::loadPluginsFromDirectory(const string& directory) {
vector
<
void
*>
plugins
;
vector
<
void
*>
plugins
;
#endif
#endif
vector
<
string
>
loadedLibraries
;
vector
<
string
>
loadedLibraries
;
std
::
sort
(
files
.
begin
(),
files
.
end
(),
stringLengthComparator
);
loadFailures
.
resize
(
0
);
loadFailures
.
resize
(
0
);
for
(
unsigned
int
i
=
0
;
i
<
files
.
size
();
++
i
)
{
for
(
unsigned
int
i
=
0
;
i
<
files
.
size
();
++
i
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment