Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/loader.h')
-rw-r--r--src/core/loader.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/loader.h b/src/core/loader.h
index 1fde764..e9f7e0b 100644
--- a/src/core/loader.h
+++ b/src/core/loader.h
@@ -11,7 +11,8 @@
#include "core/module.h"
-namespace core {
+namespace core
+{
/// module factory registry
/** The Loader contains a list of module factories and can load
@@ -21,11 +22,11 @@ class Loader
{
public:
/// function pointer type for a module factory
- typedef Module * (* FactoryFuncPtr)();
+ typedef Module *(* FactoryFuncPtr)();
/// find a registered mmodule factory
static FactoryFuncPtr find(const char *label);
-
+
/// find a registered module factory
static FactoryFuncPtr find(const std::string &label);
@@ -38,7 +39,9 @@ public:
/// assign the next module to init
static bool load(const std::string &label);
- static inline const std::string &label() { return loader_label; }
+ static inline const std::string &label() {
+ return loader_label;
+ }
/// initialize a game module
static Module *init();
@@ -52,7 +55,7 @@ public:
private:
typedef std::map<std::string, FactoryFuncPtr> Registry;
- static Registry loader_registry;
+ static Registry loader_registry;
static std::string loader_label;
};