25 Commits

Author SHA1 Message Date
ds5678
6dce1c375c Abstract File System Access During Export
* Resolves #665
2024-12-05 21:39:52 -08:00
wd357dui
2c2769ed79
fix alignment and missing script types for writing of SerializedFile (#1365)
* fix alignment and missing script types for writing of `SerializedFile`

for the `Write` method of `SerializedFile`:
 - add script types
 - `objectDataPosition` is aligned to 16 bytes
 - each object data is aligned to 8 bytes

Tested by reading and writing back (replacing) a game's `globalgamemanagers.assets` file (the game has unity version `2022.3.6f1`); with those script types and alignments changes the game won't crash on startup anymore

* fix alignment and missing script types for writing of `SerializedFile`
2024-05-24 14:28:28 -07:00
ds5678
c33b69976c Type Tree Deserialization Improvements:
* Proper support for stream alignment
* Use unchecked casts when writing and walking
* Support CopyValues from different SerializableType
* Remove duplicate serializedVersion
* Ensure proper type name is used for array-like fields
* Support creating Unity class release and editor trees from the embedded Tpk
* Support Unity 3 named vector nodes
* Resolves #1328
2024-05-07 20:00:49 -07:00
Jeremy Pritts
86923fa05c NuGet bump
* Support newer Unity versions
* Resolve issues with breaking AssetRipper.Primitives changes
2023-12-23 02:23:42 -05:00
Jeremy Pritts
3fd7bbc599 Update CommonString 2023-12-09 18:02:08 -05:00
Jeremy Pritts
c7961747a6 [skip ci] documentation in AssetRipper.IO.Files 2023-09-19 00:38:08 -04:00
Jeremy Pritts
15f53a27ec SerializedFile write support 2023-09-02 02:01:10 -04:00
Jeremy Pritts
546bd80a72 SerializedFileMetadata can be as small as 13 bytes 2023-09-02 01:58:02 -04:00
Jeremy Pritts
234785f0fb SerializedType write support 2023-09-02 01:57:07 -04:00
Jeremy Pritts
ffcf69d60d Convert ObjectInfo to a struct 2023-09-02 01:56:10 -04:00
Jeremy Pritts
6ddb8cc2dd Starting code for writing SerializedFiles 2023-08-30 23:52:31 -04:00
Jeremy Pritts
896131f828 SerializedFile.Generation 2023-08-30 23:14:26 -04:00
Jeremy Pritts
ea2b6d10cb Don't store header and metadata in SerializedFile 2023-08-30 23:11:19 -04:00
Jeremy Pritts
e84b296d6f Make SerializedFile.Metadata private 2023-08-30 22:55:24 -04:00
Jeremy Pritts
c9cb59e26a Remove FileAnalyzer 2023-08-30 22:42:10 -04:00
Jeremy Pritts
5a053ce85d Remove unused methods in SerializedFile 2023-08-30 22:37:11 -04:00
Jeremy Pritts
9c0983715b Clean up SerializedFileHeader.IsSerializedFileHeader 2023-08-30 22:34:58 -04:00
Jeremy Pritts
b167f9d8a5 Update source gen dll 2023-07-12 16:36:40 -04:00
Jeremy Pritts
e00e1bd752 Breaking Changes:
* Move UnityGUID
* Delete Utf8StringBase
2023-06-11 17:02:02 -04:00
Jeremy Pritts
4a74c87e1d Explicit Usings 2023-04-23 12:23:59 -04:00
Jeremy Pritts
13e92b9421 Read MonoBehaviour Structures just in time
* Cleaner code for asset reading
* Files can be loaded in any order now
* Resolves a major bug where structures weren't getting read
2023-04-06 00:38:57 -04:00
Jeremy Pritts
1f6c9de5e9 Delete GameBundleExtensions 2023-03-24 03:51:19 -04:00
Jeremy Pritts
d700215e95 Improved immutability
* Use static abstract in IEndianReadable
* Make UnityGUID readonly
* Fix AssetRipper.IO.Files.SourceGenerator
2023-03-20 03:15:22 -04:00
Jeremy Pritts
1f58990edb Check for underflow and overflow 2023-01-22 20:32:16 -05:00
Jeremy Pritts
6e45e71f3c Move projects into a subfolder 2023-01-14 11:31:39 -05:00