forked from wolfpld/tracy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add protocol -> version mapping table.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "TracyFileHeader.hpp" | ||
#include "TracyProtoHistory.hpp" | ||
|
||
namespace tracy | ||
{ | ||
|
||
constexpr ProtocolHistory_t ProtocolHistoryArr[] = { | ||
{ 57, FileVersion( 0, 8, 2 ) }, | ||
{ 56, FileVersion( 0, 8, 1 ) }, | ||
{ 55, FileVersion( 0, 8, 0 ) }, | ||
{ 46, FileVersion( 0, 7, 6 ), FileVersion( 0, 7, 8 ) }, | ||
{ 44, FileVersion( 0, 7, 5 ) }, | ||
{ 42, FileVersion( 0, 7, 3 ), FileVersion( 0, 7, 4 ) }, | ||
{ 40, FileVersion( 0, 7, 1 ), FileVersion( 0, 7, 2 ) }, | ||
{ 35, FileVersion( 0, 7, 0 ) }, | ||
{ 25, FileVersion( 0, 6, 2 ), FileVersion( 0, 6, 3 ) }, | ||
{ 24, FileVersion( 0, 6, 1 ) }, | ||
{ 23, FileVersion( 0, 6, 0 ) }, | ||
{ 14, FileVersion( 0, 5, 0 ) }, | ||
{ 1, FileVersion( 0, 4, 1 ) }, | ||
{} | ||
}; | ||
|
||
const ProtocolHistory_t* ProtocolHistory = ProtocolHistoryArr; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef __TRACYPROTOHISTORY_HPP__ | ||
#define __TRACYPROTOHISTORY_HPP__ | ||
|
||
#include <stdint.h> | ||
|
||
namespace tracy | ||
{ | ||
|
||
struct ProtocolHistory_t | ||
{ | ||
uint32_t protocol; | ||
uint32_t minVer; | ||
uint32_t maxVer; | ||
}; | ||
|
||
extern const ProtocolHistory_t* ProtocolHistory; | ||
|
||
} | ||
|
||
#endif |