cellGem: reset struct on controller reset

This commit is contained in:
Megamouse 2021-08-05 00:35:41 +02:00
parent e03f323fdd
commit 995e9b5f9f

View File

@ -142,6 +142,7 @@ struct gem_config
// Assign status and port number // Assign status and port number
if (gem_num < connected_controllers) if (gem_num < connected_controllers)
{ {
controllers[gem_num] = {};
controllers[gem_num].status = CELL_GEM_STATUS_READY; controllers[gem_num].status = CELL_GEM_STATUS_READY;
controllers[gem_num].port = 7u - gem_num; controllers[gem_num].port = 7u - gem_num;
} }