mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-10 03:30:34 +00:00
Frontend: Stats, Map, Audio inputs, Radio selector
This commit is contained in:
parent
26c6908d25
commit
c6f53d25b0
5 changed files with 665 additions and 229 deletions
|
@ -256,3 +256,17 @@ char* casepath(char const* path, bool checkPathFirst)
|
|||
return out;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(_MSC_VER) && !defined(__CWCC__)
|
||||
char *strdate(char *buf) {
|
||||
time_t timestamp;
|
||||
time(×tamp);
|
||||
tm *localTm = localtime(×tamp);
|
||||
strftime(buf, 10, "%m/%d/%y", localTm);
|
||||
return buf;
|
||||
}
|
||||
|
||||
char *_strdate(char *buf) {
|
||||
return strdate(buf);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -12,6 +12,10 @@ enum eWinVersion
|
|||
OS_WINXP,
|
||||
};
|
||||
|
||||
#if !defined(_MSC_VER) && !defined(__CWCC__)
|
||||
char *_strdate(char *buf);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
// As long as WITHWINDOWS isn't defined / <Windows.h> isn't included, we only need type definitions so let's include <IntSafe.h>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue