Psyhackological@lemmy.mlOPtoLinux Gaming@lemmy.ml•What are your games to get into the season for its vibe?
0·
18 days agoNever heard of the Crosscode.
I tried Disco Elysium for 3h and then stopped playing. But this game seems unique.
Nice!
Never heard of the Crosscode.
I tried Disco Elysium for 3h and then stopped playing. But this game seems unique.
Nice!
Really? It seemed stressful from the gameplays.
Wth is that, that is the most anti-idiomatic code I have ever seen
https://github.com/rustdesk/rustdesk/blob/master/src%2Fplatform%2Flinux.rs#L176
pub fn get_cursor() -> ResultType<Option<u64>> {
let mut res = None;
DISPLAY.with(|conn| {
if let Ok(d) = conn.try_borrow_mut() {
if !d.is_null() {
unsafe {
let img = XFixesGetCursorImage(*d);
if !img.is_null() {
res = Some((*img).cursor_serial as u64);
XFree(img as _);
}
}
}
}
});
Ok(res)
}
I’m not an expert but this seems wrong.
I think it can be summed up to C is more mature than Rust so we wait for Rust to shine Rust can overcome some complex things in C and vice versa