File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 13
13
namespace nzsla
14
14
{
15
15
Archiver::Archiver (cxxopts::ParseResult& options) :
16
- m_options (options)
16
+ m_options (options),
17
+ m_outputToStdout (false )
17
18
{
18
19
}
19
20
@@ -79,7 +80,7 @@ namespace nzsla
79
80
(" version" , " Print version" );
80
81
81
82
options.add_options (" archive" )
82
- (" a,archive" , " Archives the input shaders to an archive." );
83
+ (" a,archive" , " Archives the input shaders to an archive." )
83
84
(" header" , " Generates an includable header file." );
84
85
85
86
options.add_options (" compression" )
Original file line number Diff line number Diff line change @@ -95,5 +95,10 @@ module name: Engine.ViewerData
95
95
CHECK (moduleResolver.Resolve (" Engine.SkinningData" ));
96
96
CHECK (moduleResolver.Resolve (" Engine.ViewerData" ));
97
97
CHECK_FALSE (moduleResolver.Resolve (" NonExistent" ));
98
+
99
+ // Test header generation
100
+ ExecuteCommand (" ./nzsla --archive --compress --header -o test_files/test_archive.nzsla.h ../resources/modules/Archive/InstanceData.nzslb ../resources/modules/Archive/LightData.nzslb ../resources/modules/Archive/SkeletalData.nzslb ../resources/modules/Archive/SkinningData.nzslb ../resources/modules/Archive/ViewerData.nzslb" );
101
+
102
+ CheckHeaderMatch (Nz::Utf8Path (" test_files/test_archive.nzsla" ));
98
103
}
99
104
}
You can’t perform that action at this time.
0 commit comments