You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
852 B

/**
* @file init.hpp
*
* Interface of routines for initializing the environment, disable screen saver, load MPQ.
*/
#pragma once
// Unused here but must be included before SDL.h, see:
// https://github.com/bebbo/amiga-gcc/issues/413
#include <cstdint>
#include <SDL.h>
#ifdef UNPACKED_MPQS
#include <string_view>
#else
#include "mpq/mpq_reader.hpp"
#endif
namespace devilution {
/** True if the game is the current active window */
extern bool gbActive;
[[nodiscard]] bool IsDevilutionXMpqOutOfDate();
#ifdef UNPACKED_MPQS
bool AreExtraFontsOutOfDate(std::string_view path);
#else
bool AreExtraFontsOutOfDate(MpqArchive &archive);
#endif
[[nodiscard]] bool AreExtraFontsOutOfDate();
void init_cleanup();
void init_create_window();
void MainWndProc(const SDL_Event &event);
} // namespace devilution