Skip to content

Commit

Permalink
v0.19.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejduda committed Jun 7, 2024
1 parent 665e4e8 commit abb3bc1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ More info about EA Image file format can be found on [Xentax Wiki](https://web.a
| <center>13 / 0x0D</center> | <center>✔️</center> | <center>❌</center> | Cricket 2005 (PS2) <br> Cricket 2007 (PS2) |
| <center>14 / 0x0E</center> | <center>✔️</center> | <center>❌</center> | Cricket 2005 (PS2) <br>Cricket 2007 (PS2) <br>FIFA Street (PS2) <br>Fight Night Round 3 (PS2) <br>MVP 07 NCAA Baseball (PS2) <br>MVP Baseball 2005 (PS2) |
| <center>15 / 0x0F</center> | <center>✔️</center> | <center>❌</center> | ----- |
| <center>20 / 0x14</center> | <center>✔️</center> | <center>❌</center> | ----- |
| <center>22 / 0x16</center> | <center>✔️</center> | <center>❌</center> | FIFA 09 (WII) |
| <center>24 / 0x18</center> | <center>✔️</center> | <center>❌</center> | ----- |
| <center>25 / 0x19</center> | <center>✔️</center> | <center>❌</center> | FIFA 09 (WII) |
Expand Down
5 changes: 3 additions & 2 deletions src/EA_Image/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# fmt: off
PALETTE_TYPES = (33, 34, 35, 36, 41, 42, 45, 50, 58, 59)
CONVERT_IMAGES_SUPPORTED_TYPES = [1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 22, 24, 25, 33, 34, 35, 59, 64, 65, 66, 67, 88, 89, 90, 91, 92, 93, 96, 97, 98,
104, 109, 115, 119, 120, 121, 123, 125, 126, 127, 130, 131, 192, 193, 194, 237, 248, 251]
CONVERT_IMAGES_SUPPORTED_TYPES = [1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 20, 22, 24, 25, 33, 34, 35, 59, 64,
65, 66, 67, 88, 89, 90, 91, 92, 93, 96, 97, 98, 104, 109, 115, 119, 120, 121, 123,
125, 126, 127, 130, 131, 192, 193, 194, 237, 248, 251]
# fmt: on
1 change: 1 addition & 0 deletions src/EA_Image/dir_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class DirEntry:
13: "13 | 0x0D | GST 222",
14: "14 | 0x0E | GST 422",
15: "15 | 0x0F | GST 822",
20: "20 | 0x14 | RGB565",
22: "22 | 0x16 | ABGR8888",
24: "24 | 0x18 | PAL4_RGB565",
25: "25 | 0x19 | PAL8_RGB565",
Expand Down
4 changes: 4 additions & 0 deletions src/EA_Image/ea_image_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ def _get_image_format_by_palette_size(palette_size: int) -> ImageFormats:
_get_image_format_by_palette_size(len(palette_data)),
is_swizzled=convert_int_to_bool(ea_dir_entry.h_flag2_swizzled),
)
elif entry_type == 20:
ea_dir_entry.img_convert_data = ea_image_decoder.decode_image(
image_data, ea_dir_entry.h_width, ea_dir_entry.h_height, ImageFormats.RGB565, image_endianess="big"
)
elif entry_type == 22:
ea_dir_entry.img_convert_data = ea_image_decoder.decode_image(
image_data, ea_dir_entry.h_width, ea_dir_entry.h_height, ImageFormats.ABGR8888
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from src.GUI.GUI_main import EAManGui

VERSION_NUM = "v0.19.7"
VERSION_NUM = "v0.19.8"

logger = get_logger("main")

Expand Down

0 comments on commit abb3bc1

Please sign in to comment.