Update to 12.0-beta1

This commit is contained in:
dP
2021-08-15 14:57:29 +03:00
parent ac7d3eba75
commit 9df4f2c4fc
666 changed files with 61302 additions and 20466 deletions

View File

@@ -10,6 +10,7 @@
#include "../stdafx.h"
#include "../gfx_func.h"
#include "../blitter/factory.hpp"
#include "../saveload/saveload.h"
#include "../window_func.h"
#include "null_v.h"
@@ -34,7 +35,7 @@ const char *VideoDriver_Null::Start(const StringList &parm)
ScreenSizeChanged();
/* Do not render, nor blit */
DEBUG(misc, 1, "Forcing blitter 'null'...");
Debug(misc, 1, "Forcing blitter 'null'...");
BlitterFactory::SelectBlitter("null");
return nullptr;
}
@@ -52,6 +53,12 @@ void VideoDriver_Null::MainLoop()
::InputLoop();
::UpdateWindows();
}
/* If requested, make a save just before exit. The normal exit-flow is
* not triggered from this driver, so we have to do this manually. */
if (_settings_client.gui.autosave_on_exit) {
DoExitSave();
}
}
bool VideoDriver_Null::ChangeResolution(int w, int h) { return false; }