Mac OS X:我应该在哪里存储保存游戏作为捆绑交付的游戏? [英] Mac OS X: Where should I store save games for a game delivered as a bundle?

查看:105
本文介绍了Mac OS X:我应该在哪里存储保存游戏作为捆绑交付的游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Windows游戏移植到Mac OS X.我想知道我应该在哪里存储游戏数据,如保存的游戏,用户配置文件等,以及如何在C ++中以编程方式检索该路径?

I'm porting a windows game to Mac OS X. I was wondering where I should store game data such as saved games, user profiles, etc and how I can retrieve that path programmatically in C++?

游戏将作为指定的现代包发布此处

The game will be delivered as a "modern bundle" as specified here

推荐答案

将其保存在
〜/ Library / Application Support /您的游戏名称/

Save it under ~/Library/Application Support/Your Game Name/

其中〜代表玩游戏用户的主目录。

where "~" stands for the home directory of the user playing your game.

您可能希望将其改为: http://cocoadevcentral.com/articles /000084.php

You may want to give this a read: http://cocoadevcentral.com/articles/000084.php

这篇关于Mac OS X:我应该在哪里存储保存游戏作为捆绑交付的游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆