[Decompile] DMA and similar (#275)

* add some dma

* clean up

* add progress script and make codacy happy
This commit is contained in:
water111
2021-02-21 11:02:28 -05:00
committed by GitHub
parent ea1a4ef1bb
commit 4b1b7e9507
38 changed files with 2126 additions and 180 deletions
+13
View File
@@ -40,6 +40,7 @@
#include "Object.h"
#include "common/util/FileUtil.h"
#include "third-party/fmt/core.h"
namespace goos {
@@ -90,6 +91,18 @@ std::string fixed_to_string(FloatType x) {
return {buff};
}
/*!
* Special case to print an integer
*/
template <>
std::string fixed_to_string(IntType x) {
if (x > 10000) {
return fmt::format("#x{:x}", x);
} else {
return fmt::format("{}", x);
}
}
/*!
* Special case to print a character and escape the weird ones.
*/