111 Commits

Author SHA1 Message Date
Jan
2fe3954da8 Unlinker: Add skeleton for Dumping and listing of assets 2019-11-15 18:17:08 +01:00
Jan
d176e137a5 Utils: Change FileAPI and PathUtils to make use std::filesystem 2019-11-15 18:16:11 +01:00
Jan
4a616b6c24 Change C++ projects to use C++17 2019-11-15 18:13:38 +01:00
Jan
caa01a4864 ZoneCodeGenerator: Add commands for ddlDef and a bit of other stuff to not break from errors 2019-11-15 14:56:11 +01:00
Jan
ee2653657e ZoneCodeGenerator: Add template code and separate into different template files for a better overview and less cluttered template code 2019-11-15 14:55:35 +01:00
Jan
3bf0334c59 ZoneCodeGenerator: Add and rename member computations to make more sense 2019-11-15 14:54:29 +01:00
Jan
08d0dda4f6 ZoneCodeGenerator: Make scriptstringprovider available to child classes of asset loader to be able to instantiate other loaders 2019-11-15 14:53:43 +01:00
Jan
cd93106c19 ZoneCodeGenerator: Fix fastfile offsets being wrong by 1 due to not respecting that all offsets are moved by 1 2019-11-15 14:52:53 +01:00
Jan
51862d8596 ZoneCodeGenerator: Fix throwing overflow exceptions too early due to wrong limit testing 2019-11-15 14:52:10 +01:00
Jan
ec9be6e1fd ZoneCodeGenerator: Fix XStringArrays being loaded twice 2019-11-15 14:51:17 +01:00
Jan
765b0d9e32 ZoneCodeGenerator: Fix XAssetList of T6 being loaded into block memory and therefore causing overflows 2019-11-15 14:50:23 +01:00
Jan
b15ce90fbb ZoneCodeGenerator: Add reusable statement for commands to be able to tell the generator that a member can be a fastfile offset and not nessecarly a following pointer 2019-11-15 14:47:45 +01:00
Jan
271c819e97 ZoneLoading: Enable further easy assets like qdb, slug, localize, scriptparsetree 2019-11-14 15:35:19 +01:00
Jan
dda9cc0700 ZoneCodeGenerator: Change code templates to support loading of simple assets like rawfile 2019-11-14 14:59:48 +01:00
Jan
f80d661c1b ZoneCodeGenerator: Add helper methods to Operation for the template engine to know whether parenthesis are required or not 2019-11-14 14:59:21 +01:00
Jan
8c303d394d ZoneCodeGenerator: Add all used membertypes to a list in context 2019-11-14 14:58:50 +01:00
Jan
d7f05b97c9 ZoneCodeGenerator: Add skeleton for all commands for all assets and add commands for rawfile based structs and material/materialtechniqueset 2019-11-14 14:58:18 +01:00
Jan
63722e220d ZoneCodeGenerator: Move computed conditions to sub class for MemberInformation since the template engine does not support computations and there will be a decent amount probably. So they are now moved to a different class to not cludder the main class too much 2019-11-14 14:57:21 +01:00
Jan
60565da607 ZoneCommon: Minor fixes to T6 structures 2019-11-14 14:55:18 +01:00
Jan
b59ca3b261 ZoneCodeGenerator: Save whether a structure is anonymous and therefore a name has been generated or not. 2019-11-14 14:54:36 +01:00
Jan
f777c049c6 ZoneCodeGenerator: Add postprocessor to inspect whether a structure is a leaf (No complex tasks for loading/writing required, like pointers, strings, scriptstrings) 2019-11-14 14:53:12 +01:00
Jan
ef8a040db4 ZoneCodeGenerator: Add toString methods for Domain objects for better readability when debugging 2019-11-14 14:50:53 +01:00
Jan
b7ab2a1aa6 ZoneCodeGenerator: Change ContentLoader to use vars for fastfile pointer transfer and change ZoneInputStream API to be able to specify load location to better reflect the way the games do it. 2019-11-14 14:48:40 +01:00
Jan
3839b22f71 ZoneCodeGenerator: Fix invalid string commands for PhysConstraints and DestructibleDef 2019-11-10 22:14:36 +01:00
Jan
73424c9bc1 ZoneCodeGenerator: Add tests for reordering, scriptstring, string 2019-11-10 22:14:01 +01:00
Jan
6ca7f18f9f ZoneCodeGenerator: Add arraysize test to explicitly override the size of an array with a dynamic one 2019-11-10 18:07:28 +01:00
Jan
76cae3a948 ZoneCodeGenerator: Fix LoadArray template to reference array elements correctly 2019-11-10 18:06:08 +01:00
Jan
746dd825bf ZoneCodeGenerator: Add tests for TestCount 2019-11-10 18:04:23 +01:00
Jan
f2cc95ee32 ZoneCodeGenerator: Make use of the parsed tokens in TestCount and TestCondition 2019-11-10 18:04:00 +01:00
Jan
2bcb776bbf ZoneCodeGenerator: Add toString methods for operands and operations for debugging purposes 2019-11-08 03:00:43 +01:00
Jan
6c1404116c ZoneCodeGenerator: When parsing Evaluation nest operations so the operator precendence is evaluated as specified 2019-11-08 03:00:20 +01:00
Jan
0a8d5246b2 ZoneCodeGenerator: Add unit tests for Structs, Unions and variables 2019-11-06 18:46:16 +01:00
Jan
82604038c7 ZoneCodeGenerator: Fix recognizing but not doing anything with const tokens in variables 2019-11-06 18:41:21 +01:00
Jan
70a5763d4f ZoneCodeGenerator: Add unit tests for typedef test 2019-11-01 15:14:29 +01:00
Jan
f71ae1bcf5 ZoneCodeGenerator: Remove the const keyword from typename but instead save whether a reference is cosnt in the typedeclaration 2019-11-01 01:46:40 +01:00
Jan
3d30915308 ZoneCodeGenerator: Remove align statement. Alignments will be defined via types created by a typedef that have a __declspec(align(X)) part 2019-10-31 15:41:35 +01:00
Jan
d1e097bbdf ZoneCodeGenerator: Add tests for CommandFile statements that are getting interpreted 2019-10-30 20:29:16 +01:00
Jan
9b12bd7e41 ZoneCodeGenerator: Fix wrong exception being thrown in tests: Use TestFailedException instead of LoadingException 2019-10-30 15:23:31 +01:00
Jan
825b14bfd4 ZoneCodeGenerator: Fix TestAsset not throwing an exception when info is missing due to wrong if condition 2019-10-30 15:02:25 +01:00
Jan
799d3cbce7 ZoneCodeGenerator: Change block Statement to get the number of fastfileblock from the enum entry instead of manually specifying it 2019-10-30 15:01:45 +01:00
Jan
7ab7447827 ZoneCodeGenerator: Move Test tests to correct folder and namespace corresponding to ZoneCodeGenerator 2019-10-29 12:53:37 +01:00
Jan
7117eb4506 ZoneCodeGenerator: Add test case for MatcherArray with an invalid enum value name 2019-10-29 12:32:15 +01:00
Jan
117ba118af ZoneCodeGenerator: Add tests for Matchers to test TokenOffset and Tag behaviour 2019-10-29 12:21:07 +01:00
Jan
d5ecaa186d ZoneCodeGenerator: Fix GroupLoop adding Tags to result even when not successful 2019-10-29 12:20:41 +01:00
Jan
23f82894b7 ZoneCodeGenerator: Make GroupOptional always add Tag due to consistency (Tags get added when matches succeeds) 2019-10-29 12:20:08 +01:00
Jan
7a6df40be5 ZoneCodeGenerator: Fix basematcher adding tag to result even when not matched successfully 2019-10-27 15:38:27 +01:00
Jan
090efd98f0 ZoneCodeGenerator: Add tests for CommandFilePreprocessor 2019-10-27 15:05:17 +01:00
Jan
d4da8645b1 Seperate unit tests for commentprocessor and c_header preprocessor 2019-10-27 14:12:05 +01:00
Jan
146c992dd5 Change c# projects to dotnet framework version 4.5 due to dependencies not being available for newer versions 2019-10-27 13:31:50 +01:00
Jan
5245f40307 ZoneCodeGenerator: Create parent class for all tests that use Evaluations 2019-10-27 01:46:43 +02:00