mirror of
https://github.com/holub/mame
synced 2025-05-11 08:38:47 +03:00
24 lines
413 B
C++
24 lines
413 B
C++
// PropertyName.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "../../../Common/IntToString.h"
|
|
|
|
#include "LangUtils.h"
|
|
#include "PropertyName.h"
|
|
|
|
UString GetNameOfProperty(PROPID propID, const wchar_t *name)
|
|
{
|
|
if (propID < 1000)
|
|
{
|
|
UString s = LangString(1000 + propID);
|
|
if (!s.IsEmpty())
|
|
return s;
|
|
}
|
|
if (name)
|
|
return name;
|
|
wchar_t temp[16];
|
|
ConvertUInt32ToString(propID, temp);
|
|
return temp;
|
|
}
|