PacketChangerPlugin.cpp 767 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #include "PacketChangerPlugin.h"
  11. PacketChangerPlugin::PacketChangerPlugin(void)
  12. {
  13. }
  14. PacketChangerPlugin::~PacketChangerPlugin(void)
  15. {
  16. }
  17. void PacketChangerPlugin::OnInternalPacket(InternalPacket *internalPacket, unsigned frameNumber, SystemAddress remoteSystemAddress, TimeMS time, int isSend)
  18. {
  19. internalPacket->data[0]=ID_USER_PACKET_ENUM+2;
  20. //(void) frameNumber; (void) remoteSystemAddress; (void) time; (void) isSend;
  21. }
粤ICP备19079148号