@@ -13,14 +13,14 @@ void clear_screen()
13
13
std::cout << " \033 [2J\033 [1;1H" ;
14
14
}
15
15
16
- void sleep (int ms)
16
+ void sleep (std::chrono::milliseconds ms)
17
17
{
18
- std::this_thread::sleep_for (std::chrono::milliseconds (ms) );
18
+ std::this_thread::sleep_for (ms );
19
19
}
20
20
21
- void slow_print (std::string str, int ms)
21
+ void slow_print (const std::string& str, std::chrono::milliseconds ms)
22
22
{
23
- for (const char & c : str)
23
+ for (char c : str)
24
24
{
25
25
std::cout << c;
26
26
sleep (ms);
@@ -86,7 +86,7 @@ std::vector<std::string> read_file(const std::filesystem::path& path)
86
86
return lines;
87
87
}
88
88
89
- void print_enum_table (std::vector<std::string> table, std::string header)
89
+ void print_enum_table (const std::vector<std::string>& table, const std::string& header)
90
90
{
91
91
// +----------------------------------------------------------+
92
92
// | HEADER |
@@ -101,7 +101,6 @@ void print_enum_table(std::vector<std::string> table, std::string header)
101
101
std::string horizontal_line = utils::style (std::string (" +" ).append (std::string (width - 2 , ' -' )).append (" +" ), border_color);
102
102
103
103
std::cout << horizontal_line << ' \n ' ;
104
- upper (header);
105
104
std::cout << border << kt::format_str (" {}{}" , header, std::string (width - 3 - header.length (), ' ' )) << border << ' \n ' ;
106
105
107
106
// clang-format off
@@ -112,7 +111,6 @@ void print_enum_table(std::vector<std::string> table, std::string header)
112
111
113
112
for (std::size_t i = 0 ; i < table.size (); ++i)
114
113
{
115
- lower (table[i]);
116
114
std::cout << padded_string (i + 1 , table[i], border) << ' \n ' ;
117
115
}
118
116
@@ -151,7 +149,7 @@ Manifest check_manifest(const std::filesystem::path& path)
151
149
manifest.game_ready = json[" game_ready" ].as <bool >();
152
150
manifest.duplicates = json[" duplicates" ].as <std::vector<int >>();
153
151
manifest.files = json[" files" ].as <std::vector<std::string>>();
154
- manifest.asset_dir = path.parent_path () / std::filesystem::path ( " assets" ) ;
152
+ manifest.asset_dir = path.parent_path () / " assets" ;
155
153
}
156
154
}
157
155
else
0 commit comments