Jump to content

Creating a process in LUA


SpiderPig
 Share

Go to solution Solved by SpiderPig,

Recommended Posts

So I'm starting my process in a LUA extension for the editor.

if process == nil then
	process = CreateProcess("B:/ShaderMaster.exe")
end

I get an error stating it couldn't find one of the files the app needs.

ProcessError.png.ee18c2890d5f5049b74e384e2d52f682.png

It's showing that it's looking in a folder relative to the project the editor has open.  I need it to look relative to the process exe because that's where all of it's files are.  I think I can edit my software to fix this but I'm wondering if this can be done simply when creating the process?  Startup arguments perhaps?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...