forked from jaildesigner-jailgames/jaildoctors_dilemma
Añadida la clase asset
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user