summaryrefslogtreecommitdiffstats
path: root/core/io/file_access_pack.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PCK: Set VERSION_PATCH in header, factor out header magicJoost Heitbrink2020-01-061-9/+5
| | | | | | | | | | | | Unify pack file version and magic to avoid hardcoded literals. `version.py` now always includes `patch` even for the first release in a new stable branch (e.g. 3.2). The public name stays without the patch number, but `Engine.get_version_info()` already included `patch == 0`, and we can remove some extra handling of undefined `VERSION_PATCH` this way. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* 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.
* Fix small memory leak in PackedSourcePCK::try_open_packqarmin2019-10-031-2/+14
|
* Merge pull request #32291 from Dragoncraft89/add_load_resource_flagRémi Verschelde2019-09-251-6/+7
|\ | | | | Add flag to control the replacement of files by ProjectSettings.load_resource_pack
| * Add flag to control the replacement of files by ↵Florian Kothmeier2019-09-251-6/+7
| | | | | | | | ProjectSettings.load_resource_pack
* | Added some obvious errors explanationsqarmin2019-09-251-1/+1
|/
* DirAccessPack: Fix dir_exists and file_exists for res:// pathsRémi Verschelde2019-08-171-1/+5
| | | | | | | Both methods check against containers using relative paths as index, so the `res://` part needs to be stripped. Fixes #26009.
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-8/+5
| | | | | | | | | 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?)
* Add embedded PCK option to PC platformsPedro J. Estébanez2019-07-031-1/+1
| | | | | | The basic point is as in 2.1 (appending the PCK into the executable), but this implementation also patches a dedicated section in the ELF/PE executable so that it matches the appended data perfectly. The usage of integer types is simplified in existing code; namely, using plain `int` for small quantities.
* Enable warnings=extra on clang and GCC testers.marxin2019-04-021-1/+1
| | | | And remove 2 warnings from warnings=extra.
* Add function to obtain filesystem type from DirAccess.Juan Linietsky2019-01-211-0/+4
| | | | 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!
* User more correct plus file on get_current_dir.Juan Linietsky2018-11-081-1/+1
|
* Fix warnings on release builds (not DEBUG_ENABLED)Rémi Verschelde2018-10-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes the following Clang 5 warnings: ``` modules/bmp/image_loader_bmp.cpp:46:60: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] modules/bmp/image_loader_bmp.cpp:48:61: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] drivers/png/image_loader_png.cpp:231:20: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] scene/gui/graph_edit.cpp:1045:8: warning: comparison of constant 0 with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare] core/class_db.cpp:812:13: warning: unused variable 'check' [-Wunused-variable] core/io/file_access_pack.cpp:172:11: warning: unused variable 'ver_rev' [-Wunused-variable] core/math/bsp_tree.cpp:195:13: warning: unused variable 'plane' [-Wunused-variable] core/math/bsp_tree.cpp:168:6: warning: unused variable 'plane_count' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:685:10: warning: unused variable 'ok' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:706:10: warning: unused variable 'ok' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:755:19: warning: unused variable 'var_type' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:1306:12: warning: unused variable 'err' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:158:15: warning: unused function '_get_var_type' [-Wunused-function] modules/gdscript/gdscript_parser.cpp:750:20: warning: unused variable 'lv' [-Wunused-variable] modules/gdscript/gdscript_parser.cpp:59:15: warning: unused function '_find_function_name' [-Wunused-function] scene/main/node.cpp:2489:13: warning: unused function '_Node_debug_sn' [-Wunused-function] ```
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+2
| | | | | | 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.
* Fix listing files inside directory in pack filePedro J. Estébanez2018-03-181-1/+5
| | | | | | | When adding a directory path to the inventory of the pack, an empty file name was being added to the file list. That made `Directory.get_ntext()` signal end-of-list too early so that files in a subdirectory were missed. Fixes #15801. Helps with #16798.
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | 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.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-071-3/+3
|
* Extract logging logicRuslan Mustakov2017-09-251-0/+5
| | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* Rename pos to position in user facing methods and variablesletheed2017-09-201-4/+4
| | | | | | | | | | | 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.
* Fix using enum as bool valueHein-Pieter van Braam2017-09-071-2/+2
| | | | | | This warning actually hid a bug. The value of ERR_INVALID_DATA is actually 30, returning this as a bool returns true while false was required.
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Moved member variables from constructor to initialization listWilson E. Alvarez2017-08-081-4/+3
|
* Fix infinite loop in DirAccessPack::get_current_dir()Pedro J. Estébanez2017-05-041-5/+4
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-129/+108
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-211-3/+3
| | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* Fixed dir access return value, changed it to Error like all other funcsJuan Linietsky2017-01-141-2/+2
|
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Fix root path resolution on PCK fileGeorge Marques2016-09-031-0/+2
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* Fix segment violation MINIZIP_ENABLEDDaniel T. Borelli2015-05-061-1/+3
|
* -Changed Godot exit to be clean.Juan Linietsky2015-04-201-0/+15
| | | | | -Added more debug information on memory cleanliness on exit (if run with -v) -Fixed several memory leaks, fixes #1731, fixes #755
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* New option to show/hide hidden filesrollenrolm2015-03-211-0/+4
|
* Small Issues & MaintenanceJuan Linietsky2014-08-011-2/+7
| | | | | | | | | -=-=-=-=-=-=-=-=-=-=-=-=-= -Begin work on Navigation Meshes (simple pathfinding for now, will improve soon) -More doc on theme overriding -Upgraded OpenSSL to version without bugs -Misc bugfixes
* Add DirAccess:dir_exist apimarynate2014-05-251-0/+5
|
* -Added OpenSSL and HTTPS supportJuan Linietsky2014-04-281-0/+1
| | | | | -Built-in version of the library for Windows, Android and iOS (other OSs use system one) -Small fixes all around
* -fix bug in cache for atlas import/exportJuan Linietsky2014-03-131-1/+0
| | | | | | | | | | -fix some menus -fixed bug in out transition curves -detect and remove file:/// in collada -remove multiscript for now -remove dependencies on mouse in OS, moved to Input -avoid fscache from screwing up (fix might make it slower, but it works) -funcref was missing, it's there now
* -fixed bug in Button now exporting font propertyJuan Linietsky2014-02-151-3/+8
| | | | | | | | -made GUI Theme editor usable -editor does not allow to export or create .pck in the same path as a project -changed .pck format (lacked support for versioning so couldn't change it), previous was causing crashes and is now incompatible, just re-export. -will not look for .pck files recursively, was causing unexpected behaviors -fixed execution of Godot in paths with non unicode characters in Windows, OSX and Linux.
* -fixed export templates not loading/exporting on WindowsJuan Linietsky2014-02-131-2/+6
| | | | | | | | | | | | -fixed TouchScreenButton with stretch2d -fixed(?) OSX crash on startup (test!!) -compilation fixes on windows -CollisionPolygon editor works again -find buttons en find dialog -TileMap editor cleanup (removed "error", made nicer) -viewport flicker fixed -make .scn default extension for saving scenes -export the rest of the network classes to gdscript
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+469