Ekey / REE.PAK.Tool

Tools for extract and repack PAK archives from games based on RE ENGINE
132 stars 19 forks source link

*.ttf support #6

Closed matyalatte closed 1 year ago

matyalatte commented 1 year ago

Hi. I noticed RE4 supports *.ttf files. There is no change in the file format of *.oft.1. But some decrypted files have 0x00000100 as magic.

Ekey commented 1 year ago

Hi. I don't have this game to check files, also Capcom blocking their games in my country.

matyalatte commented 1 year ago

I sent a oft file via discord. matyamodding in Modding Haven

Ekey commented 1 year ago

I will check it when I have more free time

Ekey commented 1 year ago

So 0x00000100 is the standard magic of default windows font

Screenshot_1

No Issues here :)

matyalatte commented 1 year ago

Thanks for taking your time. Yeah, oft2ttf will work. But I meant your tool didn't support ttf2oft. I tried to fix it yesterday, and I found adding the following line to Program.cs seemed to fix. case 0x00000100: FontEncrypt.iDoIt(TFontsReader, m_DstFile); break;

Ekey commented 1 year ago

Pushed. Anyway, I'll rewrite code to use the tool with commands like -d, -e, it will be more useful than the current version with auto detecting files.