Elin Decompiled Documentation EA 23.285 Nightly
Loading...
Searching...
No Matches
CorePath Class Reference

Classes

class  CorePackage
 
class  UI
 

Static Public Member Functions

static void Init ()
 

Static Public Attributes

const string Scene = "Scene/"
 
const string SceneProfile = "Scene/Profile/"
 
const string FowProfile = "Scene/Profile/Fow/"
 
const string SceneTemplate = "Scene/Template/"
 
const string Lut = "Scene/Profile/Lut/"
 
const string PostEffect = "Scene/Profile/PostEffect/"
 
const string Data_Raw = "Data/Raw/"
 
const string Map = "World/Map/"
 
const string MapGen = "World/Map/Gen/"
 
const string ZoneProfile = "World/Zone/Profile/"
 
const string Media = "Media/"
 
const string Gallery = "Media/Gallery/"
 
const string Anime = "Media/Anime/"
 
const string Sound = "Media/Sound/"
 
const string Effect = "Media/Effect/"
 
const string TextEffect = "Media/Text/"
 
const string Particle = "Media/Effect/Particle/"
 
const string Graphics = "Media/Graphics/"
 
const string Icon = "Media/Graphics/Icon/"
 
const string IconElement = "Media/Graphics/Icon/Element/"
 
const string IconAchievement = "Media/Graphics/Icon/Achievement/"
 
const string IconRecipe = "Media/Graphics/Icon/Recipe/"
 
const string Image = "Media/Graphics/Image/"
 
const string Deco = "Media/Graphics/Deco/"
 
const string Drama = "Media/Drama/"
 
const string DramaActor = "Media/Drama/Actor/"
 
const string BuildMenu = "UI/BuildMenu/"
 
const string Render = "Scene/Render/"
 
const string Actor = "Scene/Render/Actor/"
 
const string RenderData = "Scene/Render/Data/"
 
const string TC = "Scene/Render/Actor/Component/"
 
const string Hoard = "UI/Layer/Hoard/"
 
const string News = "UI/Layer/LayerNewspaper/"
 
static string packageCore
 
static string user
 
static string custom
 
static string modData
 
static string rootMod
 
static string rootExe
 

Properties

static string Text_Popup [get]
 
static string Text_DialogHelp [get]
 
static string DramaData [get]
 
static string DramaDataLocal [get]
 
static string ConfigFile [get]
 
static string VersionFile [get]
 
static string ShareSettingFile [get]
 
static string coreWidget [get]
 
static string WidgetSave [get]
 
static string LotTemplate [get]
 
static string SceneCustomizerSave [get]
 
static string ZoneSave [get]
 
static string ZoneSaveUser [get]
 
static string MapPieceSave [get]
 
static string MapPieceSaveUser [get]
 
static string RootData [get]
 
static string RootSave [get]
 
static string RootSaveCloud [get]
 
static string Temp [get]
 
static string PathIni [get]
 
static string PathBackupOld [get]
 
static string PathBackup [get]
 
static string PathBackupCloud [get]
 

Detailed Description

Definition at line 6 of file CorePath.cs.

Member Function Documentation

◆ Init()

static void CorePath.Init ( )
inlinestatic

Definition at line 224 of file CorePath.cs.

225 {
226 Debug.Log("Init CorePath");
227 rootMod = Application.dataPath + "/../Package/";
228 if (!Directory.Exists(rootMod))
229 {
230 rootMod = Application.streamingAssetsPath + "/Package/";
231 }
232 rootExe = Application.dataPath + "/../";
233 packageCore = rootMod + "_Elona/";
234 user = Application.persistentDataPath + "/User/";
235 custom = Application.persistentDataPath + "/Custom/";
236 modData = Application.persistentDataPath + "/Mod/";
237 if (!Application.isPlaying)
238 {
239 return;
240 }
241 if (!Directory.Exists(PathBackup))
242 {
243 if (Directory.Exists(PathBackupOld))
244 {
245 Directory.Move(PathBackupOld, PathBackup);
246 }
247 else
248 {
250 }
251 }
255 string text = (Application.isEditor ? (Application.streamingAssetsPath + "/User/") : (rootExe + "User/"));
256 if (!Application.isEditor || !Directory.Exists(user))
257 {
258 Debug.Log("Copy User Folder:" + text + " to " + user);
260 IO.CopyAll(text, user, overwrite: false);
262 }
263 text = (Application.isEditor ? (Application.streamingAssetsPath + "/Custom/") : (rootExe + "Custom/"));
264 Debug.Log("Copy Custom Folder:" + text + " to " + custom);
266 IO.CopyAll(text, custom, overwrite: false);
267 }
static string rootMod
Definition: CorePath.cs:173
static string custom
Definition: CorePath.cs:167
static string PathBackupOld
Definition: CorePath.cs:218
static string RootSave
Definition: CorePath.cs:210
static string packageCore
Definition: CorePath.cs:161
static string RootSaveCloud
Definition: CorePath.cs:212
static string SceneCustomizerSave
Definition: CorePath.cs:198
static string PathBackup
Definition: CorePath.cs:220
static string rootExe
Definition: CorePath.cs:176
static string PathBackupCloud
Definition: CorePath.cs:222
static string modData
Definition: CorePath.cs:170
static string user
Definition: CorePath.cs:164
Definition: IO.cs:11
static void CopyAll(string fromPath, string toPath, bool overwrite=true)
Definition: IO.cs:338
static void CreateDirectory(string path)
Definition: IO.cs:377

References custom, Debug, modData, packageCore, PathBackup, PathBackupCloud, PathBackupOld, rootExe, rootMod, RootSave, RootSaveCloud, SceneCustomizerSave, and user.

Referenced by CoreEmu.Awake(), and Core.SetReferences().

Member Data Documentation

◆ Actor

const string CorePath.Actor = "Scene/Render/Actor/"
static

Definition at line 150 of file CorePath.cs.

◆ Anime

const string CorePath.Anime = "Media/Anime/"
static

Definition at line 118 of file CorePath.cs.

◆ BuildMenu

const string CorePath.BuildMenu = "UI/BuildMenu/"
static

Definition at line 146 of file CorePath.cs.

◆ custom

string CorePath.custom
static

◆ Data_Raw

const string CorePath.Data_Raw = "Data/Raw/"
static

Definition at line 106 of file CorePath.cs.

◆ Deco

const string CorePath.Deco = "Media/Graphics/Deco/"
static

Definition at line 140 of file CorePath.cs.

◆ Drama

const string CorePath.Drama = "Media/Drama/"
static

Definition at line 142 of file CorePath.cs.

◆ DramaActor

const string CorePath.DramaActor = "Media/Drama/Actor/"
static

Definition at line 144 of file CorePath.cs.

◆ Effect

const string CorePath.Effect = "Media/Effect/"
static

Definition at line 122 of file CorePath.cs.

◆ FowProfile

const string CorePath.FowProfile = "Scene/Profile/Fow/"
static

Definition at line 98 of file CorePath.cs.

◆ Gallery

const string CorePath.Gallery = "Media/Gallery/"
static

Definition at line 116 of file CorePath.cs.

◆ Graphics

const string CorePath.Graphics = "Media/Graphics/"
static

Definition at line 128 of file CorePath.cs.

◆ Hoard

const string CorePath.Hoard = "UI/Layer/Hoard/"
static

Definition at line 156 of file CorePath.cs.

◆ Icon

const string CorePath.Icon = "Media/Graphics/Icon/"
static

Definition at line 130 of file CorePath.cs.

◆ IconAchievement

const string CorePath.IconAchievement = "Media/Graphics/Icon/Achievement/"
static

Definition at line 134 of file CorePath.cs.

◆ IconElement

const string CorePath.IconElement = "Media/Graphics/Icon/Element/"
static

Definition at line 132 of file CorePath.cs.

◆ IconRecipe

const string CorePath.IconRecipe = "Media/Graphics/Icon/Recipe/"
static

Definition at line 136 of file CorePath.cs.

◆ Image

const string CorePath.Image = "Media/Graphics/Image/"
static

Definition at line 138 of file CorePath.cs.

◆ Lut

const string CorePath.Lut = "Scene/Profile/Lut/"
static

Definition at line 102 of file CorePath.cs.

◆ Map

const string CorePath.Map = "World/Map/"
static

Definition at line 108 of file CorePath.cs.

◆ MapGen

const string CorePath.MapGen = "World/Map/Gen/"
static

Definition at line 110 of file CorePath.cs.

◆ Media

const string CorePath.Media = "Media/"
static

Definition at line 114 of file CorePath.cs.

◆ modData

string CorePath.modData
static

Definition at line 170 of file CorePath.cs.

Referenced by Init().

◆ News

const string CorePath.News = "UI/Layer/LayerNewspaper/"
static

Definition at line 158 of file CorePath.cs.

◆ packageCore

string CorePath.packageCore
static

Definition at line 161 of file CorePath.cs.

Referenced by ModPackage.AddOrUpdateLang(), and Init().

◆ Particle

const string CorePath.Particle = "Media/Effect/Particle/"
static

Definition at line 126 of file CorePath.cs.

◆ PostEffect

const string CorePath.PostEffect = "Scene/Profile/PostEffect/"
static

Definition at line 104 of file CorePath.cs.

◆ Render

const string CorePath.Render = "Scene/Render/"
static

Definition at line 148 of file CorePath.cs.

◆ RenderData

const string CorePath.RenderData = "Scene/Render/Data/"
static

Definition at line 152 of file CorePath.cs.

◆ rootExe

string CorePath.rootExe
static

Definition at line 176 of file CorePath.cs.

Referenced by Init(), LayerFeedback.OnInit(), and ModManager.SaveLoadOrder().

◆ rootMod

string CorePath.rootMod
static

Definition at line 173 of file CorePath.cs.

Referenced by Init(), ContentConfigOther.OpenPackage(), and Core.StartCase().

◆ Scene

const string CorePath.Scene = "Scene/"
static

Definition at line 94 of file CorePath.cs.

◆ SceneProfile

const string CorePath.SceneProfile = "Scene/Profile/"
static

Definition at line 96 of file CorePath.cs.

◆ SceneTemplate

const string CorePath.SceneTemplate = "Scene/Template/"
static

Definition at line 100 of file CorePath.cs.

◆ Sound

const string CorePath.Sound = "Media/Sound/"
static

Definition at line 120 of file CorePath.cs.

◆ TC

const string CorePath.TC = "Scene/Render/Actor/Component/"
static

Definition at line 154 of file CorePath.cs.

◆ TextEffect

const string CorePath.TextEffect = "Media/Text/"
static

Definition at line 124 of file CorePath.cs.

◆ user

string CorePath.user
static

◆ ZoneProfile

const string CorePath.ZoneProfile = "World/Zone/Profile/"
static

Definition at line 112 of file CorePath.cs.

Property Documentation

◆ ConfigFile

string CorePath.ConfigFile
staticget

Definition at line 186 of file CorePath.cs.

◆ coreWidget

string CorePath.coreWidget
staticget

Definition at line 192 of file CorePath.cs.

Referenced by WidgetMascot.OnActivate().

◆ DramaData

string CorePath.DramaData
staticget

Definition at line 182 of file CorePath.cs.

Referenced by Chara.ShowDialog().

◆ DramaDataLocal

string CorePath.DramaDataLocal
staticget

Definition at line 184 of file CorePath.cs.

Referenced by DramaManager.Load().

◆ LotTemplate

string CorePath.LotTemplate
staticget

Definition at line 196 of file CorePath.cs.

Referenced by LayerEditHouse.OnInit(), and LayerEditHouse.RefreshTemplates().

◆ MapPieceSave

string CorePath.MapPieceSave
staticget

◆ MapPieceSaveUser

string CorePath.MapPieceSaveUser
staticget

◆ PathBackup

string CorePath.PathBackup
staticget

◆ PathBackupCloud

string CorePath.PathBackupCloud
staticget

Definition at line 222 of file CorePath.cs.

Referenced by GameIO.DeleteGame(), Init(), GameIO.MakeBackup(), and LayerLoadGame.RefreshInfo().

◆ PathBackupOld

string CorePath.PathBackupOld
staticget

Definition at line 218 of file CorePath.cs.

Referenced by Init().

◆ PathIni

string CorePath.PathIni
staticget

Definition at line 216 of file CorePath.cs.

Referenced by Core.GetElinIni(), and Core.SaveElinIni().

◆ RootData

string CorePath.RootData
staticget

◆ RootSave

◆ RootSaveCloud

string CorePath.RootSaveCloud
staticget

◆ SceneCustomizerSave

string CorePath.SceneCustomizerSave
staticget

◆ ShareSettingFile

string CorePath.ShareSettingFile
staticget

Definition at line 190 of file CorePath.cs.

◆ Temp

string CorePath.Temp
staticget

Definition at line 214 of file CorePath.cs.

Referenced by Core.Awake(), and Core.OnApplicationQuit().

◆ Text_DialogHelp

string CorePath.Text_DialogHelp
staticget

Definition at line 180 of file CorePath.cs.

◆ Text_Popup

string CorePath.Text_Popup
staticget

Definition at line 178 of file CorePath.cs.

Referenced by PopupManager.Add().

◆ VersionFile

string CorePath.VersionFile
staticget

Definition at line 188 of file CorePath.cs.

Referenced by CoreConfig.Save(), and CoreConfig.TryLoadConfig().

◆ WidgetSave

string CorePath.WidgetSave
staticget

Definition at line 194 of file CorePath.cs.

Referenced by WidgetManager.DialogLoad(), and WidgetManager.DialogSave().

◆ ZoneSave

string CorePath.ZoneSave
staticget

◆ ZoneSaveUser

string CorePath.ZoneSaveUser
staticget

The documentation for this class was generated from the following file: