mcp changes the CommandData struct in places other than the commands.c . This means that those changes to CommandData do not get written to the prev_status file and so are not saved. We need to either move these calls to other global variables, call the actual commands from those other programs, or add a WritePrevStatus() after every time the CommandData struct is changed.
mcp changes the CommandData struct in places other than the commands.c . This means that those changes to CommandData do not get written to the prev_status file and so are not saved. We need to either move these calls to other global variables, call the actual commands from those other programs, or add a WritePrevStatus() after every time the CommandData struct is changed.