[Loader] Added serveral minor clean ups.

This commit is contained in:
Maschell
2018-04-04 15:36:57 +02:00
parent a8d1960dc3
commit 60e49ea83f
5 changed files with 12 additions and 9 deletions

View File

@@ -42,12 +42,12 @@ std::vector<PluginInformation *> PluginLoader::getPluginInformation(const char *
DIR *dfd = NULL;
if(path == NULL) {
DEBUG_FUNCTION_LINE("Path was NULL");
DEBUG_FUNCTION_LINE("Path was NULL\n");
return result;
}
if ((dfd = opendir(path)) == NULL) {
DEBUG_FUNCTION_LINE("Couldn't open dir %s",path);
DEBUG_FUNCTION_LINE("Couldn't open dir %s\n",path);
return result;
}

View File

@@ -49,7 +49,7 @@ class PluginLoader {
public:
static PluginLoader *getInstance() {
if(!instance) {
instance = new PluginLoader((void*)getApplicationEndAddr(),(void *)PLUGIN_LOCATION_END_ADDRESS);
instance = new PluginLoader((void*)getApplicationEndAddr(),(void *)PLUGIN_LOCATION_END_ADDRESS);
}
return instance;
}