Checking if the app is being run from a locked volume

Member
Posts: 161
Joined: 2005.07
Post: #16
ravuya Wrote:Thing I don't like about this is that it's now harder for the user to remove the game fully once you're done with it; the save game files and persistent information (config) files are still kicking around your hard-drive even after you pitch the application
Good, keep AppZapper in business. Rasp
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #17
FindFolder in Carbon or NSHomeDirectory in Cocoa.
Quote this message in a reply
Member
Posts: 86
Joined: 2005.01
Post: #18
Er, yup. I actually edited my post just before you responded. Wink Didn't see the second page.

Anyway, I have another problem, but I'll save you the trouble of going back a page and just repeat it: I have an STL string that I build that contains the path. How do I turn this PROPERLY into a Unicode string that I can hand to FSCreateDirectoryUnicode? It seems to create an insane Chinese directory otherwise.

Newest game: Glow, a sci-fi RPG with lots of zombie bashing. Get it: OS X
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #19
Why not build a UTF-8 string and call mkdir instead Wink
Quote this message in a reply
Member
Posts: 86
Joined: 2005.01
Post: #20
I wanted to use the OS X API code, just in case something were to change under the hood. But I'll try it with POSIX API for now.

Newest game: Glow, a sci-fi RPG with lots of zombie bashing. Get it: OS X
Quote this message in a reply
Member
Posts: 86
Joined: 2005.01
Post: #21
All right, it worked! Thanks everyone Smile

Newest game: Glow, a sci-fi RPG with lots of zombie bashing. Get it: OS X
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  porting weaker to stronger type checking C? WhatMeWorry 5 3,942 Jan 13, 2005 09:26 PM
Last Post: WhatMeWorry