mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 11:54:00 +02:00
- bugfix for segfault with new debug method needs to properly init debug system in a new area
This commit is contained in:
@@ -126,7 +126,7 @@ public:
|
||||
~SystemFlags();
|
||||
|
||||
static void init(bool haveSpecialOutputCommandLineOption);
|
||||
static SystemFlagsType & getSystemSettingType(DebugType type) { return (*debugLogFileList)[type]; }
|
||||
static SystemFlagsType & getSystemSettingType(DebugType type);
|
||||
static size_t httpWriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data);
|
||||
static std::string getHTTP(std::string URL,CURL *handle=NULL, int timeOut=-1, CURLcode *savedResult=NULL);
|
||||
static std::string escapeURL(std::string URL, CURL *handle=NULL);
|
||||
|
@@ -185,6 +185,14 @@ CURL *SystemFlags::initHTTP() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
SystemFlags::SystemFlagsType & SystemFlags::getSystemSettingType(DebugType type) {
|
||||
if(SystemFlags::debugLogFileList == NULL) {
|
||||
SystemFlags::init(false);
|
||||
}
|
||||
|
||||
return (*debugLogFileList)[type];
|
||||
}
|
||||
|
||||
void SystemFlags::init(bool haveSpecialOutputCommandLineOption) {
|
||||
SystemFlags::haveSpecialOutputCommandLineOption = haveSpecialOutputCommandLineOption;
|
||||
//if(SystemFlags::debugLogFileList.size() == 0) {
|
||||
|
Reference in New Issue
Block a user