From f9bb9a00dfac537c69813e872428f348489cab7a Mon Sep 17 00:00:00 2001 From: Tokman5 Date: Tue, 17 May 2022 18:23:59 +0900 Subject: [PATCH] Use string_view for commandTBL --- Pawapuro-TextConverter/PawaCodeConverter.cpp | 1 + Pawapuro-TextConverter/PawaTable.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Pawapuro-TextConverter/PawaCodeConverter.cpp b/Pawapuro-TextConverter/PawaCodeConverter.cpp index 9b2f833..3711d7e 100644 --- a/Pawapuro-TextConverter/PawaCodeConverter.cpp +++ b/Pawapuro-TextConverter/PawaCodeConverter.cpp @@ -1,4 +1,5 @@ #include +#include #include "PTCTypes.h" #include "PawaTable.h" #include "PawaCodeConverter.h" diff --git a/Pawapuro-TextConverter/PawaTable.h b/Pawapuro-TextConverter/PawaTable.h index abd0bab..3e3ad28 100644 --- a/Pawapuro-TextConverter/PawaTable.h +++ b/Pawapuro-TextConverter/PawaTable.h @@ -69,7 +69,7 @@ static constexpr u32 specialcharacterV2001[][3]{ //サクセスモード Commandモード時のコマンドリスト パワプロ8用 //u16 キー、value{ int 追加で2バイト読む回数(2バイト読むなら 1 )、string コンバータ用文字列、int 代替文字列の文字数、int ログレベル } //ログレベル・・・0で必ず表示、2で詳細表示用 - static const std::unordered_map > TBL_successcommandV2001{ + static const std::unordered_map > TBL_successcommandV2001{ {0x0000 ,{0, " ", 0, 0}}, {0x0001 ,{0, "\n", 0, 0}}, {0x0002 ,{0, "\n", 0, 0}}, {0x0003 ,{0, "\n", 0, 0}}, {0x0005 ,{0, "\n", 0, 0}}, {0x0006 ,{0, "\n", 0, 0}}, {0x0007 ,{0, "\n", 0, 0}}, {0x0009 ,{0, "[SKIP]", 0, 1}}, {0x000A ,{1, "[0x0A:", 0, 2}}, {0x000B ,{1, "[Goto:", 0, 2}}, @@ -121,7 +121,7 @@ static constexpr u32 specialcharacterV2001[][3]{ //サクセスモード Commandモード時のコマンドリスト パワプロ7用 //u16 キー、value{ int 追加で2バイト読む回数(2バイト読むなら 1 )、string コンバータ用文字列、int 代替文字列の文字数、int ログレベル } //ログレベル・・・0で必ず表示、2で詳細表示用 - static const std::unordered_map > TBL_successcommandV2000{ + static const std::unordered_map > TBL_successcommandV2000{ {0x0000 ,{0, " ", 0, 0}}, {0x0001 ,{0, "\n", 0, 0}}, {0x0002 ,{0, "\n", 0, 0}}, {0x0003 ,{0, "\n", 0, 0}}, {0x0005 ,{0, "\n", 0, 0}}, {0x0006 ,{0, "\n", 0, 0}}, {0x0007 ,{0, "\n", 0, 0}}, {0x0008 ,{0, "[SKIP]", 0, 1}}, {0x0009 ,{1, "[0x09:", 0, 2}},{0x000A ,{1, "[Goto:", 0, 2}}, {0x000B ,{1, "[Gosub:", 0, 2}},