2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-04-28 06:29:37 +00:00
Commit Graph

94 Commits

Author SHA1 Message Date
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
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 9578a24c49 Fix ZCG new operation 2 needs parenthesis if precendence is equal 2021-02-28 17:04: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 df549b811d fix custom bit size not being applied to variables 2021-02-20 10:46:04 +01:00
Jan 989bc9fc30 Fix enum parent type not being set 2021-02-20 10:45:44 +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
Jan 7ff87c2b73 fix setting custom align 2021-02-20 03:40:35 +01:00
Jan ed47d514e1 do not make dummy output for zoneload template 2021-02-20 03:30:23 +01:00
Jan 60a689f58c forward declare every struct and union to be able to self-reference 2021-02-20 03:30:00 +01:00
Jan a2029da1d5 Implement asset struct tests rendering 2021-02-20 03:14:00 +01:00