I think this cmd actually should memcpy palette data from the pointer passed in data to an internal palette, it shouldn't just set a flag.