-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'intorr/intorr_dev' into xd_dev
- Loading branch information
Showing
24 changed files
with
98 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
#include "stdafx.h" | ||
#include "xrCore/cdecl_cast.hpp" | ||
#include "utils/xrLCUtil/LevelCompilerLoggerWindow.hpp" | ||
|
||
ILevelCompilerLogger& Logger = LevelCompilerLoggerWindow::instance(); | ||
|
||
CThread::LogFunc ProxyMsg = cdecl_cast([](const char* format, ...) { | ||
va_list args; | ||
va_start(args, format); | ||
Logger.clMsgV(format, args); | ||
va_end(args); | ||
}); | ||
|
||
CThreadManager::ReportStatusFunc ProxyStatus = cdecl_cast([](const char* format, ...) { | ||
va_list args; | ||
va_start(args, format); | ||
Logger.StatusV(format, args); | ||
va_end(args); | ||
}); | ||
|
||
CThreadManager::ReportProgressFunc ProxyProgress = cdecl_cast([](float progress) { Logger.Progress(progress); }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
#include "stdafx.h" | ||
#include "xrCore/cdecl_cast.hpp" | ||
#include "utils/xrLCUtil/LevelCompilerLoggerWindow.hpp" | ||
|
||
ILevelCompilerLogger& Logger = LevelCompilerLoggerWindow::instance(); | ||
|
||
CThread::LogFunc ProxyMsg = cdecl_cast([](const char* format, ...) { | ||
va_list args; | ||
va_start(args, format); | ||
Logger.clMsgV(format, args); | ||
va_end(args); | ||
}); | ||
|
||
CThreadManager::ReportStatusFunc ProxyStatus = cdecl_cast([](const char* format, ...) { | ||
va_list args; | ||
va_start(args, format); | ||
Logger.StatusV(format, args); | ||
va_end(args); | ||
}); | ||
|
||
CThreadManager::ReportProgressFunc ProxyProgress = cdecl_cast([](float progress) { Logger.Progress(progress); }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,11 @@ | ||
#pragma once | ||
|
||
#include "Common/Common.hpp" | ||
#include "xrCore/xrCore.h" | ||
|
||
#pragma warning(push) | ||
#pragma warning(disable : 4995) | ||
#include <d3dx9.h> | ||
#include <commctrl.h> | ||
#pragma warning(pop) | ||
|
||
#define ENGINE_API | ||
#define ECORE_API | ||
#define XR_EPROPS_API | ||
#include "xrCore/clsid.h" | ||
#include "xrCDB/xrCDB.h" | ||
#include "Common/_d3d_extensions.h" | ||
|
||
#include <fcntl.h> | ||
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
#include <io.h> | ||
#include <stdio.h> | ||
|
||
#ifdef AI_COMPILER | ||
#include "smart_cast.h" | ||
#endif | ||
|
||
#include "utils/xrLCUtil/ILevelCompilerLogger.hpp" | ||
#include "utils/xrLCUtil/xrThread.hpp" | ||
#include "xrCore/cdecl_cast.hpp" | ||
#include "xrScriptEngine/DebugMacros.hpp" // XXX: move debug macros to xrCore | ||
|
||
extern ILevelCompilerLogger& Logger; | ||
extern CThread::LogFunc ProxyMsg; | ||
extern CThreadManager::ReportStatusFunc ProxyStatus; | ||
extern CThreadManager::ReportProgressFunc ProxyProgress; | ||
|
||
#define READ_IF_EXISTS(ltx, method, section, name, default_value)\ | ||
(ltx->line_exist(section, name)) ? ltx->method(section, name) : default_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
#include "stdafx.h" | ||
#include "xrCore/cdecl_cast.hpp" | ||
#include "utils/xrLCUtil/LevelCompilerLoggerWindow.hpp" | ||
|
||
ILevelCompilerLogger& Logger = LevelCompilerLoggerWindow::instance(); | ||
|
||
CThread::LogFunc ProxyMsg = cdecl_cast([](const char* format, ...) { | ||
va_list args; | ||
va_start(args, format); | ||
Logger.clMsgV(format, args); | ||
va_end(args); | ||
}); | ||
|
||
CThreadManager::ReportStatusFunc ProxyStatus = cdecl_cast([](const char* format, ...) { | ||
va_list args; | ||
va_start(args, format); | ||
Logger.StatusV(format, args); | ||
va_end(args); | ||
}); | ||
|
||
CThreadManager::ReportProgressFunc ProxyProgress = cdecl_cast([](float progress) { Logger.Progress(progress); }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.