Refactor build information getters and remove the useless code.

Reviewed By: elexis, Stan
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D1348
This was SVN commit r22035.
This commit is contained in:
vladislavbelov
2019-01-06 14:32:54 +00:00
parent 276050bcad
commit 2d56e62e11
5 changed files with 37 additions and 72 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2018 Wildfire Games.
/* Copyright (C) 2019 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -27,7 +27,9 @@ namespace JSI_Debug
int Crash(ScriptInterface::CxPrivate* UNUSED(pCxPrivate));
void DebugWarn(ScriptInterface::CxPrivate* UNUSED(pCxPrivate));
void DisplayErrorDialog(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), const std::wstring& msg);
std::wstring GetBuildTimestamp(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), int mode);
std::wstring GetBuildDate(ScriptInterface::CxPrivate* UNUSED(pCxPrivate));
double GetBuildTimestamp(ScriptInterface::CxPrivate* UNUSED(pCxPrivate));
std::wstring GetBuildRevision(ScriptInterface::CxPrivate* UNUSED(pCxPrivate));
double GetMicroseconds(ScriptInterface::CxPrivate* UNUSED(pCxPrivate));
void RegisterScriptFunctions(const ScriptInterface& ScriptInterface);