mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-04-02 23:56:39 +02:00
20 lines
730 B
C
20 lines
730 B
C
#ifndef EMULATOR_NAME
|
|
|
|
#define EMULATOR_NAME "Cemu"
|
|
|
|
#define EMULATOR_VERSION_SUFFIX ""
|
|
|
|
#define _XSTRINGFY(s) _STRINGFY(s)
|
|
#define _STRINGFY(s) #s
|
|
|
|
#if EMULATOR_VERSION_MAJOR != 0
|
|
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_VERSION_MAJOR) "." _XSTRINGFY(EMULATOR_VERSION_MINOR) EMULATOR_VERSION_SUFFIX)
|
|
#define BUILD_VERSION_STRING (_XSTRINGFY(EMULATOR_VERSION_MAJOR) "." _XSTRINGFY(EMULATOR_VERSION_MINOR) EMULATOR_VERSION_SUFFIX)
|
|
#else
|
|
// no version provided. Only show commit hash
|
|
#define BUILD_VERSION_STRING (_XSTRINGFY(EMULATOR_HASH) EMULATOR_VERSION_SUFFIX)
|
|
#define BUILD_VERSION_WITH_NAME_STRING (EMULATOR_NAME " " _XSTRINGFY(EMULATOR_HASH) EMULATOR_VERSION_SUFFIX)
|
|
#endif
|
|
|
|
#endif
|