1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-05-05 10:17:45 +00:00
Commit graph

346 commits

Author SHA1 Message Date
c41c160338 Fix oversight with u32 offsets used in index files API
This breaks on Dawntrail's gigantic files, but this also breaks API...
2024-06-28 05:53:42 -04:00
2bcbc27e53 Revert "Explicitly link to unshield library for now"
This reverts commit b7e5f914d5.
2024-06-27 20:34:46 -04:00
e507c247a1 Fix patching for Dawntrail
It was overflowing some u32, which are now u64 to prevent this from
happening.
2024-06-27 20:29:48 -04:00
b7e5f914d5 Explicitly link to unshield library for now
I don't think this is the right solution, but I need to unbreak some
builds now.
2024-06-27 16:51:03 -04:00
39d7a5b703 Prevent overflow when loading high resolution textures in certain code paths
With the release of Dawntrail, these are now being hit - for example loading the
expansion logo in Astra. These are now converted to usize everywhere so it
prevents this from happening.
2024-06-26 23:45:50 -04:00
c1dd406be4 Oops, these paths are not supposed to be absolute 2024-05-26 07:56:20 -04:00
0c105ab089 Fix my stupid programming, we need to use into_iter() 2024-05-26 07:49:55 -04:00
3d8ea7c858 Check if the user and game directories are valid 2024-05-26 07:48:41 -04:00
b87f54f924 Add functions to find existing game/user directories on disk
Not tested yet but this is something we have needed for a while
2024-05-26 07:29:40 -04:00
91560de96b Fix shape values not reading correctly 2024-05-25 23:26:11 -04:00
fdf07fd255 Add find_offset function
Currently working around the lack of a good extract() API
2024-05-25 10:47:48 -04:00
0fbb604c73 Derive Clone, Copy for ShaderStage 2024-05-18 11:53:13 -04:00
d700f81af9 Expose ShaderStage enum 2024-05-18 11:49:50 -04:00
e5caab2e64 Run rustfmt and fix more Clippy warnings 2024-05-18 09:42:07 -04:00
306a507969 Fix tests compilation 2024-05-04 14:24:37 -04:00
a1a50de62e Support chunked dat/index files
Needed for grabbing later expansion content that's split between chunks.
2024-05-04 14:20:45 -04:00
8ecbd74283 Better expose the color table rows for materials 2024-05-04 14:20:02 -04:00
5625950f2a Expose the color table & color dye table 2024-04-30 19:51:46 -04:00
139afb46fa Add support for reading the color dye table from a material 2024-04-30 19:48:32 -04:00
b595d48963 Add support for reading the color table from a material 2024-04-30 19:43:47 -04:00
c4e9697faa Support 3D textures
We only supported 2D textures, but 3D textures are needed for the tiling
textures.
2024-04-30 18:01:09 -04:00
a51d5b0a54 Expand staining template read support
Nothing is exposed in the API, but I think it's reading properly now.
2024-04-30 18:00:47 -04:00
149e9bb25b Simplify PBD parsing 2024-04-30 16:17:04 -04:00
0b77a3cfb0 Begin implementing reading Avfx files 2024-04-29 23:06:07 -04:00
b74fda45a9 Add STM module 2024-04-29 21:01:10 -04:00
171d516f38 Add AVFX module 2024-04-29 20:59:30 -04:00
172952af9b Add PAP module 2024-04-29 20:57:15 -04:00
4fbd2cb668 Add PHYB module 2024-04-29 20:52:25 -04:00
05ccc566e9 Add SCHD module 2024-04-29 20:49:24 -04:00
e588a9bbc9 Add TMB and SKP modules 2024-04-29 20:26:13 -04:00
8a1430378e Add IWC module 2024-04-29 20:19:04 -04:00
5924da0991 Add HWC module 2024-04-29 20:14:19 -04:00
6dec9ba5a5 Add SCD module 2024-04-29 20:11:32 -04:00
511be2532c Add SGB module 2024-04-29 20:08:14 -04:00
bb2effcd70 Add ULD module 2024-04-29 20:06:34 -04:00
349a194060 Remove possible panic when checking if a file exists
Probably a leftover from me
2024-04-29 19:09:51 -04:00
89d026bf63 Remove usage of crc crate as a main dependency
This was temporarily used for shader key hashing, but now an original
implementation using zlib's crc32 function from crcracker
(https://github.com/NotNite/crcracker/) is used instead. Tests are added
and existing ones are used to ensure it's the same.
2024-04-29 18:57:15 -04:00
6f5831e60d Swap BGRA to RGBA 2024-04-27 21:16:01 -04:00
fdfbfc2c6d Allow for multi-value float material constants 2024-04-27 18:43:49 -04:00
1823b1f084 Fix the shapes crashing on certain models
This is a hack to get things working for now
2024-04-27 18:43:32 -04:00
808b383949 Expose material constant data 2024-04-27 12:58:36 -04:00
f54e128bba Expose the default subview keys 2024-04-27 12:36:31 -04:00
499081beb2 Actually expose those new material parameters 2024-04-27 12:15:54 -04:00
6995392b5b Fix loading shader packages for Dawntrail 2024-04-27 11:55:16 -04:00
545888638e Expose shader keys, constants, samplers and shader values 2024-04-27 11:53:37 -04:00
b4a9c48823 Make ShaderKey Cloneable and Copyable 2024-04-26 22:40:42 -04:00
f2c360f7ea Set repr(C) on ShaderKey 2024-04-26 22:36:40 -04:00
cc729e38d8 Add crc method to SHPK for calculating it's value, add test for selector 2024-04-21 10:04:40 -04:00
58c3e15e2c Remove some more debug messages 2024-04-20 15:12:40 -04:00
d5b3b8a468 Run cargo fmt 2024-04-20 13:18:03 -04:00