Skip to content

Commit 46e88a5

Browse files
committed
[GEN][ZH] Remove trailing CR LF from WWRELEASE_SAY, SNAPSHOT_SAY strings with script (#1232)
1 parent 21e50a0 commit 46e88a5

File tree

17 files changed

+163
-163
lines changed

17 files changed

+163
-163
lines changed

Core/Libraries/Source/WWVegas/WW3D2/dx8polygonrenderer.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,20 @@ inline void DX8PolygonRendererClass::Set_Vertex_Index_Range(unsigned min_vertex_
118118
inline void DX8PolygonRendererClass::Render(/*const Matrix3D & tm,*/int base_vertex_offset)
119119
{
120120
// DX8Wrapper::Set_Transform(D3DTS_WORLD,tm);
121-
// SNAPSHOT_SAY(("Set_Transform\n"));
122-
SNAPSHOT_SAY(("Set_Index_Buffer_Index_Offset(%d)\n",base_vertex_offset));
121+
// SNAPSHOT_SAY(("Set_Transform"));
122+
SNAPSHOT_SAY(("Set_Index_Buffer_Index_Offset(%d)",base_vertex_offset));
123123

124124
DX8Wrapper::Set_Index_Buffer_Index_Offset(base_vertex_offset);
125125
if (strip) {
126-
SNAPSHOT_SAY(("Draw_Strip(%d,%d,%d,%d)\n",index_offset,index_count-2,min_vertex_index,vertex_index_range));
126+
SNAPSHOT_SAY(("Draw_Strip(%d,%d,%d,%d)",index_offset,index_count-2,min_vertex_index,vertex_index_range));
127127
DX8Wrapper::Draw_Strip(
128128
index_offset,
129129
index_count-2,
130130
min_vertex_index,
131131
vertex_index_range);
132132
}
133133
else {
134-
SNAPSHOT_SAY(("Draw_Triangles(%d,%d,%d,%d)\n",index_offset,index_count-2,min_vertex_index,vertex_index_range));
134+
SNAPSHOT_SAY(("Draw_Triangles(%d,%d,%d,%d)",index_offset,index_count-2,min_vertex_index,vertex_index_range));
135135
DX8Wrapper::Draw_Triangles(
136136
index_offset,
137137
index_count/3,
@@ -144,9 +144,9 @@ inline void DX8PolygonRendererClass::Render_Sorted(/*const Matrix3D & tm,*/int b
144144
{
145145
WWASSERT(!strip); // Strips can't be sorted for now
146146
// DX8Wrapper::Set_Transform(D3DTS_WORLD,tm);
147-
// SNAPSHOT_SAY(("Set_Transform\n"));
148-
SNAPSHOT_SAY(("Set_Index_Buffer_Index_Offset(%d)\n",base_vertex_offset));
149-
SNAPSHOT_SAY(("Insert_Sorting_Triangles(%d,%d,%d,%d)\n",index_offset,index_count-2,min_vertex_index,vertex_index_range));
147+
// SNAPSHOT_SAY(("Set_Transform"));
148+
SNAPSHOT_SAY(("Set_Index_Buffer_Index_Offset(%d)",base_vertex_offset));
149+
SNAPSHOT_SAY(("Insert_Sorting_Triangles(%d,%d,%d,%d)",index_offset,index_count-2,min_vertex_index,vertex_index_range));
150150

151151
DX8Wrapper::Set_Index_Buffer_Index_Offset(base_vertex_offset);
152152
SortingRendererClass::Insert_Triangles(

Core/Libraries/Source/WWVegas/WWDebug/wwprofile.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ WWMemoryAndTimeLog::WWMemoryAndTimeLog(const char* name)
10391039
IntermediateAllocSizeStart=AllocSizeStart;
10401040
StringClass tmp(0,true);
10411041
for (unsigned i=0;i<TabCount;++i) tmp+="\t";
1042-
WWRELEASE_SAY(("%s%s {\n",tmp.str(),name));
1042+
WWRELEASE_SAY(("%s%s {",tmp.str(),name));
10431043
TabCount++;
10441044
}
10451045

@@ -1053,12 +1053,12 @@ WWMemoryAndTimeLog::~WWMemoryAndTimeLog()
10531053
unsigned current_time=WWProfile_Get_System_Time();
10541054
int current_alloc_count=FastAllocatorGeneral::Get_Allocator()->Get_Total_Allocation_Count();
10551055
int current_alloc_size=FastAllocatorGeneral::Get_Allocator()->Get_Total_Allocated_Size();
1056-
WWRELEASE_SAY(("IN TOTAL %s took %d.%3.3d s, did %d memory allocations of %d bytes\n",
1056+
WWRELEASE_SAY(("IN TOTAL %s took %d.%3.3d s, did %d memory allocations of %d bytes",
10571057
Name.str(),
10581058
(current_time - TimeStart)/1000, (current_time - TimeStart)%1000,
10591059
current_alloc_count - AllocCountStart,
10601060
current_alloc_size - AllocSizeStart));
1061-
WWRELEASE_SAY(("\n"));
1061+
WWRELEASE_SAY((""));
10621062

10631063
}
10641064

@@ -1070,7 +1070,7 @@ void WWMemoryAndTimeLog::Log_Intermediate(const char* text)
10701070
int current_alloc_size=FastAllocatorGeneral::Get_Allocator()->Get_Total_Allocated_Size();
10711071
StringClass tmp(0,true);
10721072
for (unsigned i=0;i<TabCount;++i) tmp+="\t";
1073-
WWRELEASE_SAY(("%s%s took %d.%3.3d s, did %d memory allocations of %d bytes\n",
1073+
WWRELEASE_SAY(("%s%s took %d.%3.3d s, did %d memory allocations of %d bytes",
10741074
tmp.str(),
10751075
text,
10761076
(current_time - IntermediateTimeStart)/1000, (current_time - IntermediateTimeStart)%1000,

Core/Libraries/Source/WWVegas/WWSaveLoad/saveload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool SaveLoadSystemClass::Load (ChunkLoadClass &cload,bool auto_post_load)
8383
SaveLoadSubSystemClass *sys = Find_Sub_System(cload.Cur_Chunk_ID ());
8484
WWLOG_INTERMEDIATE("Find_Sub_System");
8585
if (sys != NULL) {
86-
//WWRELEASE_SAY((" Name: %s\n",sys->Name()));
86+
//WWRELEASE_SAY((" Name: %s",sys->Name()));
8787
INIT_SUB_STATUS(sys->Name());
8888
ok &= sys->Load(cload);
8989
WWLOG_INTERMEDIATE(sys->Name());

Generals/Code/Libraries/Source/WWVegas/WW3D2/dx8renderer.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,9 @@ void DX8RigidFVFCategoryContainer::Render(void)
760760
DX8Wrapper::Set_Vertex_Buffer(vertex_buffer);
761761
DX8Wrapper::Set_Index_Buffer(index_buffer,0);
762762

763-
SNAPSHOT_SAY(("DX8RigidFVFCategoryContainer::Render()\n"));
763+
SNAPSHOT_SAY(("DX8RigidFVFCategoryContainer::Render()"));
764764
for (unsigned p=0;p<passes;++p) {
765-
SNAPSHOT_SAY(("Pass: %d\n",p));
765+
SNAPSHOT_SAY(("Pass: %d",p));
766766
while (DX8TextureCategoryClass * tex = visible_texture_category_list[p].Remove_Head()) {
767767
tex->Render();
768768
}
@@ -1237,9 +1237,9 @@ void DX8SkinFVFCategoryContainer::Log(bool only_visible)
12371237

12381238
void DX8SkinFVFCategoryContainer::Render(void)
12391239
{
1240-
SNAPSHOT_SAY(("DX8SkinFVFCategoryContainer::Render()\n"));
1240+
SNAPSHOT_SAY(("DX8SkinFVFCategoryContainer::Render()"));
12411241
if (!Anything_To_Render()) {
1242-
SNAPSHOT_SAY(("Nothing to render\n"));
1242+
SNAPSHOT_SAY(("Nothing to render"));
12431243
return;
12441244
}
12451245
AnythingToRender=false;
@@ -1258,7 +1258,7 @@ void DX8SkinFVFCategoryContainer::Render(void)
12581258
sorting ? BUFFER_TYPE_DYNAMIC_SORTING : BUFFER_TYPE_DYNAMIC_DX8,
12591259
dynamic_fvf_type,
12601260
maxVertexCount);
1261-
SNAPSHOT_SAY(("DynamicVBAccess - %s - %d vertices\n",sorting ? "sorting" : "non-sorting",VisibleVertexCount));
1261+
SNAPSHOT_SAY(("DynamicVBAccess - %s - %d vertices",sorting ? "sorting" : "non-sorting",VisibleVertexCount));
12621262

12631263
unsigned int renderedVertexCount=0;
12641264

@@ -1347,14 +1347,14 @@ void DX8SkinFVFCategoryContainer::Render(void)
13471347
} //while
13481348
}//lock
13491349

1350-
SNAPSHOT_SAY(("Set vb: %x ib: %x\n",&vb.FVF_Info(),index_buffer));
1350+
SNAPSHOT_SAY(("Set vb: %x ib: %x",&vb.FVF_Info(),index_buffer));
13511351

13521352
DX8Wrapper::Set_Vertex_Buffer(vb);
13531353
DX8Wrapper::Set_Index_Buffer(index_buffer,0);
13541354

13551355
//Flush the meshes which fit in the vertex buffer, applying all texture variations
13561356
for (unsigned pass=0;pass<passes;++pass) {
1357-
SNAPSHOT_SAY(("Pass: %d\n",pass));
1357+
SNAPSHOT_SAY(("Pass: %d",pass));
13581358

13591359
TextureCategoryListIterator it(&visible_texture_category_list[pass]);
13601360
while (!it.Is_Done()) {
@@ -1632,19 +1632,19 @@ void DX8TextureCategoryClass::Render(void)
16321632
#endif
16331633

16341634
for (unsigned i=0;i<MAX_TEXTURE_STAGES;++i) {
1635-
SNAPSHOT_SAY(("Set_Texture(%d,%s)\n",i,Peek_Texture(i) ? Peek_Texture(i)->Get_Texture_Name().str() : "NULL"));
1635+
SNAPSHOT_SAY(("Set_Texture(%d,%s)",i,Peek_Texture(i) ? Peek_Texture(i)->Get_Texture_Name().str() : "NULL"));
16361636
DX8Wrapper::Set_Texture(i,Peek_Texture(i));
16371637
}
16381638

16391639
#ifdef WWDEBUG
16401640
}
16411641
#endif
16421642

1643-
SNAPSHOT_SAY(("Set_Material(%s)\n",Peek_Material() ? Peek_Material()->Get_Name() : "NULL"));
1643+
SNAPSHOT_SAY(("Set_Material(%s)",Peek_Material() ? Peek_Material()->Get_Name() : "NULL"));
16441644
VertexMaterialClass *vmaterial=(VertexMaterialClass *)Peek_Material(); //ugly cast from const but we'll restore it after changes so okay. -MW
16451645
DX8Wrapper::Set_Material(vmaterial);
16461646

1647-
SNAPSHOT_SAY(("Set_Shader(%x)\n",Get_Shader().Get_Bits()));
1647+
SNAPSHOT_SAY(("Set_Shader(%x)",Get_Shader().Get_Bits()));
16481648
ShaderClass theShader = Get_Shader();
16491649

16501650
//Setup an alpha blend version of this shader just in case it's needed. -MW
@@ -1690,7 +1690,7 @@ void DX8TextureCategoryClass::Render(void)
16901690
continue;
16911691
}
16921692

1693-
SNAPSHOT_SAY(("mesh = %s\n",mesh->Get_Name()));
1693+
SNAPSHOT_SAY(("mesh = %s",mesh->Get_Name()));
16941694

16951695
#ifdef WWDEBUG
16961696
// Debug rendering: if it exists, expose prelighting on this mesh by disabling all base textures.
@@ -1745,11 +1745,11 @@ void DX8TextureCategoryClass::Render(void)
17451745
*/
17461746
LightEnvironmentClass * lenv = mesh->Get_Lighting_Environment();
17471747
if (lenv != NULL) {
1748-
SNAPSHOT_SAY(("LightEnvironment, lights: %d\n",lenv->Get_Light_Count()));
1748+
SNAPSHOT_SAY(("LightEnvironment, lights: %d",lenv->Get_Light_Count()));
17491749
DX8Wrapper::Set_Light_Environment(lenv);
17501750
}
17511751
else {
1752-
SNAPSHOT_SAY(("No light environment\n"));
1752+
SNAPSHOT_SAY(("No light environment"));
17531753
}
17541754

17551755
/*
@@ -1760,7 +1760,7 @@ void DX8TextureCategoryClass::Render(void)
17601760
Matrix3D tmp_world;
17611761

17621762
if (mesh->Peek_Model()->Get_Flag(MeshModelClass::ALIGNED)) {
1763-
SNAPSHOT_SAY(("Camera mode ALIGNED\n"));
1763+
SNAPSHOT_SAY(("Camera mode ALIGNED"));
17641764

17651765
Vector3 mesh_position;
17661766
Vector3 camera_z_vector;
@@ -1772,7 +1772,7 @@ void DX8TextureCategoryClass::Render(void)
17721772
world_transform = &tmp_world;
17731773

17741774
} else if (mesh->Peek_Model()->Get_Flag(MeshModelClass::ORIENTED)) {
1775-
SNAPSHOT_SAY(("Camera mode ORIENTED\n"));
1775+
SNAPSHOT_SAY(("Camera mode ORIENTED"));
17761776

17771777
Vector3 mesh_position;
17781778
Vector3 camera_position;
@@ -1784,7 +1784,7 @@ void DX8TextureCategoryClass::Render(void)
17841784
world_transform = &tmp_world;
17851785

17861786
} else if (mesh->Peek_Model()->Get_Flag(MeshModelClass::SKIN)) {
1787-
SNAPSHOT_SAY(("Set world identity (for skin)\n"));
1787+
SNAPSHOT_SAY(("Set world identity (for skin)"));
17881788

17891789
tmp_world.Make_Identity();
17901790
world_transform = &tmp_world;
@@ -1793,11 +1793,11 @@ void DX8TextureCategoryClass::Render(void)
17931793

17941794

17951795
if (identity) {
1796-
SNAPSHOT_SAY(("Set_World_Identity\n"));
1796+
SNAPSHOT_SAY(("Set_World_Identity"));
17971797
DX8Wrapper::Set_World_Identity();
17981798
}
17991799
else {
1800-
SNAPSHOT_SAY(("Set_World_Transform\n"));
1800+
SNAPSHOT_SAY(("Set_World_Transform"));
18011801
DX8Wrapper::Set_Transform(D3DTS_WORLD,*world_transform);
18021802
}
18031803

0 commit comments

Comments
 (0)