Author Topic: Calling all ocaml programmers...  (Read 1224 times)

Offline Loriel

  • Planewalker
  • *****
  • Posts: 390
  • Gender: Male
    • Loriel's Downloads
Calling all ocaml programmers...
« on: February 01, 2005, 03:08:47 AM »
I'm currently trying to convert the Tutu source for Mac, but there's one particular naming convention that is causing me problems.  Apparently, the BG2 executable in Windows is called BGMain.exe whether it is the SOA or TOB application.  The MacPlay developers made things more confusing for us on the Mac side.  Here's what I mean:

Baldur's Gate II Mac OS X  (this is the OSX version of SOA)
Baldur's Gate II                   (this is the pre-OSX version of SOA)
Baldur's Gate II                   (this is the OSX version of TOB)

There's no pre-OSX version of TOB, so we don't have to worry about that, but you can't simply look for a file called "Baldur's Gate II".  Now, Tutu v4 simply looked for "Baldur's Gate II Mac OS X" which meant that anyone who had TOB installed was out of luck.  What I need to know is, how can I check for the existance of a file and assign it to a variable that I can use in place of "BGMain.exe".  If variables won't work, then how about putting a function in there that returns with the string of the game's name.  For example, in bash:

Code: [Select]
app="Baldur's Gate II"
osx=" Mac OS X"

if [ -e "$app$osx" ]; then
elif [[ -e "$app" && -e "$bif" ]]; then

Also, I'm assuming that since this is a Mac-only issue, that it should go in the src/, but if any thinks differently please tell me.


With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: