> I've been banging my head on this one for a while now. > > Error: > "error C0000: syntax error, unexpected $end, expecting "::" at token "" > > I get this seemingly at random after a edit of a shader file. The shader would have > been working perfectly fine (and works fine still in another program), yet, change a > number and Bam, error in similar vein to this one. > > Often the only solution is to re-write that particular section exactly the same as it > was. Just... re-written... Again. > > I don't know my way around Mame very well. So i can't really fix it myself (And I'm > not skilled enough), but I did turn up this Stack link if someone would like to have > a look; > > That seems to be what I'm seeing in the Mame source, but no idea how to go about > fixing it. > > Cheers!
When I was first trying to get Timothy Lottes's CRT shader working, I found there was a maximum length of shader that would be parsed. It was the file length I think. Not just the shader code. So even comments counted. Not sure about white space. If MAME is outputting the shader it doesn't like to the command window (it used to do that I think), then you might see that it was truncated before the end.
You could be just a few characters away from the limit. I was and I just wasn't realizing that the real difference between working and not working was whether the last " } " was being compiled. So I thought the error was something else.
|