You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From here on most of these SDL projects will likely have some sort of persistent preferences, for example sound settings, high scores, or preferred resolutions.
It doesn't make sense to have to write a system to read and write these preferences to the file system for each individual project.
Add a new tool to the common directory with a header and implementation that manages reading and writing of persistent preferences to the file system.
The system should:
Be encapsulated and hide its implementation
Be ignorant of the exact nature of the preferences
Be passed the location to read/write the preferences
Provide a simple api that provides the following functions:
write(prefs)
read(prefs)
get(prefs, key)
put(prefs, key, value)
As hinted at above, the preferences system should either function similarly to, or delegate to a hashmap behind the scenes.
The text was updated successfully, but these errors were encountered:
From here on most of these SDL projects will likely have some sort of persistent preferences, for example sound settings, high scores, or preferred resolutions.
It doesn't make sense to have to write a system to read and write these preferences to the file system for each individual project.
Add a new tool to the common directory with a header and implementation that manages reading and writing of persistent preferences to the file system.
The system should:
The text was updated successfully, but these errors were encountered: