esperknight / CriPakTools

Tool to list/extract/update contents of CRIWARE's CPK archive format.
194 stars 80 forks source link

Issue with leading slashes #5

Open Jaguar83 opened 7 years ago

Jaguar83 commented 7 years ago

Some cpk files contain entries with a leading slash causing the program to crash. This is because it tries to write to the root of the current drive, which is usually write-protected. The proposed change instead strips the leading slash and extracts it to the current directory.

jameswilddev commented 6 years ago

I just found something similar as well. Some Sonic Forces files contain an empty directory name, which is then turned into "/(file name)", which is then understood by Windows as "C:/(file name)", which, as you say, is write-protected by default on most machines.

Tankerone commented 4 years ago

I can't find anywhere else to ask this, but how do I run it?