Añadida la clase asset

This commit is contained in:
2021-09-08 13:59:39 +02:00
parent 994f4187e4
commit a0b14f5071
5 changed files with 70 additions and 2 deletions

View File

@@ -13,6 +13,9 @@ Director::Director(std::string path)
// Establece la lista de ficheros
setFileList();
// Crea el objeto que controla los ficheros de recursos
mAsset = new Asset(mExecutablePath);
// Si falta algún fichero no inicies el programa
Uint8 section = PROG_SECTION_GAME;
if (!checkFileList())
@@ -66,6 +69,9 @@ Director::~Director()
delete mOptions;
mOptions = nullptr;
delete mAsset;
mAsset = nullptr;
SDL_DestroyRenderer(mRenderer);
SDL_DestroyWindow(mWindow);
mRenderer = nullptr;