Skip to content

natfeats nfapi nf_name

Thorsten Otto edited this page Aug 12, 2018 · 1 revision

"NF_NAME"

This is part of basic set of features, that must always be implemented. It currently defines two functions:

  sub-ID 0 - user allowed
  unsigned long getName(char *buffer, unsigned long size)

Fills 'buffer' with a null-terminated string representing the emulator name. At most 'size' bytes will be written in the buffer (which means that the string will be truncated if it contains more than size - 1 characters). The string should contain only printable ASCII characters (ASCII 32 to 126 inclusive). Returns the length of the string before truncation.

  sub-ID 1 - user allowed
  unsigned long getFullName(char *buffer, unsigned long size)

Similar to getName, but the string is the emulator name plus its version (and anything else that might be printed together with the emulator name) Returns the length of the string before truncation.

Clone this wiki locally