RingRacers/src/m_pw.h
toaster 54d6914b50 Add M_TryExactPassword
Single-use password technology that exists outside of the enumerated list
2024-04-12 14:05:15 +01:00

36 lines
837 B
C++

// DR. ROBOTNIK'S RING RACERS
//-----------------------------------------------------------------------------
// Copyright (C) 2024 by James Robert Roman
// Copyright (C) 2024 by Kart Krew
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
#ifndef m_pw_H
#define m_pw_H
#include "doomtype.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
M_PW_INVALID,
M_PW_EXTRAS,
M_PW_CHALLENGES,
}
try_password_e;
void M_PasswordInit(void);
try_password_e M_TryPassword(const char *password, boolean challenges);
boolean M_TryExactPassword(const char *password, const char *encodedhash);
#ifdef __cplusplus
} // extern "C"
#endif
#endif/*m_pw_H*/