According to Firishta, Raja Ganesha usurped the throne after the death of Shihab-ud-Din Bayazid Shah, while according to the Riaz-us-Salatin, a late chronicle written in 1788, Raja Ganesha killed Shihabuddin Bayazid Shah and usurped the throne.[1]