overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
589 stars 31 forks source link

Move get_static_vram_buffer into utils #59

Closed MrAwesome closed 4 years ago

MrAwesome commented 4 years ago

I was poking around the gu examples and noticed a lot of code reuse that made using gu seem more complicated than it is.

Pushed these functions back into rust-psp itself, since all of the usages of the functions were identical (and if someone needs to implement them differently, they can easily choose to do so). Happy to put this wherever it needs to be, named however it should be named.

sajattack commented 4 years ago

sys is for sony functions. Put it outside sys as a regular module or something.

MrAwesome commented 4 years ago

Ah, makes sense. How's this?

psp::utils::gu::get_static_vram_buffer

sajattack commented 4 years ago

I checked with overdrivenpotato and he said basically everything outside sys is utils so there's no need to have a utils module. Just psp::gu_utils is fine until we have something better like a proper allocator for vram.