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>2007-11-10 14:28:58 +0000
committerStijn Buys <ingar@osirion.org>2007-11-10 14:28:58 +0000
commit647dddf98545a7df44137e9285229a33184f9552 (patch)
tree82e93febf2028372ab1519184d27da571365a45f /src/common/file.cc
parentbb24e4ad543c3a739625778b9854c49688c8204f (diff)
deug messages
Diffstat (limited to 'src/common/file.cc')
-rw-r--r--src/common/file.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/file.cc b/src/common/file.cc
index 822c678..73537ec 100644
--- a/src/common/file.cc
+++ b/src/common/file.cc
@@ -17,6 +17,7 @@ std::string File::moddir = "";
void File::open(const char * filename, ios_base::openmode mode)
{
+ file_name.assign(filename);
std::string fn;
// if moddir is set, try the mods subdir first
@@ -58,9 +59,9 @@ void File::open(const char * filename, ios_base::openmode mode)
std::ifstream::open(fn.c_str(), mode);
if (!this->is_open()) {
- condebug << "File could not open " << filename << std::endl;
+ conmesg << "File could not open " << filename << std::endl;
} else {
- conmesg << "File opened " << fn << std::endl;
+ condebug << "File opened " << fn << std::endl;
}
}