obhq / obliteration

Experimental PS4 emulator written in Rust for Windows, macOS and Linux
https://obliteration.net
MIT License
586 stars 17 forks source link

Implements socket creation, initializes rng, gc and camera devices #819

Closed SuchAFuriousDeath closed 2 months ago

SuchAFuriousDeath commented 3 months ago

As I write in the doc comment for 'SocketBackend', the protocol implementation isn't exactly ideal and will probably change a lot before we settle on something. I consider it sufficient for now.

SuchAFuriousDeath commented 3 months ago

One has to commit a lot of programming war crimes to reach all of this. Some things I skipped on the way include mmap_dmem, mprotect, munmap, mdb_service and clock_gettime.

About the rng algorithms: Once again, red-prig just uses arnd here, so it's probaly fine for us to use it as well, at least for now About the socket ioctl: It's in-only, the socket is just opened, the ioctl is ran and the socket is closed and never seen again. I don't think we want to spend time on this.