

15·
28 days agoProton / wine is modern day magic
Most Windows only steam games work out of the box (you do have to enable it in the right click menu > Compatibility options, per game)
Games that use Anti-cheat aren’t likely to work (it depends on the Anti-cheat used and how it’s configured)
ProtonDB is a good resource for checking if/which games work, or fixes and workarounds
You can use proton or wine on non steam games, but that requires additional setup that I’m not familiar with
To explain
There are 2
Error
struct / enum declarations, probably in separate filesTo the
?
, they are different types and cannot be converted from one to the other (because they are two disparate structs that happen to have the same name, but can have different bodies)To fix this
You can either use
.some_func_result().map_err(|err| /* conversion here/*)?;
+Or you can
impl From<Error1> for Error2
And you should also name it
ThingError
, so you can visually differentiate the two+ There are like 10 different mapping functions, depending on if you’re using an option or a result
I never remember which one specifically i need, (
unwrap_or
,map_or
,map_or_else
,ok
,ok_or
)I usually just hunt through the auto complete list until i find the function signature that gives me what i need