Oh, ok. So to recap:Games run from a read-only location to prevent users from allowing malicious s…
I mean it in a context "game allows to run from read-only location" which means storing settings &…
But users choose where to install the game, not developers. I don't understand what do you mean by…
Yes, exactly. Game developers can prevent this by allowing main user (admin/you) to install game i…
Do you mean like: "oh, if you want free Minecraft skins then download this program from this websi…
Also, why do game developers have to care about security anyway? If I make a game that isn't compe…
Oh, it makes sense now. But isn't steam they make their Progam Files folder writeable by everyone …
It’s that windows can’t trust that you’re game isn’t going to do malicious things, so it j…
But then you should install the whole game in a special folder, rather than just the saved files. …
What is somewhere that I'm not allowed to write to? Many locations. Like root of C:\ drive. Or Pro…
You just have a struct storing the settings values and load it on startup, then apply your setting…
An alternative I use to what mmozeiko said is to always create a new file with a different name. I…
If we're talking about actually writing to file, then there is one thing that almost all games do …
This ‘pattern’ seems to work pretty good You just have a struct storing the settings values a…
HH does not have any user settings, I would guess it probably won't have any settings. As to why g…
There are a lot of games where the settings aren't being updated live but only when the player pres…
Just adding this recent blog post from Matt Pharr that talks about uniform float pseudo random num…
Thanks. Do you know of a good place to find Clang flag list with descriptions of what they do ? Ed…
Not sure if this adds anything than what’s been suggested, it’s a text editor (very basic) tha…
I'm aware only of clang's -Wdouble-promotion warning for this. Don't think others have any warning…
It will work fine in this case. It won't work fine if you have virtual methods - because that mean…
While I was testing a floating point to string function, I initialized a double variable with a fl…
So what will happen if I do base = derived; in clang? It's the first option. If Base has any paddi…
Which part? Relying on specific offsets? Yes.
So is this considered undefined behavior?
You are correct, yes it is 16. Because clang decided to not have padding at end of base class. Wha…
Thank you for the suggestion! I had not heard of a structured buffer, so I may give that approach …
Thanks for letting me know.
For some reason, clang said sizeof T is 16, or am I reading it incorrectly
It's the first option. If Base has any padding, the Derived type will include it's padding members…