Closed ezio416 closed 4 months ago
I am unable to reproduce with this test plugin:
void Main()
{
print("No");
#elif MP4
print("Yes");
#endif
}
Do you have any more details on this issue?
I also can't reproduce with your case so it seems more specific than that. I pulled this from a version of Current Surfaces where it originally broke, and this minimal case does cause the game not to load:
string MaterialName(EPlugSurfaceMaterialId mat) {
return "";
}
#elif MP4
string MaterialName(CAudioSourceSurface::ESurfId mat) {
return "";
}
#endif
Maybe it has to do with defining a function multiple times since when preprocessors are unexpected, they end up being ignored
I am still unable to reproduce this with your code:
I can't reproduce this anymore myself, maybe this was fixed in a recent update
In resolving a merge conflict, I somehow deleted a
#if TMNEXT
that was before#elif MP4
and#endif
. The last lines of the log did show this error:However, this made the game hang indefinitely on the "Connecting" screen when I tried to boot it up. This should instead just throw an error and refuse to compile the plugin