Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to package libraries in a way that lets others run my executable?  (Read 8554 times)

0 Members and 3 Guests are viewing this topic.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: How to package libraries in a way that lets others run my executable?
« Reply #15 on: February 20, 2015, 09:25:52 am »
You're right, I did post a question regarding this on the D forum a few hours ago.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: How to package libraries in a way that lets others run my executable?
« Reply #16 on: February 20, 2015, 08:31:40 pm »
Figured it out. I hand made a bundle, then to load resources I had to use some custom paths.

For my custom paths:
Code: [Select]
string path = thisExePath();
int index = to!int(path.lastIndexOf("/"));
if (!GameFont.loadFromFile(path[0 .. index]~"/vertiup2.ttf")) {
writeln("Font failed to load");
}

Problem solved. I'll attach the bundle if anyone wants to edit it for their projects.

Bundle: http://cl.ly/121f0j0d273S