3rdparty: add MultiEmulator by 2010kohtep

* patched to be portable, turned into a static library
* integrated to the engine
This commit is contained in:
Alibek Omarov
2024-10-10 19:06:26 +03:00
parent ec11683dc5
commit ae2ad6ddf2
26 changed files with 3402 additions and 6 deletions

12
3rdparty/MultiEmulator/src/StrUtils.cpp vendored Normal file
View File

@@ -0,0 +1,12 @@
#include "StrUtils.h"
#include <stdlib.h>
void CreateRandomString(char *pszDest, int nLength)
{
static const char c_szAlphaNum[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (int i = 0; i < nLength; ++i)
pszDest[i] = c_szAlphaNum[rand() % (sizeof(c_szAlphaNum) - 1)];
pszDest[nLength] = '\0';
}