Validate pfx/dosdevices symlink after copy - #252
Conversation
518329a to
285c2b2
Compare
|
Heyo @shymega Just had chance to go over this, couple notes: Spotted that #251 was closed w/o merging but this PR mentions needing it merged first, so just need to sort below
Smaller things:
|
|
@stackrot I think it'd be easier for me to see which parts you mean if you use the Code Review feature GitHub offers. We can then converse on threads on the Git hunks you select in the diff, and that'll work much better :-) |
b1b4296 to
4b2ba2b
Compare
4b2ba2b to
65f0d31
Compare
Yeah, I did have a project I was working on to convert GitHub's UI to a NNTP based interface, so you could comment on PRs with email. Never got very farwith it. I've fixed your review. As for your other comments:
Yeah, we don't use that option, but yes, fair enough. The assert is more of a final check.
We could make it remove the file and replace it with a symlink, but I felt that was too destructive. |
|
@shymega did you test this then, if so then seems fine to merge.
|
The comment is to provide attribution to the snippet of Python I copied from a developer's site. I think we should keep it, but I can change the 'Yeeted from' to 'Taken from' |
We can easly come up with a version like this, whiout knowing the code infact let me do it right now, There we go independent and in dosn't even replace correct links. |
|
I suppose we could use that. Seems a bit overly complex for our needs, but I'll integrate it when I get a moment. |
|
We should probably not use an assert if we wanna ship a binary then this check should not be skipped. Also the z drive is not a necessity, i don't think we need to check that one. Also for the create_symlink changes a made a merge request (#257). |
|
On 30.04.2026 05:03, Marvin1099 wrote:
marvin1099 left a comment (DeckCheatz/wemod-launcher#252)
> [wemod.py:578-579](https://github.com/DeckCheatz/wemod-launcher/blob/285c2b28505055a8719ec9b7920e5beacbec3a73/src/wemod.py#L578-L579)
We should probably not use an assert if we wanna ship a binary then this check should not be skipped.
But we don't ship a binary, so I see no harm in keeping an assert. I
think having an assert reassures from a logic standpoint.
We can just test and exit with error / log as usual.
Yes, we're doing that already currently, not sure if needs anymore work.
Also the z drive is not a necessity, i don't think we need to check that one.
The z drive is mapped to "linux /" on some wine setups, but not all have and it works without it, so i don't think is needed, am I wrong?
Hm... we don't want unexpected behaviour, but equally I know of no
Proton implementation that /doesn't/ map Z: to "/". Do you have
examples?
Also for the create_symlink changes a made a merge request (#257).
Thanks, I'll review this weekend.
…But feel free to manually add it it you don't wanna marge like that.
--
Reply to this email directly or view it on GitHub:
#252 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Just wanted to future proof.
Just regular wine. |
65f0d31 to
67b691c
Compare
|
On 01.05.2026 00:27, Marvin1099 wrote:
marvin1099 left a comment (DeckCheatz/wemod-launcher#252)
> But we don't ship a binary, so I see no harm in keeping an assert.
Just wanted to future proof.
Asserts are meant for checks that dont need to be checked after compile is used.
So since this is a always needs completion check the assert is offplace.
Thats what o think anyway.
Ah, fair.
> Hm... we don't want unexpected behaviour, but equally I know of no
>Proton implementation that /doesn't/ map Z: to "/". Do you have
>examples?
Just regular wine.
I actually prefer using wemod without proton.
With lutris, wine is way faster then proton.
In steam you can't use wine but as soon as you go outside of steam using wine directly works well.
I'm surprised at this. I've never seen Wine not map Z: to the host's
root filesystem. Can you provide a screenshot of `DIR Z:` from a Wine
shell?
…--
Reply to this email directly or view it on GitHub:
#252 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Must be in older wine versions. |
I'm almost certain Wine has always mapped Are you thinking of the I think we need the |
True, completly missed that one |
a0b5690 to
65f0d31
Compare
Inspired by #251, and derives some code from that, therefore: Co-authored-by: Connor Field <connor@connorfield.com>
65f0d31 to
6c9d41d
Compare
This PR adds validation for the special
dosdevicesfolder on the Proton prefix.