File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ constexpr std::string_view tokens[] = {
3636int find_token (std::string_view str) {
3737 if (str.size () < 5 || str[0 ] != ' ?' ) return -1 ;
3838 int idx;
39- switch (str[1 ] + str[4 ]) {
40- case ' a ' + ' i' : idx = 0 ; break ;
41- case ' d ' + ' a' : idx = 1 ; break ;
42- case ' d ' + ' t' : idx = 2 ; break ;
43- case ' l ' + ' a' : idx = 3 ; break ;
44- case ' s ' + ' i' : idx = 4 ; break ;
45- case ' t ' + ' p' : idx = 5 ; break ;
46- case ' u ' + ' r' : idx = 6 ; break ;
47- case ' v ' + ' e' : idx = 7 ; break ;
48- case ' s ' + ' t' : idx = 8 ; break ;
39+ switch (str[2 ] + str[4 ]) {
40+ case ' u ' + ' i' : idx = 0 ; break ;
41+ case ' a ' + ' a' : idx = 1 ; break ;
42+ case ' i ' + ' t' : idx = 2 ; break ;
43+ case ' o ' + ' a' : idx = 3 ; break ;
44+ case ' c ' + ' i' : idx = 4 ; break ;
45+ case ' e ' + ' p' : idx = 5 ; break ;
46+ case ' s ' + ' r' : idx = 6 ; break ;
47+ case ' i ' + ' e' : idx = 7 ; break ;
48+ case ' t ' + ' t' : idx = 8 ; break ;
4949 default : return -1 ;
5050 }
5151 return str.starts_with (tokens[idx]) ? idx : -1 ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ namespace agi {
2222// / Class for handling everything path-related in Aegisub
2323class Path {
2424 // / Token -> Path map
25- std::array<fs::path, 8 > paths;
25+ std::array<fs::path, 9 > paths;
2626
2727 // / Platform-specific code to fill in the default paths, called in the constructor
2828 void FillPlatformSpecificPaths ();
You can’t perform that action at this time.
0 commit comments