755bb04475
- updated pt translation (thanks to almosthumane) - Added/updated some Themes by Ilya B - Added a random wallpaper loading at loading screen (see wallpapers.txt in Res/graphics) - Saving decks and collection should now be a bit more secure (attempt at minimizing issue 393)
27 lines
446 B
C++
27 lines
446 B
C++
#include "../include/config.h"
|
|
#include "../include/Logger.h"
|
|
#ifdef DOLOG
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
using namespace std;
|
|
|
|
#if defined (WIN32)
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
void Logger::Log(const char * text){
|
|
ofstream file (LOG_FILE,ios_base::app);
|
|
if (file){
|
|
file << text;
|
|
file << "\n";
|
|
file.close();
|
|
}
|
|
#if defined (WIN32) || defined (LINUX)
|
|
OutputDebugString(text);
|
|
OutputDebugString("\n");
|
|
#endif
|
|
|
|
}
|
|
|
|
#endif |