mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
https://github.com/diasurgical/devilutionx-mpq-tools produces an unpacked MPQ with all the graphics converted to CLX and the unused files removed. This is primarily useful on RAM-constrained platforms, such as PS2, because it eliminates the MPQ overhead. Adds a build option to load from such unpacked directories instead of the MPQ. These directories are searched for in the same locations where the MPQs would be searched for otherwise. Example directory layout: * /usr/local/share/diasurgical/devilutionx/diabdat/ -- unpacked and converted diabdat.mpq * /usr/local/share/diasurgical/devilutionx/hellfire/ -- unpacked and converted hellfire MPQs (all of them merged into 1 directory) * /usr/local/share/diasurgical/devilutionx/fonts/ -- unpacked fonts.mpq * /usr/local/share/diasurgical/devilutionx/pl/ -- unpacked pl.mpq These directory structure is produced by calling `unpack_and_minify_mpq`
44 lines
778 B
C++
44 lines
778 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", 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
|