Skip to content

Commit

Permalink
Auto quit fix (#63)
Browse files Browse the repository at this point in the history
* fixed auto-quit
  • Loading branch information
amazingalek authored Jan 16, 2020
1 parent 2398965 commit 198712e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OWML.Launcher/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace OWML.Launcher
{
public class App
{
private const string Version = "0.3.28";
private const string Version = "0.3.29";

private readonly IOwmlConfig _owmlConfig;
private readonly IModConsole _writer;
Expand Down
7 changes: 6 additions & 1 deletion OWML.ModHelper/OwmlBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ namespace OWML.ModHelper
{
public class OwmlBehaviour : MonoBehaviour
{
void OnApplicationQuit()
private void Start()
{
DontDestroyOnLoad(gameObject);
}

private void OnApplicationQuit()
{
ModConsole.Instance.WriteLine(Constants.QuitKeyPhrase);
}
Expand Down
2 changes: 1 addition & 1 deletion OWML.SampleMods/OWML.EnableDebugMode/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"name": "EnableDebugMode",
"uniqueName": "Alek.EnableDebugMode",
"version": "0.2",
"owmlVersion": "0.3.28"
"owmlVersion": "0.3.29"
}
2 changes: 1 addition & 1 deletion OWML.SampleMods/OWML.LoadCustomAssets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"name": "LoadCustomAssets",
"uniqueName": "Alek.LoadCustomAssets",
"version": "0.4",
"owmlVersion": "0.3.28"
"owmlVersion": "0.3.29"
}

0 comments on commit 198712e

Please sign in to comment.