mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 15:02:54 +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
|
||||
rn.ToolTipText = f.FullPath;
|
||||
rn.Tag = f;
|
||||
f.TreeNode = rn;
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
@ -1978,7 +1979,8 @@ namespace CodeWalker
|
||||
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();
|
||||
string fullpath = rootpath + relpath;
|
||||
|
||||
@ -2037,7 +2039,8 @@ namespace CodeWalker
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user