608 Commits

Author SHA1 Message Date
njohnson
2c18b939e7 Fix: Use XDataStream instead of QDataStream 2025-09-10 21:56:50 -04:00
njohnson
01d2b95417 Add XMA format parsing data fields 2025-09-10 21:56:49 -04:00
njohnson
8cfb82e03d Fix: Use qint32 for mTotalMsec 2025-09-10 21:56:48 -04:00
njohnson
2d8d34bab8 Fix: Add XAsset constructor
This commit adds the `XAsset` constructor to the `XAudioXmaDataInfo` class.
2025-09-10 21:56:48 -04:00
njohnson
6e772cb6b7 Refactor: ParseData to accept XDataStream* 2025-09-10 21:56:47 -04:00
njohnson
32ce8e350f Implement basic XAudioStreamInfo parsing and initialization. 2025-09-10 21:56:46 -04:00
njohnson
73ab1a368a Refactor: Use XDataStream instead of QDataStream 2025-09-10 21:56:45 -04:00
njohnson
d9aa25c4af Fix: Parse audio source format data 2025-09-10 21:56:44 -04:00
njohnson
d18cfb6968 Fix: Rename QDataStream to XDataStream 2025-09-10 21:56:44 -04:00
njohnson
924e448270 Fix: Set name in constructor 2025-09-10 21:56:43 -04:00
njohnson
4dc402fd16 Refactor: Use XDataStream instead of QDataStream 2025-09-10 21:56:42 -04:00
njohnson
8b802028e9 Fix: Parse size and data pointer from stream 2025-09-10 21:56:41 -04:00
njohnson
f6a20c873a Refactor: Use qint32 for preset overridden value 2025-09-10 21:56:41 -04:00
njohnson
4e4422466c Fix: Set name in constructor. 2025-09-10 21:56:40 -04:00
njohnson
3bf032d2e0 Fix: Rename QDataStream to XDataStream in ParseData 2025-09-10 21:56:39 -04:00
njohnson
3d378b28c9 Fix: Improve data parsing
This commit updates the data parsing logic within the XAudioPacketAligned class. Specifically, it uses `ParseInt32` and `ParseInt8` instead of direct data stream reading, improving type safety and ensuring correct data handling during parsing.
2025-09-10 21:56:38 -04:00
njohnson
1f7ca563bf Refactor: Use XDataStream for parsing XAudioXmaFormat 2025-09-10 21:56:37 -04:00
njohnson
f6a0ff580c Implement TODO: ParseData(...) for XAudioFormatInfo 2025-09-10 21:56:36 -04:00
njohnson
b9e858a6d5 Refactor: Use XDataStream instead of QDataStream 2025-09-10 21:56:36 -04:00
njohnson
f88eeec7ee Fix: Parse Data Handling
This commit updates the `ParseData` method to correctly parse input channel, output channel and volume from the `XDataStream`.
2025-09-10 21:56:35 -04:00
njohnson
9c6c55fe75 Refactor: Change QDataStream to XDataStream in ParseData 2025-09-10 21:56:34 -04:00
njohnson
e6f2932ef1 Fix: Parse entry count and entries ptr 2025-09-10 21:56:33 -04:00
njohnson
8c1f9539c7 Refactor: Use XDataStream for parsing 2025-09-10 21:56:32 -04:00
njohnson
21379d133d Fix: Parse data for asset list 2025-09-10 21:56:32 -04:00
njohnson
6e58c8fc2f The change is a minor one: the prompt to Ollama has been modified from "Write a clear, concise Git commit message for changes in file: $FILE." to "Write a SHORT, clear, concise Git commit message for changes in file: $FILE.". This prioritizes shorter messages in the commit messages. 2025-09-10 21:56:31 -04:00
njohnson
10db1eec7d Refactor: Implement default destructor and rename ParseData method
This commit implements the default destructor for `XAssetHeader` and renames the `ParseData` method to `ParseData` to align with the `XDataStream` interface.
2025-09-10 21:56:11 -04:00
njohnson
d267ad19f5 Fix: Parse Raw Asset Type and Asset Pointer
Adds parsing logic for the raw asset type and asset pointer within the `XAssetHeader` class. This enables the retrieval of these values during data stream parsing, facilitating asset identification and management.
2025-09-10 21:56:10 -04:00
njohnson
99d2885f9c Fix: Replace QDataStream with XDataStream
This commit replaces the use of `QDataStream` with `XDataStream` in the `XAsset` class. This aligns the code with the current XAssets framework and promotes consistency.
2025-09-10 21:56:08 -04:00
njohnson
0545bfe642 Fix: Improve Data Parsing and Debug Logging
This commit addresses an issue in the `XAsset` class's data parsing logic, specifically within the `ParsePtr` method. The previous implementation lacked proper parsing of the integer value associated with the asset's pointer. Additionally, the debug logging during data parsing was overly verbose and included unnecessary hexadecimal conversions. The fix ensures correct integer parsing and simplifies the debug logging output for easier debugging.
2025-09-10 21:56:07 -04:00
njohnson
7e408d2c2e Refactor: Default destructor for XAnimPartTransFrames 2025-09-10 21:56:06 -04:00
njohnson
512b9bae61 Fix: Parse data from XDataStream
The `ParseData` function was incorrectly using a `QDataStream` to parse data. It has been updated to correctly use an `XDataStream` for parsing, resolving parsing issues.
2025-09-10 21:56:05 -04:00
njohnson
0f10bf9375 Fix: Default destructor for XAnimPartTransData
The destructor was missing a `= default;` specifier, which is now added to ensure proper object cleanup.
2025-09-10 21:56:04 -04:00
njohnson
63468fa91e Fix: Set name for Animation Part Trans Data
This commit sets the name for the XAnimPartTransData object, ensuring consistent identification within the XAssets framework.
2025-09-10 21:56:03 -04:00
njohnson
d9f6e13bdf Refactor: Default destructor for XAnimPartTrans
This commit introduces a default destructor for the `XAnimPartTrans` class, simplifying the code and ensuring proper resource cleanup.
2025-09-10 21:56:02 -04:00
njohnson
e512636ad6 Fix: Parse data for XAnimPartTrans
This commit fixes the parsing logic for the `XAnimPartTrans` class, ensuring that the size and small trans flags are correctly parsed from the data stream. It uses `ParseUInt32` and `ParseUInt8` for better type handling and includes informative strings for debugging.
2025-09-10 21:56:01 -04:00
njohnson
f2769e689f Fix: Use XDataStream for parsing
This commit updates the parsing mechanism within XAnimParts to utilize `XDataStream` instead of `QDataStream`. This aligns with the codebase's evolving data handling conventions and ensures consistency in data parsing operations.
2025-09-10 21:56:00 -04:00
njohnson
9898a03417 Refactor: Improve data parsing for XAnimParts
This commit refactors the data parsing logic for XAnimParts to improve clarity and maintainability. It replaces the use of raw `*aStream` with `aStream->ParseUIntX()` for all data fields. This approach simplifies the code and enhances readability by explicitly stating the data type being parsed. Furthermore, the message has been updated to reflect the name change of this asset.
2025-09-10 21:55:59 -04:00
njohnson
7174f1fe22 Refactor: Implement default destructor for XAnimNotifyInfo
This commit implements a default destructor for the `XAnimNotifyInfo` class.
2025-09-10 21:55:57 -04:00
njohnson
4480eb83d7 Fix: Handle Animation Notify Info parsing
This commit fixes an issue in the parsing of Animation Notify Info data.
Specifically, the parsing logic for `mName` and `mTime` was incorrect.
The fix adds proper parsing implementation, ensuring that the data is
correctly loaded during deserialization.
2025-09-10 21:55:56 -04:00
njohnson
5ee673175c Refactor: Implement XDataStream for ParseData 2025-09-10 21:55:55 -04:00
njohnson
86885f999c Fix: Parse Animation Indices data correctly
This commit fixes the parsing of `XAnimIndices` data, ensuring that the index is correctly parsed from the data stream, including handling the case where the index pointer is -1.
2025-09-10 21:55:54 -04:00
njohnson
2e4e0a6b99 Refactor: Implement default destructor for XAnimDynamicIndices 2025-09-10 21:55:53 -04:00
njohnson
338b50c694 Fix: Parse Animation Dynamic Indices Index
The animation dynamic indices parsing was incorrectly using the stream's `>>` operator.  The `XDataStream` class provides `ParseUInt8` for proper parsing of unsigned 8-bit integers, ensuring data integrity. This commit updates the parsing logic to use `ParseUInt8` and include a descriptive string for logging.
2025-09-10 21:55:52 -04:00
njohnson
20b57db193 Refactor: Update ParseData signature to XDataStream* 2025-09-10 21:55:51 -04:00
njohnson
7b61cff46d Fix: Parse frames from data stream
The frames were parsed incorrectly from the data stream. This commit fixes the parsing logic to properly read the frame data using `ParseUInt8` and includes a descriptive name for the asset.
2025-09-10 21:55:50 -04:00
njohnson
25728f9486 Fix: Use qint32 for mFramesPtr
The `mFramesPtr` member was previously defined as `quint32`, which is an unsigned 32-bit integer. This could lead to issues when storing negative values, which is possible for frame pointers. Changed the type to `qint32` (signed 32-bit integer) to allow for negative frame pointer values.
2025-09-10 21:55:49 -04:00
njohnson
8e215f13af Fix: Parse Data Stream
This commit fixes the parsing logic for the XAnimDeltaPartQuatDataFrames data stream, ensuring that the frames pointer, frame 0, and frame 1 are correctly parsed from the stream.
2025-09-10 21:55:48 -04:00
njohnson
a71607aae3 Fix: Rename QDataStream to XDataStream in ParseData
This commit replaces `QDataStream` with `XDataStream` in the `ParseData` method of `XAnimDeltaPartQuatData`. This aligns with the project's naming conventions for data streams.
2025-09-10 21:55:47 -04:00
njohnson
2ae9bf95a4 Fix: Add set name to constructor. 2025-09-10 21:55:46 -04:00
njohnson
08cf71cb02 Fix: Rename QDataStream to XDataStream in ParseData
The `ParseData` method was incorrectly using `QDataStream` instead of `XDataStream`. This commit changes the type from `QDataStream` to `XDataStream` to align with the project's data stream implementation.
2025-09-10 21:55:45 -04:00