Xeeynamo / sotn-decomp

Decompilation of Castlevania: Symphony of the Night (PSX+Saturn)
https://sotn.xee.dev/
GNU Affero General Public License v3.0
508 stars 55 forks source link

Adding ghost to buildlist #1764

Closed Onenutmcgee closed 1 month ago

Onenutmcgee commented 1 month ago

Adding ghost to build list

In order to get the build to work, I needed to mark all of the shared functions between tt_000 and tt_001 as static as it was causing linking issues. Because of this, I needed to combine the two C files for tt_000. Probably want to look at splitting those up into servant specific and shared, but for now, I just wanted to get this working.

The issue was msvc didn't like that we were declaring a static function that was not being implemented because part of the shared functions were being implemented in another file. There may be something we can do with function declarations to clean that up if/when we split it again, but I don't know enough about C static functions to figure it out.