109 Commits

Author SHA1 Message Date
Jan
d3d7f1b6e5
fix: not properly handling array of indirect asset ref pointers 2024-02-07 01:27:54 +01:00
Jan
fef815e708
feat: recognize indirect asset refs when marking assets 2024-02-07 00:53:52 +01:00
Jan
87917caabc
Merge pull request #97 from Laupetin/feature/version-cmd-arg
feat: add version command line arg
2024-01-24 00:45:55 +01:00
Jan
3fd17fc6d3
fix: calculate requiring marking for structs even when called recursively 2024-01-24 00:16:09 +01:00
Jan
0b0b888b0d
chore: make help command return exit code 0 2024-01-23 23:14:52 +01:00
Jan
05437cfd7d
feat: add version command line arg to all executables 2024-01-23 23:14:52 +01:00
Jan
df2a5294e8
fix: consider structures that are assets requiring marking 2024-01-23 19:29:43 +01:00
Jan
70dba19484
fix: do not consider a structure require marking when it contains a string member 2024-01-23 19:29:09 +01:00
Jan
91cbfa2bbb
chore: use marker template in loader for scriptstrings and dependencies 2024-01-22 22:40:03 +01:00
Jan
685a99577b
chore: remove scriptstring and dependency registration from ZoneLoad template 2024-01-22 22:39:18 +01:00
Jan
9d7c0d3452
feat: add asset marking 2024-01-22 21:47:46 +01:00
Clang Format
c858695f0c
Adjust further code formatting 2023-11-19 21:07:28 +00:00
Clang Format
6b4f5d94a8
Reformat code with clang format 2023-11-19 21:07:21 +00:00
Jan
6c164eee61 Update catch2 version 2023-06-18 13:40:30 +02:00
Jan
61a42afe28 Mark scriptstrings as used even when referencing them via zone pointer 2022-12-03 12:44:33 +01:00
Jan
e7eb43a955 Correctly parse binary operations that can be interpreted as sign prefixes for numbers 2021-11-28 15:16:43 +01:00
Jan
69c08def7f Add expression parsing for menu parser 2021-11-03 23:46:18 +01:00
Jan
4d674fac83 Fix zonewriting not applying updated values for embedded scriptstrings 2021-08-26 21:01:12 +02:00
Jan
ae9633b696 Change ZoneCode zone writing template so it marks elements as following before writing them to ensure being able to write recursive structs 2021-06-24 16:59:43 +02:00
Jan
a8c62de081 Add written variable for zone writing code to be able to differ between written data and original data 2021-05-08 16:41:42 +02:00
Jan
156d7aa5cd Make zone write add insert pointer even if reusable member does not have struct type 2021-04-28 15:31:12 +02:00
Jan
dbcbb4a4b3 Make sure assets need to be declared as temp block to be located in temp block to handle special case of iw3 stringtable not being in temp block 2021-04-15 13:42:03 +02:00
Jan
4e05bc6b44 Fix errors in iw3 commands and structs 2021-04-15 10:37:39 +02:00
Jan
6b72ac080f Finish iw3 zone code generation 2021-04-14 18:39:54 +02:00
Jan
d99eb0ab24 Use asset identified by name and type when writing asset dependency to make sure that the pointer always matches one that would have been written to the zone already even when using an asset from another loaded zone 2021-03-21 21:29:02 +01:00
Jan
a2ef445455 Fix adding offsets on strings and assets 2021-03-21 10:19:51 +01:00
Jan
1d33cf2adf Save offset for reusing for any type that has a reusable reference 2021-03-20 16:04:17 +01:00
Jan
2f700a48a9 Make sure fastfile offset is taken after alignment, marking following is done on the originally written data and writing partially uses the original data when writing dynamic sized data
too lazy to split into single commits
2021-03-19 15:09:44 +01:00
Jan
5443ed4261 Add scriptstrings from loaded zones to newly linked zone 2021-03-18 20:03:00 +01:00
Jan
8736280ea8 Fix zone writing code not setting ptr following 2021-03-18 13:02:31 +01:00
Jan
7c0504603e Basic write template based on load template 2021-03-18 10:58:07 +01:00
Jan
4feea62280 ZoneWriting stuff 2021-03-16 12:37:15 +01:00
Jan
8d9080066f Extract commonly used Parser code to new Parser component 2021-03-08 20:06:34 +01:00
Jan
88c48e8107 Add dynamic allocation alignment to be able to load T6 MemoryBlock asset which isnt used at all so why am i doing this again 2021-03-05 09:23:37 +01:00
Jan
5f3aa2a460 Implement defines with parameters to ZoneCodeGenerator 2021-03-04 11:37:06 +01:00
Jan
29b962e949 Add offset of members to assetstructtests 2021-03-04 09:04:25 +01:00
Jan
a10b3b7d3c Change ZoneLoad alloc method getting alignment via alignof to alignment value being specified directly via number 2021-03-04 08:44:23 +01:00
Jan
a15fd17dfe Change alignment specifier to __attribute__((align(x)) for non VC++ 2021-03-03 15:58:55 +01:00
Jan
b4d8e9c17b Make compilation process compatible to linux on gcc 2021-03-03 06:21:25 -08:00
Jan
5290d3a768 Update ZCG new console output 2021-03-01 14:12:36 +01:00
Jan
e33250a2de Remove unused and comment parts of the zoneload zcg new template 2021-03-01 13:55:58 +01:00
Jan
1ce87f3ca3 fix some stuff for zoneload zcg new template 2021-03-01 13:15:12 +01:00
Jan
e7c37574e7 Add dynamic array to zoneload zcg new 2021-03-01 12:54:41 +01:00
Jan
602d263472 fix a few snippet conditions for zoneloading in zcg new 2021-03-01 12:10:57 +01:00
Jan
11eb9ae4ce implement pointerarray 2021-02-28 23:37:14 +01:00
Jan
226c589bb8 make sure to calculate alignment of following modifiers properly 2021-02-28 23:17:39 +01:00
Jan
48d672edbe fix pointer array strings 2021-02-28 22:58:15 +01:00
Jan
25dbe10ba2 fix template error for singlepointer 2021-02-28 22:42:53 +01:00
Jan
7b29d61bb5 Fix types referenced via typedef not being accounted for when building rendering context 2021-02-28 22:42:44 +01:00
Jan
1164ec1777 Add embedded array to zcg template 2021-02-28 17:22:32 +01:00