summaryrefslogtreecommitdiff
path: root/core/project_settings.cpp
AgeCommit message (Collapse)Author
2018-10-24Fix .pck lookup for extensionless binary names with a dotRémi Verschelde
This was not a problem on Windows as binary names are guaranteed to end with '.exe', but on Unix systems binary extensions are purely cosmetic and thus optional, which is a problem when using `get_basename()` to lookup a potential '.pck' file, as it can fail on e.g. "My Game 2.0" (#15188). To fix this, ProjectSettings::setup now checks for both basename + '.pck' and filename + '.pck'. Fixes #15188, supersedes and closes #22755. Also took the opportunity to improve documentation on this core method.
2018-09-13Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde
Misc. typos
2018-09-12Misc. typosluz.paz
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-08-14Fixes initialization of action listgroud
2018-07-26Fix main scene file filterMattias Cibien
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-19-Project/Editor settings now use new inspectorJuan Linietsky
-Project/Editor settings now show tooltips properly -Settings thar require restart now will show a restart warning -Video driver is now visible all the time, can be changed easily -Added function to request current video driver
2018-07-18Fixed OS.has_feature not using custom feature tags.matthew1006
2018-07-15Global class names (and GDScript support for it)Juan Linietsky
2018-07-03Update resource file project settings on renameBenjamin
2018-06-27Fixed project settings overrides not using custom feature tags.matthew1006
2018-05-28Revert "Make the performance reporting update frequency customizable"Juan Linietsky
2018-05-18Make the performance reporting update frequency customizableHugo Locurcio
The default update frequency has been changed from 1000ms to 250ms.
2018-05-01Fix #17019 : overrides with unknown base settingManuel Moos
If at the time of the _GLOBAL_DEF call a setting itself was unknown, the function would always return the supplied default value instead of checking for overrides. This commit changes that, lookup now always happens which correctly takes overrides into account.
2018-04-16Allow actions to provide an analog valueGilles Roudiere
2018-03-16Merge pull request #16947 from Faless/ui_actionsFabio Alessandrelli
GUI elements ui_action usage, improvements
2018-03-12Fix non working action names containing whitespacesrobfram
Now the action name is quoted if it contains spaces. Also, quotation mark (") is added to the forbidden character list for action names, as it was also a bug. Fix #17322
2018-02-23Add two new default actions ui_end, ui_homeFabio Alessandrelli
Used by Slider and Scrollbar
2018-02-21Fix loading project.binary from PCK fileRémi Verschelde
Regression introduced in #16825. My logic was correct, but not the error code I was expecting. The error reporting in FileAccess likely needs a review too.
2018-02-19Improve error reporting of ProjectSettings::setup()Rémi Verschelde
And use it to better report errors in the console and project manager when a project.godot file is corrupted. Fixes #14963.
2018-01-18Fix typos in code and docs with codespellRémi Verschelde
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-11-26Allow customizing user:// path (folder in OS::get_data_path())Rémi Verschelde
This allows to specify any valid folder name (including with subfolders) to use as user:// on all platforms. The folder is constrained to the platform-specific OS::get_data_path() (typically what `XDG_DATA_HOME` resolves to). Fixes #13236.
2017-11-25Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky
wrong function, leading to unnecesary copy on writes and reduced performance.
2017-11-17Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde
Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
2017-11-14Move singleton management from ProjectSettings to EngineLeon Krause
2017-10-27Add an option to use zstd's recently introduced long range matching (off by ↵Ferenc Arn
default).
2017-10-10Made directory scan optionalBastiaanOlij
2017-10-09Fix trailing whitespaces in project settings header commentEmmanuel Leblond
2017-10-05Added the set/get_setting function in Editor/Project settings. Renamed has() ↵Juan Linietsky
to has_setting. Fixes #11844
2017-10-03fixed the OS.has_feature() API, and added support for 32 and 64.Juan Linietsky
2017-09-20Rename pos to position in user facing methods and variablesletheed
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
2017-09-17Fixed naming of pck fileBastiaan Olij
2017-09-13Merge pull request #11062 from BastiaanOlij/osx_datapackRémi Verschelde
Fixed loading package from resource folder, exporting textures to bun…
2017-09-10Add user data directory support for ProjectSettings::globalize_pathgeequlim
2017-09-08Fixed loading package from resource folder, exporting textures to bundle and ↵BastiaanOlij
added a bit of feedback for a debug compile
2017-09-01Fix files headerPoommetee Ketson
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-06Rename KEY_RETURN to KEY_ENTER and KEY_ENTER to KEY_KP_ENTERBojidar Marinov
Closes #7695
2017-07-26Fix mutating project.godotPedro J. Estébanez
Namely: - comment block lost on first save; - config_version doubled as 3 and null on second save; - format change on first save.
2017-07-25Add newline after config_version and fix custom_features hintRémi Verschelde
Fixes #9818.
2017-07-19-Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky
-Added system for feature overrides, it's pretty cool :)