Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #354 from jebedaia360/2.1.01
Browse files Browse the repository at this point in the history
fix for run/main_scene setting
  • Loading branch information
Jeremi360 authored May 25, 2020
2 parents 63b28c6 + 400132b commit adadfd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions addons/Rakugo/lib/project_settings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var pso := app + "/config/project_settings_override"

func _ready() -> void:
load_cfg()


func get_def_cfg_path() -> String:
if not cfg_path:
Expand Down Expand Up @@ -56,7 +56,7 @@ func set_setting(path:String, value) -> void:
if cfg_loaded:
cfg.set_value(app, path, value)

if path != "config/name":
if not( path in ["config/name", "run/main_scene"]):
return

ProjectSettings.set_setting(app + "/" + path, value)
6 changes: 3 additions & 3 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ _global_script_class_icons={

[application]

config/name="Rakugo Testing Kit"
run/main_scene="res://test/Test.tscn"
config/project_settings_override="res://test/rakugo.cfg"
config/name="New Rakugo Game"
run/main_scene="res://game/Start/Start.tscn"
config/project_settings_override="res://game/rakugo.cfg"
boot_splash/image="res://graphics/splash.png"
boot_splash/bg_color=Color( 0, 0, 0, 1 )
config/icon="res://graphics/window_icon.png"
Expand Down

0 comments on commit adadfd7

Please sign in to comment.