refactor: switch RAGE_JOAAT with string literal functions (#2806)

Why? Shorter to write and removes the macro usage

I used the following regex to find all occurrences:
```r
RAGE_JOAAT\("(.*?)"\)
```
then the following to replace it all:
```r
"$1"_J
```
This commit is contained in:
Andreas Maerten
2024-03-12 09:42:11 +01:00
committed by GitHub
parent 10fc7a5e13
commit e07601347d
89 changed files with 1788 additions and 1788 deletions

View File

@ -22,11 +22,11 @@ namespace lua::gui
switch (hash)
{
case RAGE_JOAAT("title"): m_font = big::g.window.font_title; break;
case RAGE_JOAAT("subtitle"): m_font = big::g.window.font_sub_title; break;
case RAGE_JOAAT("small"): m_font = big::g.window.font_small; break;
case RAGE_JOAAT("icon"): m_font = big::g.window.font_icon; break;
case "title"_J: m_font = big::g.window.font_title; break;
case "subtitle"_J: m_font = big::g.window.font_sub_title; break;
case "small"_J: m_font = big::g.window.font_small; break;
case "icon"_J: m_font = big::g.window.font_icon; break;
default: m_font = nullptr; break;
}
}
}
}