Support multi backend items
This commit is contained in:
parent
14432ae200
commit
bcd835aca6
10 changed files with 276 additions and 121 deletions
9
item.cpp
Normal file
9
item.cpp
Normal 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);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue