Skip to content

Commit 4377817

Browse files
committed
Copy *L10N.ini files to output folder
So that they can be used during debugging.
1 parent 8fee436 commit 4377817

File tree

10 files changed

+12
-18
lines changed

10 files changed

+12
-18
lines changed

Src/ClassicExplorer/ClassicExplorer.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@
100100
<None Include="ClassicExplorer64.def" />
101101
<None Include="ExplorerBand.rgs" />
102102
<None Include="ExplorerBHO.rgs" />
103-
<None Include="ExplorerL10N.ini" />
103+
<None Include="ExplorerL10N.ini">
104+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
105+
</None>
104106
<None Include="ShareOverlay.rgs" />
105107
</ItemGroup>
106108
<ItemGroup>

Src/ClassicExplorer/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static DWORD CALLBACK DllInitThread( void* )
110110
GetModuleFileName(g_Instance,path,_countof(path));
111111
*PathFindFileName(path)=0;
112112
wchar_t fname[_MAX_PATH];
113-
Sprintf(fname,_countof(fname),L"%s" INI_PATH L"ExplorerL10N.ini",path);
113+
Sprintf(fname,_countof(fname),L"%sExplorerL10N.ini",path);
114114
CString language=GetSettingString(L"Language");
115115
ParseTranslations(fname,language);
116116

Src/ClassicExplorer/stdafx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ using namespace ATL;
2727
#include <shlobj.h>
2828

2929
#ifdef BUILD_SETUP
30-
#define INI_PATH L""
3130
#define DOC_PATH L""
3231
#else
33-
#define INI_PATH L"..\\"
3432
#define DOC_PATH L"..\\..\\Docs\\Help\\"
3533
#endif
3634

Src/ClassicIE/ClassicIEDLL/stdafx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@
2525
using namespace ATL;
2626

2727
#ifdef BUILD_SETUP
28-
#define INI_PATH L""
2928
#define DOC_PATH L""
3029
#else
31-
#define INI_PATH L"..\\"
3230
#define DOC_PATH L"..\\..\\Docs\\Help\\"
3331
#endif
3432

Src/StartMenu/StartMenu.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
<ClInclude Include="targetver.h" />
7575
</ItemGroup>
7676
<ItemGroup>
77-
<None Include="StartMenuL10N.ini" />
77+
<None Include="StartMenuL10N.ini">
78+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
79+
</None>
7880
</ItemGroup>
7981
<ItemGroup>
8082
<ProjectReference Include="..\Lib\Lib.vcxproj">

Src/StartMenu/StartMenuDLL/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static DWORD CALLBACK DllInitThread( void* )
6262
*PathFindFileName(path)=0;
6363

6464
wchar_t fname[_MAX_PATH];
65-
Sprintf(fname,_countof(fname),L"%s" INI_PATH L"StartMenuL10N.ini",path);
65+
Sprintf(fname,_countof(fname),L"%sStartMenuL10N.ini",path);
6666
CString language=GetSettingString(L"Language");
6767
ParseTranslations(fname,language);
6868

Src/StartMenu/StartMenuDLL/stdafx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
#include <atlwin.h>
2424

2525
#ifdef BUILD_SETUP
26-
#define INI_PATH L""
2726
#define DOC_PATH L""
2827
#else
29-
#define INI_PATH L"..\\"
3028
#define DOC_PATH L"..\\..\\Docs\\Help\\"
3129
#endif
3230

Src/StartMenu/StartMenuHelper/StartMenuHelper.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
<None Include="StartMenuHelper.rgs" />
9696
<None Include="StartMenuHelper32.def" />
9797
<None Include="StartMenuHelper64.def" />
98-
<None Include="StartMenuHelperL10N.ini" />
98+
<None Include="StartMenuHelperL10N.ini">
99+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
100+
</None>
99101
</ItemGroup>
100102
<ItemGroup>
101103
<ClInclude Include="dllmain.h" />

Src/StartMenu/StartMenuHelper/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static DWORD CALLBACK DllInitThread( void* )
9292
}
9393

9494
wchar_t fname[_MAX_PATH];
95-
Sprintf(fname,_countof(fname),L"%s" INI_PATH L"StartMenuHelperL10N.ini",path);
95+
Sprintf(fname,_countof(fname),L"%sStartMenuHelperL10N.ini",path);
9696
CString language=GetSettingString(L"Language");
9797
ParseTranslations(fname,language);
9898

Src/StartMenu/StartMenuHelper/stdafx.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,3 @@
2222
#include <atlstr.h>
2323

2424
using namespace ATL;
25-
26-
#ifdef BUILD_SETUP
27-
#define INI_PATH L""
28-
#else
29-
#define INI_PATH L"..\\"
30-
#endif

0 commit comments

Comments
 (0)