mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[Decompile] DMA and similar (#275)
* add some dma * clean up * add progress script and make codacy happy
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user