Grasscutters / Cultivation

A custom launcher designed to make it as easy as possible to proxy anime game traffic to private servers.
Apache License 2.0
968 stars 160 forks source link

Fix some filesystem related bugs #83

Closed 4Benj closed 1 year ago

4Benj commented 1 year ago

Description:

Okay so apparently people broke my wonderful metadata patcher, that 100% always worked originally, so before I move onto the UA patcher, I want to attempt to fix this.

This PR includes changes to using PathBuf when reading keys, which fixes the OS Error 123 bug, stop popping the directory when we need it when copying files, and game version checking to warn users when they are on an incompatible game version for client patching (below 2.8 or above 3.0).

I've also attempted to fix the metadata patcher itself, but it still needs more work, maybe even porting the whole system over to Rust so we can actually log errors and such.

I have found myself limited of time again with school, so I removed the commit with the metadata patcher changes so the other changes that I've made can be merged in.