add: new graph cmd: "stats", now accessible through cmd, not only via menu.

fix: changed language string hashes to reduce collisions.
This commit is contained in:
ds 2020-08-31 14:52:12 +03:00
commit eadd7cd3a2
6 changed files with 72 additions and 51 deletions

View file

@ -57,7 +57,7 @@ private:
StringArray m_logos;
StringArray m_avatars;
HashMap <uint32, String, Hash <int32>> m_language;
HashMap <uint32, String, Hash <int32>> m_language { 256 };
HashMap <int32, DifficultyData> m_difficulty;
// default tables for personality weapon preferences, overridden by weapon.cfg

View file

@ -104,6 +104,7 @@ private:
int cmdNodeReleaseEditor ();
int cmdNodeUpload ();
int cmdNodeIterateCamp ();
int cmdNodeShowStats ();
private:
int menuMain (int item);

View file

@ -371,6 +371,7 @@ public:
void convertToPOD (const Path &path, PODPath &pod);
void convertCampDirection (Path &path);
void setAutoPathDistance (const float distance);
void showStats ();
const char *getDataDirectory (bool isMemoryFile = false);
const char *getOldFormatGraphName (bool isMemoryFile = false);