mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-08-20 17:09:19 +08:00
Fix for RPF Explorer unable to navigate to newly created RPF/folder in game root
This commit is contained in:
parent
5203c6b793
commit
feee9ccb10
@ -741,6 +741,7 @@ namespace CodeWalker
|
|||||||
var rn = MainTreeView.Nodes.Add(f.Path, f.Name, 0, 0); //ROOT imageIndex
|
var rn = MainTreeView.Nodes.Add(f.Path, f.Name, 0, 0); //ROOT imageIndex
|
||||||
rn.ToolTipText = f.FullPath;
|
rn.ToolTipText = f.FullPath;
|
||||||
rn.Tag = f;
|
rn.Tag = f;
|
||||||
|
f.TreeNode = rn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
@ -1978,7 +1979,8 @@ namespace CodeWalker
|
|||||||
if (!IsFilenameOk(fname)) return; //new name contains invalid char(s). don't do anything
|
if (!IsFilenameOk(fname)) return; //new name contains invalid char(s). don't do anything
|
||||||
|
|
||||||
|
|
||||||
string relpath = (CurrentFolder.Path ?? "") + "\\" + fname;
|
string cpath = (string.IsNullOrEmpty(CurrentFolder.Path) ? "" : CurrentFolder.Path + "\\");
|
||||||
|
string relpath = cpath + fname.ToLowerInvariant();
|
||||||
var rootpath = GTAFolder.GetCurrentGTAFolderWithTrailingSlash();
|
var rootpath = GTAFolder.GetCurrentGTAFolderWithTrailingSlash();
|
||||||
string fullpath = rootpath + relpath;
|
string fullpath = rootpath + relpath;
|
||||||
|
|
||||||
@ -2037,7 +2039,8 @@ namespace CodeWalker
|
|||||||
{
|
{
|
||||||
fname = fname + ".rpf";//make sure it ends with .rpf
|
fname = fname + ".rpf";//make sure it ends with .rpf
|
||||||
}
|
}
|
||||||
string relpath = (CurrentFolder.Path ?? "") + "\\" + fname.ToLowerInvariant();
|
string cpath = (string.IsNullOrEmpty(CurrentFolder.Path) ? "" : CurrentFolder.Path + "\\");
|
||||||
|
string relpath = cpath + fname.ToLowerInvariant();
|
||||||
|
|
||||||
|
|
||||||
RpfEncryption encryption = RpfEncryption.OPEN;//TODO: select encryption mode
|
RpfEncryption encryption = RpfEncryption.OPEN;//TODO: select encryption mode
|
||||||
|
Loading…
Reference in New Issue
Block a user