Hello, since many romlists have messed titles, I was thinking in get the game title from the rom name, so instead of something like "Ghouls 'N Ghosts (JUE) (REV 01) [!]", I could extract only "Ghouls 'N Ghosts" from it.
I know the scraper should get it, but it seems to don't work for many games, specially the most obscure ones like prototypes, homebrews, etc.
My idea was to use a substr, could anyone tell me if I'm doing it wrong of if there is an easier way?
function clean_title() {
local m = fe.game_info( Info.Title );
m.substr(0,m.indexOf('('));
return m;
}
local cleanamer = fe.add_text( "[!clean_title]", flw*0.01, flh*0.55, flw*0.22, 100);
But this breaks Attract soon as I launch it (i know it's Javascript, no idea if Squirrel is the same thing).