-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path0100-Log-cpp.patch
More file actions
52 lines (46 loc) · 1.37 KB
/
0100-Log-cpp.patch
File metadata and controls
52 lines (46 loc) · 1.37 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff -uNrp DxLibMake.old/Linux/DxLogLinux.cpp DxLibMake.new/Linux/DxLogLinux.cpp
--- DxLibMake.old/Linux/DxLogLinux.cpp
+++ DxLibMake.new/Linux/DxLogLinux.cpp
@@ -24,8 +24,8 @@
#include "../DxMemory.h"
#include "../DxGraphics.h"
#include "DxGraphicsLinux.h"
-#include "DxObjectiveCPP.h"
#include <wchar.h>
+#include <stdio.h>
#ifndef DX_NON_NAMESPACE
@@ -57,7 +57,7 @@ extern int LogFileInitialize_PF( const w
// 初期化フラグを立てる
LogData.PF.InitializeFlag = TRUE ;
-
+/*
// エラーログファイルのパスをコピー
LogData.PF.LogDataPath[ 0 ] = '\0' ;
GetDocumentsDirPathForChar( LogData.PF.LogDataPath, sizeof( LogData.PF.LogDataPath ) ) ;
@@ -94,7 +94,7 @@ extern int LogFileInitialize_PF( const w
}
}
}
-
+*/
// 終了
return 0 ;
}
@@ -135,7 +135,7 @@ extern int LogFileAdd_WCHAR_T_PF( const
Bytes = ConvString( ( char * )ErrorStr, -1, WCHAR_T_CHARCODEFORMAT, ErrorStrUseBuffer, ErrorStrUseBufferBytes, DX_CHARCODEFORMAT_UTF8 ) ;
- // エラーログファイルを開く
+/* // エラーログファイルを開く
if( Bytes > 1 &&
LogData.PF.LogDataPath[ 0 ] != '\0' )
{
@@ -168,9 +168,9 @@ extern int LogFileAdd_WCHAR_T_PF( const
}
}
}
-
+*/
// コンソールにも出力
- DxObjectiveCPP_Class::NSLog( "%s", ErrorStrUseBuffer ) ;
+ fprintf(stderr, "%s", ErrorStrUseBuffer ) ;
if( ErrorStrTempBuffer != NULL )
{