uuksu / RPGMakerDecrypter

Tool for extracting RPG Maker XP, VX and VX Ace encrypted archives.
MIT License
197 stars 42 forks source link

Fix directory creation on Unix #3

Closed tyrone-sudeium closed 1 year ago

tyrone-sudeium commented 1 year ago

Great job porting to dotnet 6 and adding a Linux version! This tiny PR just fixes a bug on Linux where due to the fact that RGSSAD hardcodes the path delimiter to \ and because dotnet on Unix-like hardcodes the path delimiter to /, it wasn't treating the paths from archivedFile.Name as paths, thus creating files like this:

image

... instead of directories. This PR fixes that by checking for what the path delimiter is and then simply replacing the archive's filenames with that.

uuksu commented 1 year ago

Hey! This is a great improvement, it didn't even cross my mind that this is going to be problem.

I'll merge this straight away. Thank you for you contribution!