Solaire / GLC

Lightweight, console-based, tool which automatically detects installed games and displays them to the user.
GNU General Public License v3.0
17 stars 3 forks source link

Encapsulate the CGame frequency modifiers #2

Closed Solaire closed 3 years ago

Solaire commented 4 years ago

At the moment, any code with access to the CGame class is able to increment and decrement the frequency counters of an instance. While it's not something urgent, it would be a safe and good practice to encapsulate the two functions 'IncrementFrequency()' and 'DecimateFrequency()' so that they can only be called from the outer CGameData class (similarly to how the class can only instantiated from CGameData)

Solaire commented 3 years ago

Considering the entire CGame class is being refactored to support the database, this issue can be closed.