1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00

Introduce pluginNameWithRevision

This commit is contained in:
Rosalie Wanders 2020-11-13 14:47:51 +01:00 committed by Sergey Lipskiy
parent bb05409c16
commit 5f1803ab29
4 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#include "Revision.h"
char pluginName[] = "GLideN64";
char pluginNameWithRevision[] = "GLideN64 rev." PLUGIN_REVISION;
wchar_t pluginNameW[] = L"GLideN64";
void (*CheckInterrupts)( void );

View File

@ -2,6 +2,7 @@
#define GLIDEN64_H
extern char pluginName[];
extern char pluginNameWithRevision[];
extern wchar_t pluginNameW[];
extern void (*CheckInterrupts)( void );

View File

@ -145,7 +145,7 @@ m64p_error PluginAPI::PluginGetVersion(
*_APIVersion = VIDEO_PLUGIN_API_VERSION;
if (_PluginNamePtr != nullptr)
*_PluginNamePtr = pluginName;
*_PluginNamePtr = pluginNameWithRevision;
if (_Capabilities != nullptr)
{

View File

@ -28,7 +28,7 @@ void PluginAPI::GetDllInfo(PLUGIN_INFO * PluginInfo)
{
PluginInfo->Version = 0x103;
PluginInfo->Type = PLUGIN_TYPE_GFX;
sprintf(PluginInfo->Name, "%s rev.%s", pluginName, PLUGIN_REVISION);
sprintf(PluginInfo->Name, "%s", pluginNameWithRevision);
PluginInfo->NormalMemory = FALSE;
PluginInfo->MemoryBswaped = TRUE;
}