Sfoglia il codice sorgente

Added enough log for now

Eiyeron Fulmincendii 9 anni fa
parent
commit
f4ebf3cbce
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/piaf/Archive.cpp

+ 4 - 0
src/piaf/Archive.cpp

@@ -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)