Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-08-18 09:24:15 +0000
committerStijn Buys <ingar@osirion.org>2009-08-18 09:24:15 +0000
commitf030154fe727e25a2afe1f78b3998c2d2dba95e4 (patch)
treecd92baf9e4fa8a136523b9eb570e9811846c9250 /src/core/loader.h
parent5636fad174f0bcff857c357c394c4cc8d424b302 (diff)
astyle cleanup, corrects not loading of material textures
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;
};