-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path0100-File-cpp.patch
More file actions
21 lines (19 loc) · 942 Bytes
/
0100-File-cpp.patch
File metadata and controls
21 lines (19 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -uNrp DxLibMake.old/Linux/DxFileLinux.cpp DxLibMake.new/Linux/DxFileLinux.cpp
--- DxLibMake.old/Linux/DxFileLinux.cpp
+++ DxLibMake.new/Linux/DxFileLinux.cpp
@@ -10,8 +10,6 @@
#define DX_MAKE
// インクルード ---------------------------------------------------------------
-#include "DxSystemLinux.h"
-#include "DxSystemLinux_ObjC.h"
#include "../DxFile.h"
#include "../DxLog.h"
#include "../DxChar.h"
@@ -97,7 +95,7 @@ static int LINUX_wchar_t_to_utf8_Path( c
// 1文字目が / でも \\ でもなければアプリケーションディレクトリをアクセスすると判断する
if( FullPath[ 0 ] != L'/' && FullPath[ 0 ] != L'\\' )
{
- const char *ApplicationDirPath = GetApplicationDirectory() ;
+ const char *ApplicationDirPath = "." ;
int StrLength = ( int )CL_strlen( DX_CHARCODEFORMAT_UTF8, ApplicationDirPath ) ;
CL_strcpy( DX_CHARCODEFORMAT_UTF8, utf8_PathBuffer, ApplicationDirPath ) ;