Skip to content
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

Issue with leading slashes #5

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

Conversation

Jaguar83
Copy link

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.

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
Copy link

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
Copy link

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

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.

3 participants