Commit c64ac878ee8cf33527abad76fc6bad546d49a2a8
- Diff rendering mode:
- inline
- side by side
ChangeLog
(4 / 0)
|   | |||
| 1 | 2007-06-03 David Athay <ko2fan@gmail.com> | ||
| 2 | |||
| 3 | * src/main.cpp, src/game.cpp: Fixed screenshot taking on OSX. | ||
| 4 | |||
| 1 | 5 | 2007-06-03 Bjørn Lindeijer <bjorn@lindeijer.nl> | |
| 2 | 6 | ||
| 3 | 7 | * src/CMakeLists.txt, src/Makefile.am, docs/Makefile.am: Added some |
src/game.cpp
(2 / 0)
|   | |||
| 320 | 320 | filename.str(""); | |
| 321 | 321 | #if (defined __USE_UNIX98 || defined __FreeBSD__) | |
| 322 | 322 | filename << PHYSFS_getUserDir() << ".tmw/"; | |
| 323 | #elif defined __APPLE__ | ||
| 324 | filename << PHYSFS_getUserDir() << "Desktop/"; | ||
| 323 | 325 | #endif | |
| 324 | 326 | filename << "TMW_Screenshot_" << screenshotCount << ".png"; | |
| 325 | 327 | testExists.open(filename.str().c_str(), std::ios::in); |
src/main.cpp
(2 / 2)
|   | |||
| 36 | 36 | ||
| 37 | 37 | #include <libxml/parser.h> | |
| 38 | 38 | ||
| 39 | #if (defined __USE_UNIX98 || defined __FreeBSD__ || defined __APPLE__) | ||
| 39 | #ifndef WIN32 | ||
| 40 | 40 | #include <cerrno> | |
| 41 | 41 | #include <sys/stat.h> | |
| 42 | 42 | #endif | |
| … | … | ||
| 150 | 150 | << std::endl; | |
| 151 | 151 | exit(1); | |
| 152 | 152 | } | |
| 153 | |||
| 153 | |||
| 154 | 154 | // Set log file | |
| 155 | 155 | logger->setLogFile(homeDir + std::string("/tmw.log")); | |
| 156 | 156 |

