|
-
Jan 3rd, 2000, 07:34 AM
#1
Thread Starter
Member
in my program i want to play sounds that would be in the same directory as my prog., but the user can just put the thing in any freakin file they want how the heck is my game gonna know where the sound is. like if i specify in my game that rollerrink.mid is in C:\program files\mygame\gamesounds\rollerrink.mid, but the user puts the game in D:\mycrap\games i got\crappy games then it all get jacked up!
-
Jan 3rd, 2000, 08:02 AM
#2
Hyperactive Member
you may be able to use app.path to find out where you game is. You can then find the folder relative to your game.
you need to make sure that the music folder is installed the same way relative to your app
ex
D:\program files\mygame contains the .exe
D:\program files\mygame\gamesounds contains the music
app.path will retrive the path regardless if it is G:\hi\how\are\you\mygame\
------------------
I am so skeptacle, I can hardly believe it!
-
Jan 3rd, 2000, 09:29 AM
#3
Thread Starter
Member
Thanks man! I tried to do Me.path, but with no luck!
-
Jan 3rd, 2000, 11:01 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|