54 Commits

Author SHA1 Message Date
Jan
9f8a933277
chore: update ZoneCodeGenerator code style 2025-04-20 09:45:37 +02:00
Jan
cc67f6e730
refactor: use OutputPathFilesystem for writing fastfiles 2025-01-14 22:03:44 +01:00
Jan
ffac925410
fix: reallocate assets before adding to zone pool when loading from
fastfile
2025-01-01 18:14:42 +01:00
Jan
89074c8601
fix: not reallocating IW5 clipMap pInfo from temp block 2024-03-30 20:10:20 +01:00
Jan
fc18f81302
fix: consider asset references when looking for assets of zone 2024-03-30 17:44:55 +01:00
Jan
132cccb971
refactor: use new line character instead of std::endl 2024-03-24 20:24:22 +01:00
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
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
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
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
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
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
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
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
Jan
41faee0979 Restructure template code for arraypointer and singlepointer to better reuse code instead of duplicating it 2021-02-28 17:09:39 +01:00
Jan
5b7f33b63d implement loadzone singlepointer 2021-02-20 16:46:00 +01:00
Jan
04491e21f2 zoneload member skeleton 2021-02-20 15:44:26 +01:00
Jan
5be0b28323 Implement ZoneLoad skeleton 2021-02-20 14:40:14 +01:00
Jan
447e729964 prevent shuffling usedtypes when building rendering context 2021-02-20 12:36:12 +01:00
Jan
fe121853e2 render zoneload header 2021-02-20 12:28:38 +01:00
Jan
44e739ba44 fix rendering context only adding asset types instead of the other way around 2021-02-20 10:45:29 +01:00
Jan
b4f1e09315 Change cpp unit test framework to catch2 for all cpp unit test projects 2021-02-20 10:44:33 +01:00