mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
if we can't show file browser, throw exception
This commit is contained in:
parent
51f17a6229
commit
07a67f73e5
1 changed files with 5 additions and 0 deletions
|
@ -293,6 +293,11 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
if (string.IsNullOrEmpty (path)) {
|
||||
// path is not set
|
||||
|
||||
// if we can't show file browser, throw exception
|
||||
if (F.IsInHeadlessMode || F.IsAppInEditMode)
|
||||
throw new System.InvalidOperationException("Game path is not set");
|
||||
|
||||
// show file browser to user to select path
|
||||
m_showFileBrowser = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue