This is for the new original xbox emulator, Xemu. https://xemu.app/
This is a fork of XQEMU by the current most active dev. It is a little graphically buggy, but fast and seems to have the best compatibility for the games I am interested in. Much more stable than cxbx.
All credit goes to ueno from the Xemu discord channel for the configuration and AHK script which i tweaked a bit.
First create a new emulator and point it to your xemu executable. Set default command-line parameters to "-full-screen -dvd_path".
In running autohotkey script tab, paste the following:
$Esc::
{
WinClose, ahk_exe {{{StartupEXE}}}
}
This allows to exit with "Esc".
Add your games in ISO format. CXBX games in folders (or from your HDD) can be converted to ISO with the extract-xiso command-line tool using "-c" parameter. @Koroth pointed out that XDVDMulleter is also a good tool for this though I have not tried it.
Link to extract-xiso -c example: https://github.com/XboxDev/extract-xiso#create--c
Enjoy
Thanks @Retro808 for the better close method.