summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-03-12General code cleanupsThorbjørn Lindeijer1-29/+18
* Use default member initializers * Use range-based for loops * Avoid needless pointer references for ShopItem::mDuplicates * Removed type aliases that are only used once or twice * Removed more unused includes * Removed some unused functions * Removed superfluous .c_str() * Rely on default copy and assignment operators for Vector class * Use std::unique_ptr in some places * Removed duplicated mPlayerMoney updating in SellDialog * Removed duplicated Game::handleInput call * Removed unused SDLInput::mMouseInWindow * Removed remnant of manual widget positioning in HelpWindow * Removed superfluous initialization of static pointers
2024-03-02General code cleanupsThorbjørn Lindeijer1-18/+12
* Don't needlessly store or return raw pointers in BeingInfo * Less copying, more moving * Less else after return * Make AddDEF a template instead of a macro * Removed some unused includes * Use range-based for loops
2024-02-27Added VSync and windowed fullscreen optionsThorbjørn Lindeijer1-3/+2
The configuration and setup UI were adjusted to the new options. This also fixes issues in applying new video settings. Default resolution was changed from 800x600 to 1280x720. VSync is enabled by default while FPS limit was disabled. Display aspect ratio for the resolution options. I had to work around some macOS issues: * Don't change window size when it appears to be "maximized", since it just changes the rendering area while leaving the window maximized. * Unset fullscreen display mode temporarily to allow changing resolutions, otherwise the rendering area no longer matches the screen and mouse input is also off. * Removed SDL_WINDOW_ALLOW_HIGHDPI for now because it causes issues on macOS, since we're not actually handling the scaling factor. A Video class and an SDLGraphics subclass were split off from Graphics. This setup has Less duplication and leaves the OpenGLGraphics and SDLGraphics better separated. Fixes #57 Fixes #58
2024-02-22General code cleanupsThorbjørn Lindeijer1-1/+1
* Use default member initializers * Use range-based loops * Don't use 'else' after 'return' * Removed some unused includes * Construct empty strings with std::string() instead of "" * Clear strings with .clear() instead of assigning "" * Check whether strings are empty with .empty() instead of comparing to "" * Removed redundant initializations
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-7/+5
modernize-loop-convert modernize-deprecated-headers
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-13/+13
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-16Renamed some file names for consistency with the class namesThorbjørn Lindeijer1-3/+1
This was already done by ManaPlus. It's a good idea anyway and it makes comparing the code a little easier. Reviewed-by: Yohann Ferreira
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-15/+15
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Channels to Mana::Event::ChannelThorbjørn Lindeijer1-1/+1
Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-1/+1
Acked-by: Jared Adams
2010-11-13Replace config listeners with the event systemChuck Miller1-20/+4
Reviewed-by: Jared Adams
2010-09-27Centralized String to bool conversion into the client.Yohann Ferreira1-1/+1
The former XML::getBoolProperty() had a potential memleak and was unsafe when dealing with unknown values. Reviewed-by: CodyMartin. Resolves: Mana-Mantis #213.
2010-09-15Improve speed in configuration get methods.Andrei Karas1-69/+76
Small code style changes Reviewed-by: Bertram. Resolves: Mana-Mantis #227.
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-0/+120
Please note that I didn't turned all the getValue() call into new ones, simply because I have to have config object initiated which is not forcefully the case the branding file. Resolves: Manasource Mantis #170.
2010-07-17Fix handing configuration files that don't exist yetJared Adams1-5/+5
Reviewed-by: trapdoor
2010-07-11Made the different hard-coded paths and files be now taken from theYohann Ferreira1-14/+11
data/paths.xml configuration file. Also added default gui theme path in branding and default wallpaper path and file searched respectively in the branding and paths.xml files. Hard-coded values are still used as fallbacks. Resolves: Manasource Mantis #148. Reviewed-by: jaxad0127.
2010-03-17Allow branding to bypass server listJared Adams1-1/+1
Reviewed-by: Bernd Wachter
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-12Standardize header orderJared Adams1-1/+2
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2010-01-10Change code styleAndrei Karas1-15/+23
2009-04-13Some cleanup of the Configuration interfaceBjørn Lindeijer1-17/+23
Mainly avoid all the convertions from integer to float and then to string and also back from string to float and then to integer.
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-1/+1
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.
2009-02-15Removed unnecessary parenthesis at constructorsBjørn Lindeijer1-1/+1
When not passing any parameters to constructors, there is no reason for using parenthesis.
2009-02-09Merged with Aethyra master as of 2009-02-09Bjørn Lindeijer1-2/+0
Conflicts: A lot of files...
2009-02-09Merged with Aethyra master as of 2009-01-27Bjørn Lindeijer1-5/+1
Conflicts: Almost everywhere.
2009-02-07Some more include cleanups.Ira Rice1-2/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-15Style cleanups throughout most of the code. Splitting function type fromIra Rice1-2/+0
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-09Code style cleanupIra Rice1-8/+4
Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-13Code style reformattingBjørn Lindeijer1-10/+7
Got rid of "void" in functions that take no arguments and removed the newline after the return type of a method in many places.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-5/+1
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-05-14Added ability to define friends, players you want to ignore or disregard andBjørn Lindeijer1-51/+136
configure whether trading is allowed. Based on new popup code, configuration improvements to store hierarchical data and a table model.
2007-10-23Merged changesets 3653, 3655-3657, 3659-3560, 3671-3672 from trunk to Bjørn Lindeijer1-7/+6
0.0. Mostly memory leak fixes by Guillaume.
2007-04-23Merged Björn Steinbrinks improvements at the xml parsing from trunk version.Philipp Sehmisch1-7/+11
2006-08-05Some cleanups, mostly lowering indentation levels.Björn Steinbrink1-28/+28
2006-03-19Unreverted latest change by Doener due to my lack of proper communication ↵Eugenio Favalli1-4/+3
abilities.
2006-03-19Reverted changeset r2269 (toString) as requested by ElvenProgrammer.Björn Steinbrink1-3/+4
2006-03-18Added a toString conversion function.Björn Steinbrink1-4/+3
2006-02-24Another bunch of cosmetic cleanups, ie mostly typedefs...Björn Steinbrink1-33/+17
2005-08-26Remove dependency on math.hBjörn Steinbrink1-14/+3
2005-08-25Made our drawImage() method respect the clip area from the guichan graphics ↵Björn Steinbrink1-2/+4
part. Removed some (now) obsolete code. Fixed compilation errors.
2005-08-25Fixed line length in ChangeLog and some other small changes.Bjørn Lindeijer1-14/+5
2005-08-17Removed special #ifdefs for libxml2 linking issues in Win32.Eugenio Favalli1-7/+0
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-9/+7