title: pause the game when enter foreground, after restart
body: <p>I developed a game using Cocos2d-x. In playscene, there is a pause button for pausing the game. I used the following code to pause the particular scene.</p>
  
  <pre><code>CCDirector::sharedDirector()-&gt;pause();
  </code></pre>
  
  <p>My question is when user press pause button the game is paused, then he press end button in keypad it gone to pause. But when he restart the game its resumed. I don't want to resume, until when user press resume button in playscene.</p>
  
  <p>I know in <code>appdelegate.cpp</code> I used resume function when enter foreground, but i am not getting any solutions with this?</p>