mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
-Changed most project settings in the engine, so they have major and minor categories.
-Changed SectionedPropertyEditor to support this -Renamed Globals singleton to GlobalConfig, makes more sense. -Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
This commit is contained in:
parent
9e477babb3
commit
0f7af4ea51
109 changed files with 847 additions and 789 deletions
|
|
@ -37,7 +37,7 @@ String DirAccess::_get_root_path() const {
|
|||
|
||||
switch(_access_type) {
|
||||
|
||||
case ACCESS_RESOURCES: return Globals::get_singleton()->get_resource_path();
|
||||
case ACCESS_RESOURCES: return GlobalConfig::get_singleton()->get_resource_path();
|
||||
case ACCESS_USERDATA: return OS::get_singleton()->get_data_dir();
|
||||
default: return "";
|
||||
}
|
||||
|
|
@ -204,10 +204,10 @@ String DirAccess::fix_path(String p_path) const {
|
|||
|
||||
case ACCESS_RESOURCES: {
|
||||
|
||||
if (Globals::get_singleton()) {
|
||||
if (GlobalConfig::get_singleton()) {
|
||||
if (p_path.begins_with("res://")) {
|
||||
|
||||
String resource_path = Globals::get_singleton()->get_resource_path();
|
||||
String resource_path = GlobalConfig::get_singleton()->get_resource_path();
|
||||
if (resource_path != "") {
|
||||
|
||||
return p_path.replace_first("res:/",resource_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue