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

Author Topic: How to load something from a directory  (Read 1815 times)

0 Members and 1 Guest are viewing this topic.

LITcandlez

  • Newbie
  • *
  • Posts: 2
    • View Profile
How to load something from a directory
« on: August 09, 2012, 04:57:05 am »
It there a way that when you use (!audio.OpenFromFile("audio.ogg")) you could load it from a directory instead of just dragging all the music and other resources into the same folder as the exe? I am using Visual Studio 2010 and SFML 2.0

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: How to load something from a directory
« Reply #1 on: August 09, 2012, 07:59:30 am »
audio.OpenFromFile("a_directory/audio.ogg")
Laurent Gomila - SFML developer

 

anything