pret / pokediamond

Decompilation of Pokémon Diamond/Pearl
419 stars 77 forks source link

synchronise bg_window.c with heartgold #523

Closed red031000 closed 1 year ago

red031000 commented 1 year ago

I think I genuinely hate graphics programming, this is the worst part of the rom, even with all the shit I've seen and everything that doesn't make sense, this fucking file is the worst out of all of them. I genuinely hate this shit, it's actually frustrating, sometimes the bg id is a u32 and sometimes it's a u8, the enum doesn't work if it's a u8, and some parts don't match, and some parts don't match if everything is a u32, I don't get why they didn't just put it fully as one or the other, I once again question the mental capacity of the people who wrote this file in the first place, and question whether they were on drugs or having drunk some serious alcohol for this, because this shit makes barely any sense, there's shit in here which you would expect to find in gen 2, and not on a graphics system like the DS, like actually, you'd think they'd be past this by now, but of course not, since this is GF code here. This is not made any better by the fucking compiler, which only does what you'd expect half the fucking time, and the other half of the time needs a weird hack or just straight up won't work, I've had to explicitly cast to u8 a few times because that gets the compiler to work, even if the original variable is of u8, I am genuinely starting to be convinced that metrowerks, freescale, nintendo, and game freak all got together and threw a massive drug party that lasted a few months and designed and programmed the games, libraries, tools, and compilers used in it

I still have a bunch to do here, but I'm only so masochistic, and every single second I take another look at this file I am losing braincells, I need them to continue to push these roms forward, because we only have a few contributors who are working on gen 4.