Skip to content

Commit

Permalink
WIP of xrAI and xrSE_Factory. Use an external load mechanism for STex…
Browse files Browse the repository at this point in the history
…tureParams.
  • Loading branch information
intorr committed Jan 1, 2018
1 parent 5aef55f commit bd3909e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
13 changes: 1 addition & 12 deletions src/utils/xrAI/compiler_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,8 @@ void xrLoad(LPCSTR name, bool draft_mode)
IReader* THM = FS.r_open("$game_textures$", N);
R_ASSERT2(THM, N);

// version
u32 version = 0;
R_ASSERT(THM->r_chunk(THM_CHUNK_VERSION, &version));
// analyze thumbnail information
R_ASSERT(THM->find_chunk(THM_CHUNK_TEXTUREPARAM));
THM->r(&BT.THM.fmt, sizeof(STextureParams::ETFormat));
BT.THM.flags.assign(THM->r_u32());
BT.THM.border_color = THM->r_u32();
BT.THM.fade_color = THM->r_u32();
BT.THM.fade_amount = THM->r_u32();
BT.THM.mip_filter = THM->r_u32();
BT.THM.width = THM->r_u32();
BT.THM.height = THM->r_u32();
BT.THM.Load(*THM);
BOOL bLOD = FALSE;
if (N[0] == 'l' && N[1] == 'o' && N[2] == 'd' && N[3] == '\\')
bLOD = TRUE;
Expand Down
2 changes: 2 additions & 0 deletions src/utils/xrAI/xrAI.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\Layers\xrRender\ETextureParams.cpp" />
<ClCompile Include="..\..\xrEngine\xrLoadSurface.cpp" />
<ClCompile Include="..\..\xrServerEntities\alife_human_brain.cpp" />
<ClCompile Include="..\..\xrServerEntities\alife_monster_brain.cpp" />
Expand Down Expand Up @@ -191,6 +192,7 @@
<ClCompile Include="xr_graph_merge.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\Layers\xrRender\ETextureParams.h" />
<ClInclude Include="..\..\xrServerEntities\alife_human_brain.h" />
<ClInclude Include="..\..\xrServerEntities\alife_human_brain_inline.h" />
<ClInclude Include="..\..\xrServerEntities\alife_monster_brain.h" />
Expand Down
6 changes: 6 additions & 0 deletions src/utils/xrAI/xrAI.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@
<ClCompile Include="guid_generator.cpp">
<Filter>ALife\guid_generator</Filter>
</ClCompile>
<ClCompile Include="..\..\Layers\xrRender\ETextureParams.cpp">
<Filter>Compiler</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="AIMapExport.h">
Expand Down Expand Up @@ -332,6 +335,9 @@
<ClInclude Include="resource.h">
<Filter>Resources</Filter>
</ClInclude>
<ClInclude Include="..\..\Layers\xrRender\ETextureParams.h">
<Filter>Compiler</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc">
Expand Down

0 comments on commit bd3909e

Please sign in to comment.