Ignore:
Timestamp:
Jun 5, 2012, 8:15:56 PM (9 years ago)
Author:
sam
Message:

nacl: NaCl binaries no longer need a modified main() to work, the NaCl
instance object takes care of everything for us.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/nacl/nacl-app.cpp

    r1439 r1440  
    1313#endif
    1414
    15 #if defined __native_client__
    16 #   include <ppapi/cpp/instance.h>
    17 #   include <ppapi/cpp/module.h>
    18 #   include <ppapi/cpp/var.h>
    19 #endif
     15#include "core.h"
    2016
    21 #include "core.h"
    22 #include "lolgl.h"
    23 #include "naclapp.h"
     17#include "nacl-app.h"
     18#include "nacl-instance.h"
    2419
    2520namespace lol
     
    4641    data(new NaClAppData())
    4742{
     43    Ticker::Setup(fps);
    4844#if defined __native_client__
    4945#endif
     
    5753void NaClApp::Run()
    5854{
    59     while (!Ticker::Finished())
    60     {
    61         /* Tick the renderer, show the frame and clamp to desired framerate. */
    62         Ticker::TickDraw();
     55#if defined __native_client__
     56    NaClInstance::MainSignal();
     57#endif
    6358
    64 #if defined __native_client__
    65 #endif
    66     }
     59    /* Wait forever */
     60    Queue<int, 1> q;
     61    q.Pop();
    6762}
    6863
Note: See TracChangeset for help on using the changeset viewer.