游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2273|回复: 3

新手提问,关于渲染设置文件加载 失败?

[复制链接]

1

主题

3

帖子

13

积分

新手上路

Rank: 1

积分
13
发表于 2013-2-21 09:23:03 | 显示全部楼层 |阅读模式
        if( !m_pRoot->restoreConfig() )                // 从渲染设置文件加载设置
        {
                if( !m_pRoot->showConfigDialog() )                // 用户选择加载设置
                        return false;
        }

DEBUG ,restoreConfig()失败,,showConfigDialog() 弹出对话框内容为空,不知道问题在哪,
奇怪的是,直接执行exe文件restoreConfig()返回真!


1

主题

3

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2013-2-21 09:29:04 | 显示全部楼层
补充一下,开发环境 VS2008 + win7 OGRE版本 好像是1.63

1

主题

3

帖子

13

积分

新手上路

Rank: 1

积分
13
 楼主| 发表于 2013-2-21 09:42:18 | 显示全部楼层
问题解决,在官网上找到答案,希望后来者能看到这

Re: Empty Rendering Subsystem dialog, plugins.cfg not found
by Adiss » Wed Jan 04, 2012 2:59 am

If you're using Visual Studio, then typically this is due to your working directory being incorrect. You can find the working directory in Project Properties->Configuration Properties->Debugging->Working Directory.

By default, Visual Studio sets this to $(ProjectDir). You will want to set this to $(TargetDir).

Hope that helps!

201

主题

1437

帖子

1963

积分

金牌会员

Rank: 6Rank: 6

积分
1963
QQ
发表于 2013-2-22 15:43:51 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-2-27 02:59

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表