mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-19 21:09:29 +00:00
Allow downloading data while the game is minimized.
With this change, downloads should no longer abort when the game is minimized for more than a few seconds.
This commit is contained in:
parent
9b658cb531
commit
1897329071
5 changed files with 19 additions and 11 deletions
|
@ -5133,16 +5133,9 @@ void DSQ::cutsceneEffects(bool on)
|
|||
}
|
||||
}
|
||||
|
||||
void pauseSound()
|
||||
void DSQ::onBackgroundUpdate()
|
||||
{
|
||||
if (dsq && dsq->sound) {
|
||||
dsq->sound->pause();
|
||||
}
|
||||
Network::update();
|
||||
Core::onBackgroundUpdate();
|
||||
}
|
||||
|
||||
void resumeSound()
|
||||
{
|
||||
if (dsq && dsq->sound) {
|
||||
dsq->sound->resume();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1563,6 +1563,9 @@ public:
|
|||
void pauseCutscene(bool on);
|
||||
bool canSkipCutscene();
|
||||
bool isSkippingCutscene();
|
||||
|
||||
virtual void onBackgroundUpdate();
|
||||
|
||||
protected:
|
||||
|
||||
Quad *cutscene_bg;
|
||||
|
|
|
@ -244,6 +244,9 @@ void download(RequestData *rq)
|
|||
|
||||
void update()
|
||||
{
|
||||
if(!netUp)
|
||||
return;
|
||||
|
||||
RequestDataHolder h;
|
||||
while(notifyRequests.pop(h))
|
||||
h.rq->notify(h.ev, h.recvd, h.total);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue