Skip to content

Root items first character cut off #323

Description

@jayrickaby

Describe the Bug

Creating a VPK from a folder while being inside said folder (i.e the current directory) results in the created VPK having the first letter of its root items cutoff. This does not occur when you are in the parent directory and select the same folder.
An example of what happens is that "materials", "models", and "mod.json" folders and file get the first letter cutoff, resulting in "aterials", "odels", and "od.json"
Image

Screencast_20260806_105721.webm

To Reproduce

  1. File -> Create From Folder -> VPK
  2. Set any of the settings to anything
  3. Go inside the folder you want to turn into a VPK, and make sure the current directory is what is being used
  4. Save it somewhere nice
  5. Open it, and observe that the first letter has been cut off for each root folder/file item

VPKEdit Version

VPKEdit v5.0.0-beta.4

Operating System

Operating System: EndeavourOS, Kernel: Linux 7.1.5-arch1-2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions