mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
b3a3604c36
It didn't have a clear role, it just acted as a distinguisher between two functions with the same name. Rename `tw::time_get` to `time_get_nanoseconds` and delete the old `time_get_nanoseconds`. Move `CCmdlineFix` and the typed `net_socket_read_wait` function to the global namespace.
18 lines
396 B
C++
18 lines
396 B
C++
#include <base/logger.h>
|
|
#include <engine/shared/uuid_manager.h>
|
|
int main(int argc, const char **argv)
|
|
{
|
|
CCmdlineFix CmdlineFix(&argc, &argv);
|
|
log_set_global_logger_default();
|
|
if(argc != 2)
|
|
{
|
|
dbg_msg("usage", "uuid <NAME>");
|
|
return -1;
|
|
}
|
|
CUuid Uuid = CalculateUuid(argv[1]);
|
|
char aBuf[UUID_MAXSTRSIZE];
|
|
FormatUuid(Uuid, aBuf, sizeof(aBuf));
|
|
dbg_msg("uuid", "%s", aBuf);
|
|
return 0;
|
|
}
|