Skip to content

Commit ce3c373

Browse files
author
Pavel Kovalenko
committed
Restore original sources state (almost unmodified leaked version).
1 parent fe6e119 commit ce3c373

File tree

25 files changed

+389
-368
lines changed

25 files changed

+389
-368
lines changed

src/engine/Layers/xrRender/DetailManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void CDetailManager::UpdateVisibleM()
221221

222222
u32 dwCC = dm_cache1_count*dm_cache1_count;
223223

224-
for (int _i=0; _i < dwCC ; _i++){
224+
for (u32 _i=0; _i < dwCC ; _i++){
225225
Slot* PS = *MS.slots[_i];
226226
Slot& S = *PS;
227227

src/engine/Layers/xrRender/DetailManager_VS.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,15 +319,11 @@ void CDetailManager::hw_Render_dump (ref_constant x_array, u32 var_id, u32 lod_
319319
RCache.stat.r.s_details.add (dwCNT_verts);
320320
}
321321
// Clean up
322-
<<<<<<< HEAD
323322
vis.clear_not_free ();
324-
=======
325-
vis.clear_not_free ();
326-
>>>>>>> origin/master
327323
}
328324
vOffset += hw_BatchSize * Object.number_vertices;
329325
iOffset += hw_BatchSize * Object.number_indices;
330326
}
331327
}
332328

333-
#endif // USE_DX10
329+
#endif // USE_DX10

src/engine/Layers/xrRender/ParticleEffect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,19 +442,19 @@ void ParticleRenderStream( LPVOID lpvParams )
442442
lt.set (0.f,0.f);
443443
rb.set (1.f,1.f);
444444

445-
// _mm_prefetch( (char*) &particles[i + 1] , _MM_HINT_NTA );
445+
_mm_prefetch( (char*) &particles[i + 1] , _MM_HINT_NTA );
446446

447-
//if ( angle != *((DWORD*)&m.rot.x) ) {
447+
if ( angle != *((DWORD*)&m.rot.x) ) {
448448
angle = *((DWORD*)&m.rot.x);
449449
__asm {
450450
fld DWORD PTR [angle]
451451
fsincos
452452
fstp DWORD PTR [cosa]
453453
fstp DWORD PTR [sina]
454454
}
455-
//}
455+
}
456456

457-
// _mm_prefetch( 64 + (char*) &particles[i + 1] , _MM_HINT_NTA );
457+
_mm_prefetch( 64 + (char*) &particles[i + 1] , _MM_HINT_NTA );
458458

459459
if (pPE.m_Def->m_Flags.is(CPEDef::dfFramed))
460460
pPE.m_Def->m_Frame.CalculateTC(iFloor(float(m.frame)/255.f),lt,rb);

src/engine/Layers/xrRenderPC_R1/xrRender_R1.vcproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="windows-1251"?>
22
<VisualStudioProject
33
ProjectType="Visual C++"
4-
Version="9.00"
4+
Version="9,00"
55
Name="xrRender_R1"
66
ProjectGUID="{57A498C9-A741-4DDF-8EFC-BFB9EB6B00E2}"
77
RootNamespace="xrRender_R1"
@@ -180,7 +180,7 @@
180180
/>
181181
<Tool
182182
Name="VCLinkerTool"
183-
AdditionalDependencies="nvapi.lib atimgpud_s_x86.lib tal_sr.lib"
183+
AdditionalDependencies="nvapi.lib atimgpud_s_x86.lib"
184184
LinkIncremental="1"
185185
AdditionalLibraryDirectories="..\..\..\sdk\libraries;..\..\..\..\libraries"
186186
GenerateDebugInformation="true"

src/engine/Layers/xrRenderPC_R2/stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "../../xrEngine/igame_level.h"
3636
#include "../xrRender/blenders\blender.h"
3737
#include "../xrRender/blenders\blender_clsid.h"
38-
#include "../../xrEngine/psystem.h"
38+
#include "../../xrParticles/psystem.h"
3939
#include "../xrRender/xrRender_console.h"
4040
#include "r2.h"
4141

src/engine/Layers/xrRenderPC_R3/stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define RENDER R_R3
3131

3232

33-
#include "../../xrEngine/psystem.h"
33+
#include "../../xrParticles/psystem.h"
3434

3535
#include "../xrRender/HW.h"
3636
#include "../xrRender/Shader.h"

src/engine/Layers/xrRenderPC_R4/stdafx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define R_R4 4
2929
#define RENDER R_R4
3030

31-
#include "../../xrEngine/psystem.h"
31+
#include "../../xrParticles/psystem.h"
3232

3333
#include "../xrRender/HW.h"
3434
#include "../xrRender/Shader.h"

src/engine/utils/ETools/ETools.vcproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<Tool
9292
Name="VCLinkerTool"
9393
AdditionalOptions="/MACHINE:I386"
94-
AdditionalDependencies="ogg_static.lib vorbis_static.lib vorbisenc_static.lib vorbisfile_static.lib"
94+
AdditionalDependencies="libogg_static.lib libvorbis_static.lib libvorbisenc_static.lib libvorbisfile_static.lib"
9595
LinkIncremental="1"
9696
SuppressStartupBanner="false"
9797
AdditionalLibraryDirectories="..\..\..\sdk\libraries;..\..\..\..\libraries"
@@ -201,7 +201,7 @@
201201
Name="VCLinkerTool"
202202
IgnoreImportLibrary="true"
203203
AdditionalOptions="/MACHINE:I386 /NODEFAULTLIB:LIBCMTD"
204-
AdditionalDependencies="ogg_static_d.lib vorbis_static_d.lib vorbisenc_static.lib vorbisfile_static_d.lib"
204+
AdditionalDependencies="libogg_static_d.lib libvorbis_static_d.lib libvorbisenc_static.lib libvorbisfile_static_d.lib"
205205
LinkIncremental="2"
206206
SuppressStartupBanner="true"
207207
AdditionalLibraryDirectories="..\..\..\sdk\libraries;..\..\..\..\libraries"
@@ -309,7 +309,7 @@
309309
<Tool
310310
Name="VCLinkerTool"
311311
AdditionalOptions="/MACHINE:I386 /NODEFAULTLIB:user32"
312-
AdditionalDependencies="ogg_static.lib vorbis_static.lib vorbisenc_static.lib vorbisfile_static.lib"
312+
AdditionalDependencies="libogg_static.lib libvorbis_static.lib libvorbisenc_static.lib libvorbisfile_static.lib"
313313
LinkIncremental="1"
314314
SuppressStartupBanner="true"
315315
AdditionalLibraryDirectories="..\..\..\sdk\libraries;..\..\..\..\libraries"

src/engine/xrCPU_Pipe/xrCPU_Pipe.vcproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="windows-1251"?>
22
<VisualStudioProject
33
ProjectType="Visual C++"
4-
Version="9.00"
4+
Version="9,00"
55
Name="xrCPU_Pipe"
66
ProjectGUID="{CA0649DD-D089-423A-981C-46B57A884EB9}"
7+
RootNamespace="xrCPU_Pipe"
78
TargetFrameworkVersion="131072"
89
>
910
<Platforms>
@@ -95,7 +96,6 @@
9596
<Tool
9697
Name="VCLinkerTool"
9798
AdditionalOptions="/MACHINE:I386 "
98-
AdditionalDependencies="tal_sr.lib"
9999
LinkIncremental="1"
100100
SuppressStartupBanner="true"
101101
AdditionalLibraryDirectories="..\..\sdk\libraries;..\..\..\libraries"

src/engine/xrCore/FS.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# define O_SEQUENTIAL 0
1818
#endif // M_BORLAND
1919

20-
#ifdef DEBUG
20+
#ifdef FS_DEBUG
2121
XRCORE_API u32 g_file_mapped_memory = 0;
2222
u32 g_file_mapped_count = 0;
2323
typedef xr_map<u32,std::pair<u32,shared_str> > FILE_MAPPINGS;
@@ -474,7 +474,7 @@ CTempReader::~CTempReader()
474474
// pack stream
475475
CPackReader::~CPackReader()
476476
{
477-
#ifdef DEBUG
477+
#ifdef FS_DEBUG
478478
unregister_file_mapping (base_address,Size);
479479
#endif // DEBUG
480480

@@ -514,14 +514,14 @@ CVirtualFileRW::CVirtualFileRW(const char *cFileName)
514514
data = (char*)MapViewOfFile (hSrcMap, FILE_MAP_ALL_ACCESS, 0, 0, 0);
515515
R_ASSERT3 (data,cFileName,Debug.error2string(GetLastError()));
516516

517-
#ifdef DEBUG
517+
#ifdef FS_DEBUG
518518
register_file_mapping (data,Size,cFileName);
519519
#endif // DEBUG
520520
}
521521

522522
CVirtualFileRW::~CVirtualFileRW()
523523
{
524-
#ifdef DEBUG
524+
#ifdef FS_DEBUG
525525
unregister_file_mapping (data,Size);
526526
#endif // DEBUG
527527

@@ -544,14 +544,14 @@ CVirtualFileReader::CVirtualFileReader(const char *cFileName)
544544
data = (char*)MapViewOfFile (hSrcMap, FILE_MAP_READ, 0, 0, 0);
545545
R_ASSERT3 (data,cFileName,Debug.error2string(GetLastError()));
546546

547-
#ifdef DEBUG
547+
#ifdef FS_DEBUG
548548
register_file_mapping (data,Size,cFileName);
549549
#endif // DEBUG
550550
}
551551

552552
CVirtualFileReader::~CVirtualFileReader()
553553
{
554-
#ifdef DEBUG
554+
#ifdef FS_DEBUG
555555
unregister_file_mapping (data,Size);
556556
#endif // DEBUG
557557

0 commit comments

Comments
 (0)