Sfoglia il codice sorgente

MesssageService extern function for emscripten communication

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 11 anni fa
parent
commit
88e99dc9fd
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. +13
    -0
      src/messageservice.cpp

+ 13
- 0
src/messageservice.cpp Vedi File

@@ -22,6 +22,19 @@
namespace lol
{

// This is needed to map MessageService::Send() to the JS when building the HTML.
#if EMSCRIPTEN
extern "C"
{
bool C_Send(int id, const char* message)
{
return MessageService::Send(id, message);
}
//NOT IMPLEMENTED
//bool C_FetchFirst(int id, String& message);
}
#endif //EMSCRIPTEN

/*
* The global g_renderer object, initialised by Video::Init
*/


Caricamento…
Annulla
Salva