|
|
@@ -7,6 +7,7 @@
|
|
|
#endif
|
|
|
#include "Archive.h"
|
|
|
#include "Quirks.h"
|
|
|
+#include "Logger.h"
|
|
|
#include "utility/misc.h"
|
|
|
|
|
|
using tinystl::string;
|
|
|
@@ -16,6 +17,7 @@ using WalrusRPG::PIAF::File;
|
|
|
using WalrusRPG::PIAF::FileType;
|
|
|
using WalrusRPG::PIAF::CompressionType;
|
|
|
using namespace WalrusRPG::PIAF;
|
|
|
+using namespace WalrusRPG::Logger;
|
|
|
|
|
|
#ifdef TARGET_NSPIRE
|
|
|
using namespace Nspire;
|
|
|
@@ -67,6 +69,7 @@ Archive::Archive(string &filepath) : Archive(filepath.c_str())
|
|
|
Archive::Archive(const char *filepath)
|
|
|
: file(nullptr), entries(nullptr), files_data(nullptr), files_loaded(nullptr)
|
|
|
{
|
|
|
+ log("PIAF : Loading %s", filepath);
|
|
|
#if TARGET_NSPIRE
|
|
|
Interrupts::off();
|
|
|
#endif
|
|
|
@@ -196,6 +199,7 @@ Archive::Archive(const char *filepath)
|
|
|
|
|
|
Archive::~Archive()
|
|
|
{
|
|
|
+ log("PIAF : Freeing file");
|
|
|
if (file != nullptr)
|
|
|
fclose(file);
|
|
|
if (entries != nullptr)
|