1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00
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
2014-02-17 21:54:26 +01:00
2014-02-09 22:10:30 -03:00
2014-02-09 22:10:30 -03:00
2014-02-09 22:10:30 -03:00
2014-02-09 22:10:30 -03:00
2014-02-12 22:21:47 +07:00
2014-02-09 22:10:30 -03:00
2014-02-12 22:08:27 +07:00
2014-02-13 22:15:18 +01:00
2014-02-09 22:10:30 -03:00

GODOT

The Engine

Godot is a fully featured, open source, MIT licensed, game engine. It focuses on having great tools, and a visual oriented workflow that can export to PC, Mobile and Web platforms with no hassle. The editor, language and APIs are feature rich, yet simple to learn, allowing you to become productive in a matter of hours.

About

Godot has been developed by Juan Linietsky and Ariel Manzur for several years, and was born as an in-house engine, used to publish several work-for-hire titles. Development is sponsored by OKAM Studio (http://www.okamstudio.com).

Godot is BETA. Collaborate!!

Having been developed as in-house means that the user experience may still not be ideal for everyone. The features needed to make a great game are there, but we really need your help to fix all the rough edges and improve usability (via feedback and/or code contributions). We know we are close to having an awesome, open source, game engine with nothing to envy from the best commercial offerings, but we can't do this alone. This is why Godot is now open source, so everyone can help us reach this goal.

Binary Downloads, Documentation, Community, etc.

Binary downloads, documentation, community, etc. can be found in Godot homepage:

http://www.godotengine.org

Compiling from Source

Compilation instructions for every platform can be found in the Wiki: http://www.godotengine.org/wiki/doku.php?id=advanced

Description
Languages
C++ 90.9%
C# 2%
C 1.9%
Java 1.7%
GLSL 1.1%
Other 2.4%