Support multi backend items

This commit is contained in:
2020-05-05 22:20:00 +02:00
parent 14432ae200
commit bcd835aca6
10 changed files with 276 additions and 121 deletions

9
item.cpp Normal file
View File

@ -0,0 +1,9 @@
#include "item.h"
#include "string.h"
void Item::setName(const char * const nameN)
{
size_t len = strlen(name);
if(len < MAX_NAME_LENGTH)memcpy(name, nameN, len+1);
}