Skip to content

Commit

Permalink
Update readme with latest TFBMTool-alt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brliron committed Sep 5, 2024
1 parent 4aabd7e commit f62d2a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TFBMTool-alt/TFBMTool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int wmain(int ac, wchar_t **av)
wprintf(L"Usage: %S (/x|/p) in.[bmp|png] [palette.bmp]\n"
"palette.bmp is used if (and only if) the input file is a 8-bit file with a palette.\n"
"For /x, palette.bmp is required for 8-bit files, and is used as the palette for the input file.\n"
"For /p, palette.bmp is optional, and if specified, will contain the file's palette.\n"
"For /p, palette.bmp is optional, and if specified, will contain the file's palette\n"
"in the TFPA format.", av[0]);
return 0;
}
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ This one always overwrites the TFBM file in place, because I've never seen anyon
Usage (extraction): `./TFBMTool-alt /x tfbm_file.[bmp|png] [palette_XXX.bmp]`
The palette is optional (and not used) for 24-bpp and 32-bpp TFBM files. It is mandatory for 8-bpp TFBM files, and the extracted file will be a 8-bpp PNG file with a palette.

Usage (repacking): `./TFBMTool-alt /p tfbm_file.[bmp|png]`
Usage (repacking): `./TFBMTool-alt /p tfbm_file.[bmp|png] [palette_XXX.bmp]`
The palette is not used for 24-bpp and 32-bpp PNG files. For 8-bpp PNG files, it is optional, and if specified, the PNG file's palette is dumped into it.

### extractBM-alt
A C rewrite of Riatre's extractBM using TFBMTool-alt. It searches for every png and bmp files in the current directory and its subdirectories (recursively), and calls TFBMTool-alt on them.
Expand Down

0 comments on commit f62d2a0

Please sign in to comment.