Well if you don't own the games and you have them now that's 'not the legal way". Say I have a fire red pokemon cartridge then I dump the rom to a drive. If I give someone else said game/drive (all copies) the other drive/cartridge needs to go with it. If it's a pc game those are generally linked to your accounts so you would know if you own said games legally.