From a92316bd6ea5c30ad5243001f27171086c791341 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 15 Feb 2009 12:43:24 -0700 Subject: Renamed aethyraFile to configFile, which is a lot more descriptive of what its actually used for. Signed-off-by: Ira Rice --- src/main.cpp | 12 ++++++------ 1 file 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); } -- cgit v1.2.3-70-g09d2