citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.47k stars 2.05k forks source link

tweak(client): move product info to shared file #2485

Closed Ehbw closed 2 months ago

Ehbw commented 4 months ago

Goal of this PR

Cleans up information about CFX products such as FiveM, RedM, LibertyM and FXServer into its own header file in shared. Allowing for it to be used across the entire project. Also refactors Social Club Version information into ROSSuffix.h with other ROS information.

How is this PR achieving the goal

By creating CfxProductInfo.h and placing information about each of CFX product such as PRODUCT_NAME(_LOWER) and CONTENT_NAME. Along with refactoring several files to make use of these. Also defining UPDATE_NAME for FiveM as it uses 'fivereborn' when checking for updates.

This PR applies to the following area(s)

FiveM, RedM, Server

Successfully tested on

Platforms: Windows

Checklist