mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 17:12:35 +08:00
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:
@ -33,7 +33,7 @@ namespace big
|
||||
if (kick)
|
||||
{
|
||||
g_fiber_pool->queue_job([player] {
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("multikick")))->call(player, {});
|
||||
dynamic_cast<player_command*>(command::get("multikick"_J))->call(player, {});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user