Browse Source

Merge branch 'master' of https://github.com/okamstudio/godot

Juan Linietsky 10 years ago
parent
commit
dda60296d8
100 changed files with 242 additions and 214 deletions
  1. 1 1
      bin/tests/test_containers.cpp
  2. 1 1
      bin/tests/test_containers.h
  3. 1 1
      bin/tests/test_detailer.cpp
  4. 1 1
      bin/tests/test_detailer.h
  5. 1 1
      bin/tests/test_gdscript.cpp
  6. 1 1
      bin/tests/test_gdscript.h
  7. 1 1
      bin/tests/test_gui.cpp
  8. 1 1
      bin/tests/test_gui.h
  9. 1 1
      bin/tests/test_image.cpp
  10. 1 1
      bin/tests/test_image.h
  11. 1 1
      bin/tests/test_io.cpp
  12. 1 1
      bin/tests/test_io.h
  13. 1 1
      bin/tests/test_main.cpp
  14. 1 1
      bin/tests/test_main.h
  15. 1 1
      bin/tests/test_math.cpp
  16. 1 1
      bin/tests/test_math.h
  17. 1 1
      bin/tests/test_misc.cpp
  18. 1 1
      bin/tests/test_misc.h
  19. 1 1
      bin/tests/test_particles.cpp
  20. 1 1
      bin/tests/test_particles.h
  21. 1 1
      bin/tests/test_physics.cpp
  22. 1 1
      bin/tests/test_physics.h
  23. 3 3
      bin/tests/test_physics_2d.cpp
  24. 1 1
      bin/tests/test_physics_2d.h
  25. 1 1
      bin/tests/test_python.cpp
  26. 1 1
      bin/tests/test_python.h
  27. 8 2
      bin/tests/test_render.cpp
  28. 1 1
      bin/tests/test_render.h
  29. 1 1
      bin/tests/test_shader_lang.cpp
  30. 1 1
      bin/tests/test_shader_lang.h
  31. 1 1
      bin/tests/test_sound.cpp
  32. 13 13
      bin/tests/test_sound.h
  33. 1 1
      bin/tests/test_string.cpp
  34. 1 1
      bin/tests/test_string.h
  35. 1 1
      core/allocators.h
  36. 1 1
      core/array.cpp
  37. 1 1
      core/array.h
  38. 1 1
      core/balloon_allocator.h
  39. 1 1
      core/color.cpp
  40. 1 1
      core/color.h
  41. 1 1
      core/command_queue_mt.cpp
  42. 1 1
      core/command_queue_mt.h
  43. 1 1
      core/compressed_translation.cpp
  44. 1 1
      core/compressed_translation.h
  45. 2 1
      core/core_string_names.cpp
  46. 2 1
      core/core_string_names.h
  47. 1 1
      core/dictionary.cpp
  48. 1 1
      core/dictionary.h
  49. 1 1
      core/dvector.cpp
  50. 1 1
      core/dvector.h
  51. 1 1
      core/error_list.h
  52. 1 1
      core/error_macros.cpp
  53. 1 1
      core/error_macros.h
  54. 1 1
      core/event_queue.cpp
  55. 1 1
      core/event_queue.h
  56. 1 1
      core/fpstr.cpp
  57. 1 1
      core/fpstr.h
  58. 1 1
      core/global_constants.cpp
  59. 1 1
      core/global_constants.h
  60. 1 1
      core/globals.cpp
  61. 1 1
      core/globals.h
  62. 1 1
      core/hash_map.h
  63. 1 1
      core/hashfuncs.h
  64. 1 1
      core/image.cpp
  65. 1 1
      core/image.h
  66. 1 1
      core/image_quantize.cpp
  67. 1 1
      core/input_map.cpp
  68. 1 1
      core/input_map.h
  69. 1 1
      core/int_types.h
  70. 1 1
      core/io/compression.cpp
  71. 26 26
      core/io/compression.h
  72. 1 1
      core/io/config_file.cpp
  73. 1 1
      core/io/config_file.h
  74. 1 1
      core/io/file_access_buffered.cpp
  75. 1 1
      core/io/file_access_buffered.h
  76. 1 1
      core/io/file_access_buffered_fa.h
  77. 1 1
      core/io/file_access_compressed.cpp
  78. 74 74
      core/io/file_access_compressed.h
  79. 1 1
      core/io/file_access_memory.cpp
  80. 1 1
      core/io/file_access_memory.h
  81. 2 1
      core/io/file_access_network.cpp
  82. 1 1
      core/io/file_access_network.h
  83. 16 1
      core/io/file_access_pack.cpp
  84. 5 1
      core/io/file_access_pack.h
  85. 1 1
      core/io/file_access_zip.cpp
  86. 1 1
      core/io/http_client.cpp
  87. 1 1
      core/io/http_client.h
  88. 1 1
      core/io/image_loader.cpp
  89. 1 1
      core/io/image_loader.h
  90. 1 1
      core/io/ip.cpp
  91. 1 1
      core/io/ip.h
  92. 1 1
      core/io/ip_address.cpp
  93. 1 1
      core/io/ip_address.h
  94. 1 1
      core/io/json.cpp
  95. 1 1
      core/io/json.h
  96. 1 1
      core/io/marshalls.cpp
  97. 1 1
      core/io/marshalls.h
  98. 1 1
      core/io/packet_peer.cpp
  99. 1 1
      core/io/packet_peer.h
  100. 2 2
      core/io/resource_format_binary.cpp

+ 1 - 1
bin/tests/test_containers.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_containers.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_detailer.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_detailer.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gdscript.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gdscript.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gui.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gui.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_image.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_image.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_io.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_io.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_main.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_main.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_math.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_math.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_misc.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_misc.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_particles.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_particles.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_physics.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_physics.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 3 - 3
bin/tests/test_physics_2d.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -191,7 +191,7 @@ class TestPhysics2DMainLoop : public MainLoop {
 
 
 			Image image(convex_png);
 			Image image(convex_png);
 
 
-			body_shape_data[Physics2DServer::SHAPE_CONVEX_POLYGON].image=vs->texture_create_from_image(image);
+			body_shape_data[Physics2DServer::SHAPE_CUSTOM+1].image=vs->texture_create_from_image(image);
 
 
 			RID convex_polygon_shape = ps->shape_create(Physics2DServer::SHAPE_CONVEX_POLYGON);
 			RID convex_polygon_shape = ps->shape_create(Physics2DServer::SHAPE_CONVEX_POLYGON);
 
 
@@ -206,7 +206,7 @@ class TestPhysics2DMainLoop : public MainLoop {
 			arr.push_back(Point2(11,7)-sb);
 			arr.push_back(Point2(11,7)-sb);
 			ps->shape_set_data(convex_polygon_shape,arr);
 			ps->shape_set_data(convex_polygon_shape,arr);
 
 
-			body_shape_data[Physics2DServer::SHAPE_CONVEX_POLYGON].shape = convex_polygon_shape;
+			body_shape_data[Physics2DServer::SHAPE_CUSTOM+1].shape = convex_polygon_shape;
 
 
 		}
 		}
 
 

+ 1 - 1
bin/tests/test_physics_2d.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_python.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_python.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 8 - 2
bin/tests/test_render.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -33,6 +33,8 @@
 #include "print_string.h"
 #include "print_string.h"
 #include "os/os.h"
 #include "os/os.h"
 #include "quick_hull.h"
 #include "quick_hull.h"
+#include "os/keyboard.h"
+
 #define OBJECT_COUNT 50
 #define OBJECT_COUNT 50
 
 
 namespace TestRender {
 namespace TestRender {
@@ -59,10 +61,14 @@ class TestMainLoop : public MainLoop {
 	
 	
 	float ofs;
 	float ofs;
 	bool quit;
 	bool quit;
+protected:
+
+
 public:
 public:
 	virtual void input_event(const InputEvent& p_event) {
 	virtual void input_event(const InputEvent& p_event) {
 	
 	
-		
+		if (p_event.type==InputEvent::KEY && p_event.key.pressed)
+			quit=true;
 	}
 	}
 
 
 	virtual void init() {
 	virtual void init() {

+ 1 - 1
bin/tests/test_render.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_shader_lang.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_shader_lang.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_sound.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 13 - 13
bin/tests/test_sound.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -26,15 +26,15 @@
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
-#ifndef TEST_SOUND_H
-#define TEST_SOUND_H
-
-#include "os/main_loop.h"
-
-namespace TestSound {
-
-MainLoop* test();
-
-}
-
-#endif // TEST_SOUND_H
+#ifndef TEST_SOUND_H
+#define TEST_SOUND_H
+
+#include "os/main_loop.h"
+
+namespace TestSound {
+
+MainLoop* test();
+
+}
+
+#endif // TEST_SOUND_H

+ 1 - 1
bin/tests/test_string.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_string.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/allocators.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/array.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/array.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/balloon_allocator.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/color.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/color.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/command_queue_mt.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/command_queue_mt.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/compressed_translation.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/compressed_translation.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 2 - 1
core/core_string_names.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -42,6 +42,7 @@ CoreStringNames::CoreStringNames() {
 	_iter_init=StaticCString::create("_iter_init");
 	_iter_init=StaticCString::create("_iter_init");
 	_iter_next=StaticCString::create("_iter_next");
 	_iter_next=StaticCString::create("_iter_next");
 	_iter_get=StaticCString::create("_iter_get");
 	_iter_get=StaticCString::create("_iter_get");
+	get_rid=StaticCString::create("get_rid");
 
 
 
 
 }
 }

+ 2 - 1
core/core_string_names.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -56,6 +56,7 @@ public:
 	StringName _iter_init;
 	StringName _iter_init;
 	StringName _iter_next;
 	StringName _iter_next;
 	StringName _iter_get;
 	StringName _iter_get;
+	StringName get_rid;
 
 
 };
 };
 
 

+ 1 - 1
core/dictionary.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/dictionary.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/dvector.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/dvector.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/error_list.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/error_macros.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/error_macros.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/event_queue.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/event_queue.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/fpstr.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/fpstr.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/global_constants.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/global_constants.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/globals.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/globals.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/hash_map.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/hashfuncs.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/image.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/image.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/image_quantize.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/input_map.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/input_map.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/int_types.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/compression.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 26 - 26
core/io/compression.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -26,28 +26,28 @@
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
-#ifndef COMPRESSION_H
-#define COMPRESSION_H
-
-#include "typedefs.h"
-
-class Compression
-{
-public:
-
-	enum Mode {
-		MODE_FASTLZ,
-		MODE_DEFLATE
-	};
-
-
-	static int compress(uint8_t *p_dst, const uint8_t *p_src, int p_src_size,Mode p_mode=MODE_FASTLZ);
-	static int get_max_compressed_buffer_size(int p_src_size,Mode p_mode=MODE_FASTLZ);
-	static void decompress(uint8_t *p_dst, int p_dst_max_size, const uint8_t *p_src, int p_src_size,Mode p_mode=MODE_FASTLZ);
-
-	Compression();
-};
-
-
-
-#endif // COMPRESSION_H
+#ifndef COMPRESSION_H
+#define COMPRESSION_H
+
+#include "typedefs.h"
+
+class Compression
+{
+public:
+
+	enum Mode {
+		MODE_FASTLZ,
+		MODE_DEFLATE
+	};
+
+
+	static int compress(uint8_t *p_dst, const uint8_t *p_src, int p_src_size,Mode p_mode=MODE_FASTLZ);
+	static int get_max_compressed_buffer_size(int p_src_size,Mode p_mode=MODE_FASTLZ);
+	static void decompress(uint8_t *p_dst, int p_dst_max_size, const uint8_t *p_src, int p_src_size,Mode p_mode=MODE_FASTLZ);
+
+	Compression();
+};
+
+
+
+#endif // COMPRESSION_H

+ 1 - 1
core/io/config_file.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/config_file.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/file_access_buffered.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/file_access_buffered.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/file_access_buffered_fa.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/file_access_compressed.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 74 - 74
core/io/file_access_compressed.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -26,76 +26,76 @@
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 /*************************************************************************/
-#ifndef FILE_ACCESS_COMPRESSED_H
-#define FILE_ACCESS_COMPRESSED_H
-
-#include "io/compression.h"
-#include "os/file_access.h"
-
-class FileAccessCompressed : public FileAccess {
-
-	Compression::Mode cmode;
-	bool writing;
-	int write_pos;
-	uint8_t*write_ptr;
-	int write_buffer_size;
-	int write_max;
-	int block_size;
-	mutable bool read_eof;
-	mutable bool at_end;
-
-	struct ReadBlock {
-		int csize;
-		int offset;
-	};
-
-	mutable Vector<uint8_t> comp_buffer;
-	uint8_t *read_ptr;
-	mutable int read_block;
-	int read_block_count;
-	mutable int read_block_size;
-	mutable int read_pos;
-	Vector<ReadBlock> read_blocks;
-	int read_total;
-
-
-
-
-	String magic;
-	mutable Vector<uint8_t> buffer;
-	FileAccess *f;
-public:
-
-	void configure(const String& p_magic, Compression::Mode p_mode=Compression::MODE_FASTLZ, int p_block_size=4096);
-
-	Error open_after_magic(FileAccess *p_base);
-
-	virtual Error _open(const String& p_path, int p_mode_flags); ///< open a file
-	virtual void close(); ///< close a file
-	virtual bool is_open() const; ///< true when file is open
-
-	virtual void seek(size_t p_position); ///< seek to a given position
-	virtual void seek_end(int64_t p_position=0); ///< seek from the end of file
-	virtual size_t get_pos() const; ///< get position in the file
-	virtual size_t get_len() const; ///< get size of the file
-
-	virtual bool eof_reached() const; ///< reading passed EOF
-
-	virtual uint8_t get_8() const; ///< get a byte
-	virtual int get_buffer(uint8_t *p_dst, int p_length) const;
-
-	virtual Error get_error() const; ///< get last error
-
-	virtual void store_8(uint8_t p_dest); ///< store a byte
-
-	virtual bool file_exists(const String& p_name); ///< return true if a file exists
-
-	virtual uint64_t _get_modified_time(const String& p_file);
-
-
-	FileAccessCompressed();
-	virtual ~FileAccessCompressed();
-
-};
-
-#endif // FILE_ACCESS_COMPRESSED_H
+#ifndef FILE_ACCESS_COMPRESSED_H
+#define FILE_ACCESS_COMPRESSED_H
+
+#include "io/compression.h"
+#include "os/file_access.h"
+
+class FileAccessCompressed : public FileAccess {
+
+	Compression::Mode cmode;
+	bool writing;
+	int write_pos;
+	uint8_t*write_ptr;
+	int write_buffer_size;
+	int write_max;
+	int block_size;
+	mutable bool read_eof;
+	mutable bool at_end;
+
+	struct ReadBlock {
+		int csize;
+		int offset;
+	};
+
+	mutable Vector<uint8_t> comp_buffer;
+	uint8_t *read_ptr;
+	mutable int read_block;
+	int read_block_count;
+	mutable int read_block_size;
+	mutable int read_pos;
+	Vector<ReadBlock> read_blocks;
+	int read_total;
+
+
+
+
+	String magic;
+	mutable Vector<uint8_t> buffer;
+	FileAccess *f;
+public:
+
+	void configure(const String& p_magic, Compression::Mode p_mode=Compression::MODE_FASTLZ, int p_block_size=4096);
+
+	Error open_after_magic(FileAccess *p_base);
+
+	virtual Error _open(const String& p_path, int p_mode_flags); ///< open a file
+	virtual void close(); ///< close a file
+	virtual bool is_open() const; ///< true when file is open
+
+	virtual void seek(size_t p_position); ///< seek to a given position
+	virtual void seek_end(int64_t p_position=0); ///< seek from the end of file
+	virtual size_t get_pos() const; ///< get position in the file
+	virtual size_t get_len() const; ///< get size of the file
+
+	virtual bool eof_reached() const; ///< reading passed EOF
+
+	virtual uint8_t get_8() const; ///< get a byte
+	virtual int get_buffer(uint8_t *p_dst, int p_length) const;
+
+	virtual Error get_error() const; ///< get last error
+
+	virtual void store_8(uint8_t p_dest); ///< store a byte
+
+	virtual bool file_exists(const String& p_name); ///< return true if a file exists
+
+	virtual uint64_t _get_modified_time(const String& p_file);
+
+
+	FileAccessCompressed();
+	virtual ~FileAccessCompressed();
+
+};
+
+#endif // FILE_ACCESS_COMPRESSED_H

+ 1 - 1
core/io/file_access_memory.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/file_access_memory.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 2 - 1
core/io/file_access_network.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -254,6 +254,7 @@ FileAccessNetworkClient::~FileAccessNetworkClient() {
 		quit=true;
 		quit=true;
 		sem->post();
 		sem->post();
 		Thread::wait_to_finish(thread);
 		Thread::wait_to_finish(thread);
+		memdelete(thread);
 	}
 	}
 
 
 	memdelete(blockrequest_mutex);
 	memdelete(blockrequest_mutex);

+ 1 - 1
core/io/file_access_network.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 16 - 1
core/io/file_access_pack.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -107,6 +107,21 @@ PackedData::PackedData() {
 	add_pack_source(memnew(PackedSourcePCK));
 	add_pack_source(memnew(PackedSourcePCK));
 }
 }
 
 
+void PackedData::_free_packed_dirs(PackedDir *p_dir) {
+
+	for (Map<String,PackedDir*>::Element *E=p_dir->subdirs.front();E;E=E->next())
+		_free_packed_dirs(E->get());
+	memdelete(p_dir);
+}
+
+PackedData::~PackedData() {
+
+	for(int i=0;i<sources.size();i++) {
+		memdelete(sources[i]);
+	}
+	_free_packed_dirs(root);
+}
+
 
 
 //////////////////////////////////////////////////////////////////
 //////////////////////////////////////////////////////////////////
 
 

+ 5 - 1
core/io/file_access_pack.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -96,6 +96,8 @@ private:
 	static PackedData *singleton;
 	static PackedData *singleton;
 	bool disabled;
 	bool disabled;
 
 
+	void _free_packed_dirs(PackedDir *p_dir);
+
 public:
 public:
 
 
 	void add_pack_source(PackSource* p_source);
 	void add_pack_source(PackSource* p_source);
@@ -111,6 +113,7 @@ public:
 	_FORCE_INLINE_ bool has_path(const String& p_path);
 	_FORCE_INLINE_ bool has_path(const String& p_path);
 
 
 	PackedData();
 	PackedData();
+	~PackedData();
 };
 };
 
 
 class PackSource {
 class PackSource {
@@ -119,6 +122,7 @@ public:
 
 
 	virtual bool try_open_pack(const String& p_path)=0;
 	virtual bool try_open_pack(const String& p_path)=0;
 	virtual FileAccess* get_file(const String& p_path, PackedData::PackedFile* p_file)=0;
 	virtual FileAccess* get_file(const String& p_path, PackedData::PackedFile* p_file)=0;
+	virtual ~PackSource() {}
 };
 };
 
 
 class PackedSourcePCK : public PackSource {
 class PackedSourcePCK : public PackSource {

+ 1 - 1
core/io/file_access_zip.cpp

@@ -150,7 +150,7 @@ unzFile ZipArchive::get_file_handle(String p_file) const {
 
 
 bool ZipArchive::try_open_pack(const String& p_name) {
 bool ZipArchive::try_open_pack(const String& p_name) {
 
 
-	printf("opening pack %ls, %i, %i\n", p_name.c_str(), p_name.extension().nocasecmp_to("zip"), p_name.extension().nocasecmp_to("pcz"));
+	//printf("opening pack %ls, %i, %i\n", p_name.c_str(), p_name.extension().nocasecmp_to("zip"), p_name.extension().nocasecmp_to("pcz"));
 	if (p_name.extension().nocasecmp_to("zip") != 0 && p_name.extension().nocasecmp_to("pcz") != 0)
 	if (p_name.extension().nocasecmp_to("zip") != 0 && p_name.extension().nocasecmp_to("pcz") != 0)
 		return false;
 		return false;
 
 

+ 1 - 1
core/io/http_client.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/http_client.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/image_loader.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/image_loader.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/ip.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/ip.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/ip_address.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/ip_address.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/json.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/json.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/marshalls.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/marshalls.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/packet_peer.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
core/io/packet_peer.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 2 - 2
core/io/resource_format_binary.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */
@@ -390,7 +390,7 @@ Error ResourceInteractiveLoaderBinary::parse_variant(Variant& r_v)  {
 
 
 					if (path.find("://")==-1 && path.is_rel_path()) {
 					if (path.find("://")==-1 && path.is_rel_path()) {
 						// path is relative to file being loaded, so convert to a resource path
 						// path is relative to file being loaded, so convert to a resource path
-						path=Globals::get_singleton()->localize_path(res_path.get_base_dir()+"/"+path);
+						path=Globals::get_singleton()->localize_path(res_path.get_base_dir().plus_file(path));
 
 
 					}
 					}
 
 

Some files were not shown because too many files changed in this diff