If I were to assume...I'd think the guns even though electronically charge an fired would have provisions for manual charging and firing. If the aircraft lost electrical power, this would make the aircraft without defenses...not a good way to enter a combat zone.
Now if an aircraft such as the B-29 with remote turrets, then a manual system probably wasn't available...without special tools.
I've flown an aircraft which had a complete electrical failure. No lights, no radio, no flaps...just a motor purring along happily, a flashlight and a tower operator who knew how to use the light gun to signal me when I approached the base. It is even logged in my logbook! All those pretty flashing lights on the big fire trucks and the spacemen in silver suits greeting me when I landed. Followed up by a seven page incident form to fill out!