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

Cannot load levels if System32 is not the first entry in Path #4

Open
Radfordhound opened this issue Dec 24, 2015 · 5 comments
Open

Comments

@Radfordhound
Copy link

Radfordhound commented Dec 24, 2015

Title basically says it all. If the path to the standard Windows system32 folder is not the first entry in the system Path environment variable, this happens when trying to load stages (video is of Glvl 5.7 but this happens with Glvl 9.0 as well).

@Radfordhound
Copy link
Author

(Credit to @thesupersonic16 for discovering this today)

Turns out the problem lies from us having DevkitPro installed, which adds itself as an entry to the Path environment variable above system32 and includes, guess what, an executable called "expand.exe" - the same name as the executable Glvl is attempting to run from the system32 directory for expanding MCSF-compressed archives.

@thesupersonic16
Copy link
Contributor

thesupersonic16 commented Jul 7, 2017

I think you only need to change the definition of SONICGLVL_LEVEL_CAB_PACKED_COMMAND to "C:\Windows\System32\expand". Can't tell because I can't seem to compile this project.

EDIT: Or even "%WINDIR%\System32\expand"

@thesupersonic16
Copy link
Contributor

#10

@thesupersonic16
Copy link
Contributor

Been over a month and still no response.

@DarioSamo
Copy link
Owner

DarioSamo commented Aug 10, 2017

Sorry, I just forgot about it.

I think the better fix on the long run would be to get our own CAB implementation working tho. This is something I got fairly advanced in but I was just missing the decompression part.

I could probably commit whatever code I wrote for that if anyone's interested.

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

No branches or pull requests

3 participants