Galaxy formation with local photoionization feedback – II. Effect of X-ray emission from binaries and hot gas | Synapse