A video game cartridge includes a memory and a security device, which comprises a magnetically operated switch and a magnetic element positioned adjacent to the switch. The switch has first and second states with the first state for inhibiting the functioning of the memory of the cartridge and the second state for permitting the functioning of the memory of the cartridge. The magnetic element has a first magnetic state for placing the switch in the first state and a second magnetic state for placing the switch in the second state.