mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed wrong bit size definition
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
class NSampleData : public IParsedData {
|
||||
public:
|
||||
uint32_t codec;
|
||||
uint32_t medium;
|
||||
uint32_t unk;
|
||||
uint32_t isRelocated;
|
||||
uint32_t size;
|
||||
uint32_t codec : 4;
|
||||
uint32_t medium : 2;
|
||||
uint32_t unk : 1;
|
||||
uint32_t isRelocated : 1;
|
||||
uint32_t size : 24;
|
||||
uint32_t sampleAddr;
|
||||
uint32_t loop;
|
||||
uint32_t book;
|
||||
|
||||
@@ -18,31 +18,6 @@ ExportResult SoundFontHeaderExporter::Export(std::ostream &write, std::shared_pt
|
||||
}
|
||||
|
||||
ExportResult SoundFontCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {
|
||||
// auto symbol = GetSafeNode(node, "symbol", entryName);
|
||||
// auto offset = GetSafeNode<uint32_t>(node, "offset");
|
||||
// auto data = std::static_pointer_cast<RawBuffer>(raw)->mBuffer;
|
||||
|
||||
// if(Companion::Instance->IsOTRMode()){
|
||||
// write << "static const ALIGN_ASSET(2) char " << symbol << "[] = \"__OTR__" << (*replacement) << "\";\n\n";
|
||||
// return std::nullopt;
|
||||
// }
|
||||
|
||||
// write << GetSafeNode<std::string>(node, "ctype", "u8") << " " << symbol << "[] = {\n" << tab_t;
|
||||
|
||||
// for (int i = 0; i < data.size(); i++) {
|
||||
// if ((i % 15 == 0) && i != 0) {
|
||||
// write << "\n" << tab_t;
|
||||
// }
|
||||
|
||||
// write << "0x" << std::hex << std::setw(2) << std::setfill('0') << (int) data[i] << ", ";
|
||||
// }
|
||||
// write << "\n};\n";
|
||||
|
||||
// if (Companion::Instance->IsDebug()) {
|
||||
// write << "// size: 0x" << std::hex << std::uppercase << data.size() << "\n";
|
||||
// }
|
||||
|
||||
// return offset + data.size();
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user