NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
485B

  1. #ifndef NESE_OVERLAY_H_
  2. #define NESE_OVERLAY_H_
  3. typedef struct overlay_message_t {
  4. char* string;
  5. int id;
  6. int expiry;
  7. struct overlay_message_t* next;
  8. } overlay_message;
  9. typedef struct {
  10. overlay_message* messages;
  11. int next_id;
  12. } Overlay;
  13. int overlay_init(Overlay*);
  14. void overlay_done(Overlay*);
  15. int overlay_add_message(Overlay*, const char*, int expiry);
  16. int overlay_clear_message(Overlay*, int id);
  17. int overlay_clear(Overlay*);
  18. #endif // NESE_OVERLAY_H_