MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MockGfxLoadSprites

Function MockGfxLoadSprites

src/tests/mock_spritecache.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void MockGfxLoadSprites()
42{
43 /* Force blitter 'null'. This is necessary for GfxInitSpriteMem() to function. */
44 BlitterFactory::SelectBlitter("null");
45
46 GfxInitSpriteMem();
47
48 SpriteID load_index = 0;
49 while (MockLoadNextSprite(load_index)) {
50 load_index++;
51 }
52}

Callers 1

MockEnvironmentMethod · 0.85

Calls 2

GfxInitSpriteMemFunction · 0.85
MockLoadNextSpriteFunction · 0.85

Tested by

no test coverage detected