virtualx-engine/core
Vinzenz Feenstra 339f332892 Fix for Issue #108
Entering a somethign in the 'Path field' triggers the
`_path_changed` signal being triggered.
This in turn calls Globals::localize_path(const String& p_path) with the
currently entered string.
localize_path then is replacing backslashes with slashes and calls
afterwards `String::simplify_path`

String::simplify_path is checking wheter a string starts with:

- res://
- local://
- user://

If any of those is true it removes this section.

However, if any of the first letters of those are matching begins_with
returns true, which is wrong. It should only return true if the whole
string is matched at the beginning.

This caused the whole desaster and lead localize_path into an endless loop
because out of `u` suddenly became user:// which it then tried again to
localize and so on.

This fix, fixes the root of the problem which is begins_with which should
not return true if not the whole search string was matched.

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
2014-02-17 21:54:26 +01:00
..
bind GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
io -project settings are saved when changed 2014-02-15 21:16:33 -03:00
math -fixed bug in Button now exporting font property 2014-02-15 02:02:41 -03:00
os -fixed export templates not loading/exporting on Windows 2014-02-13 18:03:28 -03:00
allocators.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
array.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
array.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
balloon_allocator.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
color.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
color.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
command_queue_mt.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
command_queue_mt.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
compressed_translation.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
compressed_translation.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
core_string_names.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
core_string_names.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
dictionary.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
dictionary.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
dvector.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
dvector.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
error_list.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
error_macros.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
error_macros.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
event_queue.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
event_queue.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
fpstr.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
fpstr.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
global_constants.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
global_constants.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
globals.cpp -fixed bug in Button now exporting font property 2014-02-15 02:02:41 -03:00
globals.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
hash_map.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
hashfuncs.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
image.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
image.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
image_quantize.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
input_map.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
input_map.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
int_types.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
list.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
make_binders.py GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
map.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
message_queue.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
message_queue.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
method_bind.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
method_bind.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
multi_bucket_array.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
object.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
object.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
object_type_db.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
object_type_db.h -fixed export templates not loading/exporting on Windows 2014-02-13 18:03:28 -03:00
packed_data_container.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
packed_data_container.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
pair.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
pair.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
path_db.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
path_db.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
path_remap.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
path_remap.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
pool_allocator.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
pool_allocator.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
print_string.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
print_string.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
ref_ptr.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
ref_ptr.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
reference.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
reference.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
register_core_types.cpp -fixed export templates not loading/exporting on Windows 2014-02-13 18:03:28 -03:00
register_core_types.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
res_ptr.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
res_ptr.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
resource.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
resource.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
rid.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
rid.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
ring_buffer.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
safe_refcount.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
safe_refcount.h -fixed export templates not loading/exporting on Windows 2014-02-13 18:03:28 -03:00
script_debugger_debugger.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
script_debugger_local.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
script_debugger_local.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
script_debugger_remote.cpp -fixed export templates not loading/exporting on Windows 2014-02-13 18:03:28 -03:00
script_debugger_remote.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
script_language.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
script_language.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
SCsub GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
self_list.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
set.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
simple_type.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
sort.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
string_db.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
string_db.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
translation.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
translation.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
typedefs.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
ucaps.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
undo_redo.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
undo_redo.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
ustring.cpp Fix for Issue #108 2014-02-17 21:54:26 +01:00
ustring.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
variant.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
variant.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
variant_call.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
variant_call_bind.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
variant_op.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
vector.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
vmap.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
vmap.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
vset.cpp GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
vset.h GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00