Merge remote-tracking branch 'origin/claude/add-local-storage-muted-01MeqMQ9SBBLZrfcAEudhk92' into claude/add-local-storage-muted-01MeqMQ9SBBLZrfcAEudhk92
This commit is contained in:
@@ -175,11 +175,14 @@ public static class AdminManager
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Try common locations
|
// Try common locations
|
||||||
|
// GetSaveGameDir() returns the world folder (e.g., Saves/RWG/WorldName)
|
||||||
|
// serveradmin.xml is in the Saves folder, so we need to go up 2 levels
|
||||||
string[] possiblePaths = new[]
|
string[] possiblePaths = new[]
|
||||||
{
|
{
|
||||||
Path.Combine(GameIO.GetSaveGameDir(), "..", "serveradmin.xml"),
|
Path.Combine(GameIO.GetSaveGameDir(), "..", "..", "serveradmin.xml"), // Saves/serveradmin.xml (standard location)
|
||||||
Path.Combine(GameIO.GetSaveGameDir(), "serveradmin.xml"),
|
Path.Combine(GameIO.GetSaveGameDir(), "..", "serveradmin.xml"), // Saves/RWG/serveradmin.xml
|
||||||
"serveradmin.xml"
|
Path.Combine(GameIO.GetSaveGameDir(), "serveradmin.xml"), // Saves/RWG/WorldName/serveradmin.xml
|
||||||
|
"serveradmin.xml" // Working directory
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (string path in possiblePaths)
|
foreach (string path in possiblePaths)
|
||||||
|
|||||||
Reference in New Issue
Block a user