mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
De-C++-ify struct ScreenSettings
This includes: - Removing the constructor in favor of actually being able to see that there's an actual function called being made initializing the struct - Removing the use of a reference in Screen::init() in favor of using a pointer - Adding the struct qualifier everywhere (it's not much typing), although technically you could typedef it in C, but I'd rather much not typedef just to remove a tag qualifier
This commit is contained in:
@@ -165,20 +165,20 @@ public:
|
||||
|
||||
void unlocknum(int t);
|
||||
|
||||
void loadstats(ScreenSettings* screen_settings);
|
||||
void loadstats(struct ScreenSettings* screen_settings);
|
||||
|
||||
bool savestats(const ScreenSettings* screen_settings, bool sync = true);
|
||||
bool savestats(const struct ScreenSettings* screen_settings, bool sync = true);
|
||||
bool savestats(bool sync = true);
|
||||
|
||||
void deletestats(void);
|
||||
|
||||
void deserializesettings(tinyxml2::XMLElement* dataNode, ScreenSettings* screen_settings);
|
||||
void deserializesettings(tinyxml2::XMLElement* dataNode, struct ScreenSettings* screen_settings);
|
||||
|
||||
void serializesettings(tinyxml2::XMLElement* dataNode, const ScreenSettings* screen_settings);
|
||||
void serializesettings(tinyxml2::XMLElement* dataNode, const struct ScreenSettings* screen_settings);
|
||||
|
||||
void loadsettings(ScreenSettings* screen_settings);
|
||||
void loadsettings(struct ScreenSettings* screen_settings);
|
||||
|
||||
bool savesettings(const ScreenSettings* screen_settings);
|
||||
bool savesettings(const struct ScreenSettings* screen_settings);
|
||||
bool savesettings(void);
|
||||
|
||||
bool savestatsandsettings(void);
|
||||
|
||||
Reference in New Issue
Block a user