mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-09 17:22:49 -10:00
We want to be able to use unpacked MPQs on low-end platforms (PS2/rg99/etc). This is tricky on case-sensitive filesystems. Avoids case issues by lowercasing all paths in the code (then we'll just need lowercased listfiles).
44 lines
782 B
C++
44 lines
782 B
C++
/**
|
|
* @file doom.cpp
|
|
*
|
|
* Implementation of the map of the stars quest.
|
|
*/
|
|
#include "doom.h"
|
|
|
|
#include "control.h"
|
|
#include "engine.h"
|
|
#include "engine/clx_sprite.hpp"
|
|
#include "engine/load_cel.hpp"
|
|
#include "engine/render/clx_render.hpp"
|
|
#include "utils/stdcompat/optional.hpp"
|
|
|
|
namespace devilution {
|
|
namespace {
|
|
OptionalOwnedClxSpriteList DoomSprite;
|
|
} // namespace
|
|
|
|
bool DoomFlag;
|
|
|
|
void doom_init()
|
|
{
|
|
DoomSprite = LoadCel("items\\map\\mapztown.cel", 640);
|
|
DoomFlag = true;
|
|
}
|
|
|
|
void doom_close()
|
|
{
|
|
DoomFlag = false;
|
|
DoomSprite = std::nullopt;
|
|
}
|
|
|
|
void doom_draw(const Surface &out)
|
|
{
|
|
if (!DoomFlag) {
|
|
return;
|
|
}
|
|
|
|
ClxDraw(out, GetUIRectangle().position + Displacement { 0, 352 }, (*DoomSprite)[0]);
|
|
}
|
|
|
|
} // namespace devilution
|