It was an SRPG game (the fire emblem engine) and you had a list of companions that could be corrupted in combat, I remember that after you reached the end fully corrupted it let you star from the beginning but with an alternate exit.
It wasn't TG emblem or Shadows over meridia, but I think they look similar
It wasn't TG emblem or Shadows over meridia, but I think they look similar