diff options
| author | Juan Linietsky | 2017-07-19 17:00:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-07-19 17:06:03 -0300 |
| commit | 25678b1876816b9ccb14b2c92aef62f3b009f88f (patch) | |
| tree | 189f082d788f78e16f620b056d21249118883fc5 /main/tests | |
| parent | 89588d43349e496a9e05756d42ae87323d31269e (diff) | |
| download | godot-25678b1876816b9ccb14b2c92aef62f3b009f88f.tar.gz godot-25678b1876816b9ccb14b2c92aef62f3b009f88f.tar.zst godot-25678b1876816b9ccb14b2c92aef62f3b009f88f.zip | |
-Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
Diffstat (limited to 'main/tests')
| -rw-r--r-- | main/tests/test_io.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/tests/test_io.cpp b/main/tests/test_io.cpp index 698657608..f7c49c924 100644 --- a/main/tests/test_io.cpp +++ b/main/tests/test_io.cpp @@ -31,7 +31,7 @@ #ifdef MINIZIP_ENABLED -#include "core/global_config.h" +#include "core/project_settings.h" #include "io/resource_loader.h" #include "io/resource_saver.h" #include "os/dir_access.h" @@ -91,10 +91,10 @@ MainLoop *test() { ResourceSaver::save("test_data/rock.xml", texture); print_line("localize paths"); - print_line(GlobalConfig::get_singleton()->localize_path("algo.xml")); - print_line(GlobalConfig::get_singleton()->localize_path("c:\\windows\\algo.xml")); - print_line(GlobalConfig::get_singleton()->localize_path(GlobalConfig::get_singleton()->get_resource_path() + "/something/something.xml")); - print_line(GlobalConfig::get_singleton()->localize_path("somedir/algo.xml")); + print_line(ProjectSettings::get_singleton()->localize_path("algo.xml")); + print_line(ProjectSettings::get_singleton()->localize_path("c:\\windows\\algo.xml")); + print_line(ProjectSettings::get_singleton()->localize_path(ProjectSettings::get_singleton()->get_resource_path() + "/something/something.xml")); + print_line(ProjectSettings::get_singleton()->localize_path("somedir/algo.xml")); { |
