summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_system.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename the ".import" folder to ".godot/imported"Aaron Franke2020-09-281-7/+8
|
* Merge pull request #40229 from ChristopheLY/atlas-auto-reimportRémi Verschelde2020-07-101-0/+1
|\ | | | | auto re-import atlas, fixes #40047
| * auto re-import atlas, fixes #40047Chistpohe LY2020-07-101-0/+1
| |
* | Fix crash on project files import in EditorFileSystemPouleyKetchoupp2020-07-041-1/+1
| | | | | | | | Fixes #40017
* | Remove 32-bit String to_int methodAaron Franke2020-06-031-3/+3
|/
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-45/+89
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-137/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Replace NULL with nullptrlupoDharkael2020-04-021-30/+30
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-5/+5
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-2/+2
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Make file system scan more robustPedro J. Estébanez2020-02-101-6/+24
| | | | | | | | Previously, a change was missed if it happened while the scan was in progress and already past the affected location. Also: - Consider the scan changes thread on termination, in addition to the full scan one - Add FS-reported hidden to the check for hidden by the editor file system
* Remove duplicate WARN_PRINT macro.Marcel Admiraal2020-02-051-1/+1
|
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-4/+4
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Prevent crash when we can't write to editor cache or config pathRémi Verschelde2019-10-311-8/+7
| | | | | | | | | | | | | This can happen if users somehow got wrong user permissions assigned to their Godot cache, config or data paths (e.g. `~/.config/godot`). The error messages should give them a hint as to what the issue may be. Fixes #33199. There may be other situations that still lead to a crash, we need to review all uses of `FileAccess::open` with `FileAccess::WRITE` mode to ensure that proper pointer validation is done.
* Revert "Fix plugin script classes defined even if inactive."Rémi Verschelde2019-10-021-3/+0
|
* Merge pull request #32434 from willnationsdev/script-class-no-pluginsRémi Verschelde2019-09-301-0/+3
|\ | | | | Fix plugin script classes defined even if inactive.
| * Fix plugin script classes defined even if inactive.willnationsdev2019-09-301-0/+3
| |
* | Added some obvious errors explanationsqarmin2019-09-251-12/+13
|/
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-2/+1
| | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* DirAccess: Drop compat get_next(bool *is_dir) which was hiddenRémi Verschelde2019-07-251-6/+4
| | | | | | | | | Fixes this warning: ``` ./core/os/dir_access.h:74:17: warning: 'virtual String DirAccess::get_next(bool*)' was hidden [-Woverloaded-virtual] ``` Part of #30790.
* Merge pull request #29815 from NilsIrl/plus_file_1Rémi Verschelde2019-07-011-2/+2
|\ | | | | Replace ` + "/" + ` with `String::file_add()`
| * Replace ` + "/" + ` with `String::file_add()`Nils ANDRÉ-CHANG2019-06-231-2/+2
| |
* | Some code changed with Clang-Tidyqarmin2019-06-261-9/+3
|/
* fix file system not refresh on exFATXiaoLongHan2019-05-241-3/+3
|
* Fix typos with codespellRémi Verschelde2019-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Added ability for multiple images to be imported as an atlasJuan Linietsky2019-04-191-12/+297
| | | | | This adds support for groups in the import system, which point to a single file. Add property hint for saving files in file field
* Fixed issue where descriptor is left hanging, which causes file locked on ↵Juan Linietsky2019-02-271-4/+8
| | | | Windows, closes #26342
* -Properly handle missing ETC support on exportJuan Linietsky2019-02-261-12/+56
| | | | | -Added ability for resource importers to save metadata -Added ability for resource importers to validate depending on project settings
* Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-201-7/+7
| | | | Fixes #25316.
* Core: Ensure classes match their header filenameRémi Verschelde2019-02-121-1/+1
| | | | | | | | | | | | | | | Also drop some unused files. Renamed: - `core/dvector.h` -> `pool_vector.h` - `core/io/resource_import.h` -> `resource_importer.h` - `core/sort.h` -> `sort_array.h` - `core/string_db.h` -> `string_name.h` Dropped: - `core/allocators.h` - `core/os/shell.h` - `core/variant_construct_string.cpp`
* Fix code style issuesRémi Verschelde2019-01-261-3/+1
|
* Add function to obtain filesystem type from DirAccess.Juan Linietsky2019-01-211-1/+5
| | | | Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Added basic support for custom resource savers and loadersMarc Gilleron2018-12-151-0/+8
|
* Reworked how non-imported resources are reloaded on change, fixes #19852Juan Linietsky2018-11-201-2/+31
|
* Moved folding outside the resource files, now saved outside the project.Juan Linietsky2018-10-291-6/+0
|
* Fixes to baker, restored xatlas and fixed bake options.Juan Linietsky2018-10-051-0/+12
|
* Fix EditorSettings saving on draw callswillnationsdev2018-09-191-2/+0
|
* Refactor editor icon retrievalwillnationsdev2018-09-141-0/+1
|
* Merge pull request #21540 from YeldhamDev/image_reimp_error_fixRémi Verschelde2018-09-131-5/+9
|\ | | | | Fix error when reimporting an Image resource
| * Fix error when reimporting an Image resourceMichael Alexsander Silva Dias2018-09-071-5/+9
| |
* | Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ \ | | | | | | Misc. typos
| * | Misc. typosluz.paz2018-09-121-1/+1
| |/ | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* / Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-7/+7
|/ | | | | | 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.
* Add custom icons to script classes.Will Nations2018-08-141-8/+19
|
* Add toggle for favorites in create_root_dialog.willnationsdev2018-08-081-0/+2
|
* Global class names (and GDScript support for it)Juan Linietsky2018-07-151-7/+97
|
* Merge pull request #17420 from marcelofg55/fscache_err_checksRémi Verschelde2018-03-141-6/+14
|\ | | | | Added error checks for fscache saving