8000 Fixed the problem of illegal path when decompressing *.BNK files of HOTD4 (PS3 Japan), Rambo (Arcade), SEGA GoldGun (Arcade) by 2601677867 · Pull Request #8 · Argx2121/Sega_NN_tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed the problem of illegal path when decompressing *.BNK files of HOTD4 (PS3 Japan), Rambo (Arcade), SEGA GoldGun (Arcade) #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2601677867
Copy link

Illegal path

In the Japanese PS3 version of House of the dead 4(DISC ID:NPJB00198), SEGA used the path of the DDS texture file as the file name, which caused the bnk extract tool to have an illegal path when pathlib.mkdir

image

This situation also occurs in the arcade games Rambo and SEGA GoldGun, which are also developed using the SEGA NN engine.

Solution

I added some checking code before the mkdir so that if an illegal file name is detected, the script will treat the drive letter as a folder instead of omitting it, which may help others writing recompression scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0