Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ _readProps()

static string ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._readProps ( )
inlinestaticprivate

Definition at line 390 of file GameSenseConnection.cs.

391 {
392 string path = _getPropsPath();
393 string result = null;
394 try
395 {
396 if (File.Exists(path))
397 {
398 result = File.ReadAllText(path);
399 return result;
400 }
401 _logErrorMsg("Could not read server props file, because it can't be found");
402 return result;
403 }
404 catch (Exception e)
405 {
406 _logException("Could not read server props file", e);
407 return result;
408 }
409 }
static bool Exists([NotNullWhen(true)] string? path)
Definition File.cs:97
static string ReadAllText(string path)
Definition File.cs:246

References ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._getPropsPath(), ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._logErrorMsg(), ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._logException(), System.IO.File.Exists(), and System.IO.File.ReadAllText().

Referenced by ReLogic.Peripherals.RGB.SteelSeries.GameSenseConnection._getServerPort().