mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
remove unused stuff
This commit is contained in:
parent
c3fa9b76c4
commit
3a7b23f655
2 changed files with 0 additions and 32 deletions
|
@ -1042,36 +1042,6 @@ void CONFIG_ReadCombatMacros()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
static FString CONFIG_GetMD4EntryName(uint8_t const* const md4)
|
||||
{
|
||||
return FStringf("MD4_%08x%08x%08x%08x",
|
||||
B_BIG32(B_UNBUF32(&md4[0])), B_BIG32(B_UNBUF32(&md4[4])),
|
||||
B_BIG32(B_UNBUF32(&md4[8])), B_BIG32(B_UNBUF32(&md4[12])));
|
||||
}
|
||||
|
||||
int32_t CONFIG_GetMapBestTime(char const* const mapname, uint8_t const* const mapmd4)
|
||||
{
|
||||
|
||||
auto m = CONFIG_GetMD4EntryName(mapmd4);
|
||||
if (GameConfig->SetSection("MapTimes"))
|
||||
{
|
||||
auto s = GameConfig->GetValueForKey(m);
|
||||
if (s) return (int)strtoull(s, nullptr, 0);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
int CONFIG_SetMapBestTime(uint8_t const* const mapmd4, int32_t tm)
|
||||
{
|
||||
FStringf t("%d", tm);
|
||||
auto m = CONFIG_GetMD4EntryName(mapmd4);
|
||||
if (GameConfig->SetSection("MapTimes"))
|
||||
{
|
||||
GameConfig->SetValueForKey(m, t);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
CCMD(snd_reset)
|
||||
{
|
||||
|
|
|
@ -42,8 +42,6 @@ void CONFIG_SetGameControllerDefaultsClear();
|
|||
extern FStringCVar* const CombatMacros[];
|
||||
void CONFIG_ReadCombatMacros();
|
||||
|
||||
int32_t CONFIG_GetMapBestTime(char const* const mapname, uint8_t const* const mapmd4);
|
||||
int CONFIG_SetMapBestTime(uint8_t const* const mapmd4, int32_t tm);
|
||||
int GameMain();
|
||||
|
||||
struct UserConfig
|
||||
|
|
Loading…
Reference in a new issue