CLOUD: Add SimpleJSON library as Common::JSON
This commit also adds CloudThread class, which work() method is called every second by TimerManager. Right now it prints JSON examples on the console, so that's why it's introduced with SimpleJSON library.
This commit is contained in:
parent
380902eb07
commit
8429c40362
5 changed files with 1509 additions and 0 deletions
|
@ -66,6 +66,7 @@
|
|||
#endif
|
||||
|
||||
#include "backends/keymapper/keymapper.h"
|
||||
#include "backends/cloud/cloudthread.h"
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
#include "backends/platform/wince/CELauncherDialog.h"
|
||||
|
@ -475,6 +476,11 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
|
|||
dlg.runModal();
|
||||
}
|
||||
#endif
|
||||
|
||||
CloudThread thread;
|
||||
Common::TimerManager *manager = system.getTimerManager();
|
||||
if (!manager->installTimerProc(cloudThread, 1000000, &thread, "Cloud Thread"))
|
||||
warning("Failed to create cloud thread");
|
||||
|
||||
// Unless a game was specified, show the launcher dialog
|
||||
if (0 == ConfMan.getActiveDomain())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue