File: null_osystem.cpp

package info (click to toggle)
scummvm 2.9.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 450,580 kB
  • sloc: cpp: 4,299,825; asm: 28,322; python: 12,901; sh: 11,302; java: 9,289; xml: 7,895; perl: 2,639; ansic: 2,465; yacc: 1,670; javascript: 1,020; makefile: 933; lex: 578; awk: 275; objc: 82; sed: 11; php: 1
file content (43 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#define FORBIDDEN_SYMBOL_EXCEPTION_abort

#define USE_NULL_DRIVER 1
#define NULL_DRIVER_USE_FOR_TEST 1
#include "null_osystem.h"
#include "../backends/platform/null/null.cpp"

//#define DISPLAY_ERROR_MESSAGES

void Common::install_null_g_system() {
#ifdef DISPLAY_ERROR_MESSAGES
	const bool silenceLogs = false;
#else
	const bool silenceLogs = true;
#endif

	g_system = OSystem_NULL_create(silenceLogs);
}

void OSystem_NULL::quit() {
	abort();
}

bool BaseBackend::setScaler(const char *name, int factor) {
	return false;
}

void BaseBackend::displayMessageOnOSD(const Common::U32String &msg) {
}

void BaseBackend::initBackend() {
	OSystem::initBackend();
}

void BaseBackend::fillScreen(uint32 col) {
}

void BaseBackend::fillScreen(const Common::Rect &r, uint32 col) {
}

void EventsBaseBackend::initBackend() {
	BaseBackend::initBackend();
}