Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Investigate / add .gpr support #19

Open
itsacoderepo opened this issue Aug 16, 2021 · 0 comments
Open

Investigate / add .gpr support #19

itsacoderepo opened this issue Aug 16, 2021 · 0 comments
Assignees

Comments

@itsacoderepo
Copy link
Contributor

As discussed on discord, try to add support for .gpr files.

Snippet from discord (https://discord.com/channels/832209896089976854/832209896089976857/876924134351839243)

  try {
      projectManager = Some(new HeadlessGhidraProjectManager)

      if (inputFile.endsWith(".gpr")) {
        var projname = inputFile.substring(inputFile.lastIndexOf('/')+1, inputFile.lastIndexOf('.'))
        var projdir = inputFile.substring(0, inputFile.lastIndexOf('/'))
        println(s"Found existing Ghidra repo. Loading project $projname from $projdir")
        locator          = new ProjectLocator(projdir, projname)
        project = Some(projectManager.get.openProject(locator, true, true))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant