libertyernie / brawltools

BrawlBox and BrawlLib
http://forums.kc-mm.com/index.php?topic=67847.0
142 stars 31 forks source link

CI4 and CI8 Textures crash when compiled from source #176

Closed soopercool101 closed 5 years ago

soopercool101 commented 6 years ago

To recreate the bug:

Might be an issue with Visual Studio 2017's compiler, I'm not sure what y'all use.

libertyernie commented 6 years ago

It'll work if you change the target CPU from Any CPU to x86.

BrawlBox was originally written with the assumption that the pointer size would be 32 bits, so there are sections of the code that crash if that's not the case. It's not a huge issue, since any version of Windows for x64 can run x86 programs just fine, but this isn't necessarily true on Linux or macOS.

I will push a change that should fix this particular issue, though.