Просмотр исходного кода

file_sys/nca_patch: Remove unnecessary includes

romfs.h doesn't need to be included in the header, the only real
dependency here is common's swap.h that needs to be included.
Lioncash 7 лет назад
Родитель
Сommit
b155b3ef81
2 измененных файлов с 9 добавлено и 2 удалено
  1. 4 0
      src/core/file_sys/nca_patch.cpp
  2. 5 2
      src/core/file_sys/nca_patch.h

+ 4 - 0
src/core/file_sys/nca_patch.cpp

@@ -2,6 +2,10 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
+#include <algorithm>
+#include <cstddef>
+#include <cstring>
+
 #include "common/assert.h"
 #include "core/crypto/aes_util.h"
 #include "core/file_sys/nca_patch.h"

+ 5 - 2
src/core/file_sys/nca_patch.h

@@ -5,10 +5,13 @@
 #pragma once
 
 #include <array>
+#include <memory>
 #include <vector>
-#include <common/common_funcs.h>
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "common/swap.h"
 #include "core/crypto/key_manager.h"
-#include "core/file_sys/romfs.h"
 
 namespace FileSys {