Skip to content

Commit

Permalink
Fix newName
Browse files Browse the repository at this point in the history
  • Loading branch information
mobile46 committed Mar 6, 2020
1 parent 5b47252 commit a01d98c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion de4dot.code/renamer/ResourceRenamer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ void RenameResources(List<TypeInfo> renamedTypes) {
continue;
if (newNames.ContainsKey(resource))
continue;
var newName = info.type.TypeDef.FullName + (resource.Name.EndsWith(".g.resources") ? ".g.resources" : ".resources");
var newTypeName = info.type.TypeDef.FullName;
var newName = newTypeName + resource.Name.String.RemoveBackslash().Substring(oldFullName.Length);
newNames[resource] = new RenameInfo(resource, info, newName);

Logger.v("Renamed resource in resources: {0} => {1}", Utils.RemoveNewlines(resource.Name), newName);
Expand Down

0 comments on commit a01d98c

Please sign in to comment.