2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 00:19:35 +00:00
Commit Graph

45 Commits

Author SHA1 Message Date
Michael Oliver 97591f59f4 refactor(zcg): use wordsize instead of architecture 2026-04-30 13:50:11 +01:00
Jan Laupetin 14b143466d fix: not adding offset of reusable type when type is not structure 2026-03-14 15:56:08 +01:00
Jan Laupetin aa47ffa629 refactor: introduce subasset loading 2026-02-05 18:17:15 +01:00
Jan Laupetin 5b6b82424b fix: marking invalid offset as written in WritePtrArray methods 2026-01-18 17:12:13 +01:00
Jan Laupetin f95745fb87 fix: not writing to script string var for embedded script string arrays 2026-01-17 00:45:22 +00:00
Jan Laupetin 00546740e4 fix: filling union members that are not supposed to be written
* This causes some pointers to be partially overwritten when filling in the wrong order as well
2026-01-17 00:45:21 +00:00
Jan Laupetin 9f559fdcd0 fix: ReusableAddOffset not respecting differing block and memory sizes 2026-01-17 00:45:21 +00:00
Jan Laupetin 0be778cf5c fix: do not fill in runtime block members 2026-01-17 00:45:20 +00:00
Jan Laupetin 1dc25ee20a fix: use correct written variable for WriteArray zone code methods 2026-01-17 00:45:20 +00:00
Jan Laupetin 7dffc77ed7 refactor: fill structs in templates when writing on x64 hosts 2026-01-17 00:45:19 +00:00
Jan Laupetin 257ef39b20 feat: add fill in ContentWriter classes for writing with x64 hosts 2026-01-17 00:45:19 +00:00
Jan Laupetin 6ea2e7faad refactor: use ZoneOutputOffset for written variables 2026-01-17 00:45:19 +00:00
Jan Laupetin ac24e4f893 refactor: combined ZoneOutputStream interface with impl 2026-01-17 00:45:18 +00:00
Jan Laupetin 86b7e55e5b refactor: add game name to generated load and write files 2026-01-17 00:45:17 +00:00
Jan Laupetin e7f126265d refactor: add AssetMarker headers to zcg marker template 2026-01-05 17:43:56 +00:00
Jan Laupetin 660f34df69 chore: add ability for zcg to generate files once per template 2026-01-05 17:43:56 +00:00
Jan Laupetin ba39e3f4d9 fix: do not override properties of foreign zones 2025-12-25 15:29:32 +01:00
Jan Laupetin 7bf7bf93de chore: adjust asset name method based on asset to not require constructor 2025-12-23 15:40:51 +01:00
Jan e120d01697 fix: dynamic array reallocation for x64 2025-06-19 18:59:21 +01:00
Jan Laupetin 446c38d8ee refactor: reorder members of zcg generated classes 2025-05-02 22:08:06 +01:00
Jan ed029bc24d refactor: adjust template const modifiers 2025-05-02 22:08:06 +01:00
Jan 50612d117e refactor: update zcg generate file headers 2025-04-30 17:01:52 +01:00
Jan 547da3fdf9 refactor: remove GetName method of ZoneWrite zcg template 2025-04-28 12:53:14 +01:00
Jan Laupetin 1fe1b30831 chore: use Asset definition instead of enum entry for zcg 2025-04-28 12:53:02 +01:00
Jan 10cbd47bdc chore: use std::format for zcg templates 2025-04-24 21:37:43 +01:00
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 fc18f81302 fix: consider asset references when looking for assets of zone 2024-03-30 17:44:55 +01:00
Clang Format 6b4f5d94a8 Reformat code with clang format 2023-11-19 21:07:21 +00: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 a2029da1d5 Implement asset struct tests rendering 2021-02-20 03:14:00 +01:00
Jan d4a98b7c52 add basis for code rendering 2021-02-20 02:33:40 +01:00