Notwithstanding anything contained in the Criminal Code, 1960 (Act 29) as amended or in any other enactment, where a person
(a) who is a citizen of Ghana has been charged with an offence committed on board
(i) a Ghanaian ship on the high seas; or in any foreign port, river or harbour; or
(ii) a foreign ship; or
(b) who is not a citizen of Ghana has been charged with an offence committed on board a Ghanaian ship on the high seas is found within Ghana, a court that would have had jurisdiction to try the offence, if the offence had been committed within the limits of its ordinary jurisdiction, shall have jurisdiction to try the offence.