diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-15 12:43:24 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-15 12:43:24 -0700 |
commit | a92316bd6ea5c30ad5243001f27171086c791341 (patch) | |
tree | 5ae45cdb33f5c0f25e1ee3db4846177f5810ac91 | |
parent | c0a0160ecda75a9c0de53ac6cecb0da46beff089 (diff) | |
download | mana-a92316bd6ea5c30ad5243001f27171086c791341.tar.gz mana-a92316bd6ea5c30ad5243001f27171086c791341.tar.bz2 mana-a92316bd6ea5c30ad5243001f27171086c791341.tar.xz mana-a92316bd6ea5c30ad5243001f27171086c791341.zip |
Renamed aethyraFile to configFile, which is a lot more descriptive of
what its actually used for.
Signed-off-by: Ira Rice <irarice@gmail.com>
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4f66e9da..a6ddd597 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -359,24 +359,24 @@ void init_engine(const Options &options) // Checking if the configuration file exists... otherwise creates it with // default options ! - FILE *aethyraFile = 0; + FILE *configFile = 0; std::string configPath = options.configPath; if (configPath.empty()) configPath = homeDir + "/config.xml"; - aethyraFile = fopen(configPath.c_str(), "r"); + configFile = fopen(configPath.c_str(), "r"); // If we can't read it, it doesn't exist ! - if (aethyraFile == NULL) { + if (configFile == NULL) { // We reopen the file in write mode and we create it - aethyraFile = fopen(configPath.c_str(), "wt"); + configFile = fopen(configPath.c_str(), "wt"); } - if (aethyraFile == NULL) { + if (configFile == NULL) { std::cout << "Can't create " << configPath << ". " "Using Defaults." << std::endl; } else { - fclose(aethyraFile); + fclose(configFile); config.init(configPath); } |