forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clanbomber-2.1.1-boost150.patch
31 lines (29 loc) · 1.11 KB
/
clanbomber-2.1.1-boost150.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/src/MapEntry.cpp 2012-11-15 10:55:40.123259605 +0100
+++ b/src/MapEntry.cpp 2012-11-15 10:57:35.217379211 +0100
@@ -50,7 +50,7 @@
enabled = true;
// extract map name
- map_name = filename.stem();
+ map_name = filename.stem().string();
// is the file writable?
if (access(path / filename, W_OK) == 0) {
--- a/src/Map.cpp 2012-11-15 10:52:56.884424228 +0100
+++ b/src/Map.cpp 2012-11-15 10:54:16.334992079 +0100
@@ -116,7 +116,7 @@
for (boost::filesystem::directory_iterator dir_iter(path);
dir_iter != end_iter; dir_iter++) {
if (dir_iter->path().extension() == ".map") {
- map_list.push_back(new MapEntry(path, dir_iter->filename()));
+ map_list.push_back(new MapEntry(path, dir_iter->path().filename()));
}
}
}
@@ -126,7 +126,7 @@
for (boost::filesystem::directory_iterator dir_iter(path);
dir_iter != end_iter; dir_iter++) {
if (dir_iter->path().extension() == ".map") {
- map_list.push_back(new MapEntry(path, dir_iter->filename()));
+ map_list.push_back(new MapEntry(path, dir_iter->path().filename()));
}
}
}