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>2008-08-01 19:57:03 +0000
committerStijn Buys <ingar@osirion.org>2008-08-01 19:57:03 +0000
commit089cb5f96e400d4ab7c9d8041cb51eb8f118d9c1 (patch)
tree9799137f41d5104ed4911ac5774f9f50406581d9 /src/client
parentcc335cfbf13a6b21c5f65febc6049eb5d4c16b63 (diff)
initial make install support
Diffstat (limited to 'src/client')
-rw-r--r--src/client/console.cc4
-rw-r--r--src/client/keyboard.cc4
-rw-r--r--src/client/video.cc4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/client/console.cc b/src/client/console.cc
index ddcaa32..60e2a7f 100644
--- a/src/client/console.cc
+++ b/src/client/console.cc
@@ -190,7 +190,7 @@ void Console::save_history()
if (history.size() <= 1)
return;
- std::string filename(filesystem::writedir);
+ std::string filename(filesystem::writedir());
filename.append("history.txt");
std::ofstream ofs(filename.c_str());
@@ -211,7 +211,7 @@ void Console::save_history()
void Console::load_history()
{
- std::string filename(filesystem::writedir);
+ std::string filename(filesystem::writedir());
filename.append("history.txt");
std::ifstream ifs(filename.c_str(), std::ifstream::in);
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc
index 420d1bb..1ebba12 100644
--- a/src/client/keyboard.cc
+++ b/src/client/keyboard.cc
@@ -229,7 +229,7 @@ Keyboard::~Keyboard()
void Keyboard::save_binds()
{
- std::string filename(filesystem::writedir);
+ std::string filename(filesystem::writedir());
filename.append("binds.cfg");
std::ofstream ofs(filename.c_str());
@@ -269,7 +269,7 @@ void Keyboard::save_binds()
void Keyboard::load_binds()
{
- std::string filename(filesystem::writedir);
+ std::string filename(filesystem::writedir());
filename.append("binds.cfg");
std::ifstream ifs(filename.c_str(), std::ifstream::in);
diff --git a/src/client/video.cc b/src/client/video.cc
index 56514a9..ceea25d 100644
--- a/src/client/video.cc
+++ b/src/client/video.cc
@@ -158,7 +158,7 @@ void screenshot()
std::string filename;
// make sure the screenshots folder exists
- filename.assign(filesystem::writedir);
+ filename.assign(filesystem::writedir());
filename.append("screenshots/");
sys::mkdir(filename);
@@ -174,7 +174,7 @@ void screenshot()
shortname.insert(0, "screenshots/osirion");
shortname.append(".tga");
- filename.assign(filesystem::writedir);
+ filename.assign(filesystem::writedir());
filename.append(shortname);
FILE *handle = fopen(filename.c_str(), "r");