说一下自定义布局(custom_layout)的配置方法
citra吧
全部回复
仅看楼主
level 1
aicool_1 楼主
1L留空
2020年04月11日 22点04分 1
level 1
aicool_1 楼主
很久没有关注过模拟器这类东西了,没想到3ds模拟器已经挺成熟的了。
稍微折腾了一下,感觉有必要把自定义布局custom_layout单独拿出来说一下,好像没看到人写,又有人问的样子。
PC版canary1629配置文件在\user\config\qt-config.ini
(注意:并非每个模拟器配置文件夹位置都一样,别的改版如valentin的配置文件在user\vvanelslande-config\qt-config.ini,这就是有人说复制了别人的参数没有用的原因之一,根本没找对配置文件的路径)
参数本身并不复杂,[Layout]这一段的参数如下:
[Layout]
render_3d\default=true
render_3d=0
factor_3d\default=true
factor_3d=0
pp_shader_name\default=true
pp_shader_name=none (builtin)
filter_mode\default=true
filter_mode=true
layout_option=3
swap_screen\default=true
swap_screen=false
upright_screen\default=true
upright_screen=false
custom_layout\default=true
custom_layout=false
custom_top_left\default=true
custom_top_left=0
custom_top_top\default=true
custom_top_top=0
custom_top_right\default=true
custom_top_right=400
custom_top_bottom\default=true
custom_top_bottom=240
custom_bottom_left\default=true
custom_bottom_left=40
custom_bottom_top\default=true
custom_bottom_top=240
custom_bottom_right\default=true
custom_bottom_right=360
custom_bottom_bottom\default=true
custom_bottom_bottom=480
其中影响自定义布局的只有upright_screen起的下半段
上半段诸如layout_option这些参数在自定义布局下是没有意义的(红框起作用)
2020年04月11日 23点04分 2
level 1
aicool_1 楼主
upright_screen是90度翻转画面,如果您想要90度翻转画面,应该把这两行参数改为:
upright_screen\default=false(即“默认设置:关”)
upright_screen=true(即“翻转屏幕:开”)
同理,你要让自定义布局生效,对应的也应该修改为:
custom_layout\default=false(即“默认设置:关”)
custom_layout=true(即“自定义布局:开”)
再下面的参数是上下屏的边框位置设置,同理每一段要生效,要先把默认设置为关,如:
custom_top_left\default=true(即“上屏幕左边框默认设置:关”)
custom_top_left=0 (即“上屏幕左边框偏移0像素”)
至于参数数值的意义,没有经验的童鞋,一开始可能会搞懵,我用两三张图来说明
例:下面的一段参数(采用的数值均不相同,方便对照)
custom_layout\default=false
custom_layout=true
custom_top_left\default=false
custom_top_left=100
custom_top_top\default=false
custom_top_top=50
custom_top_right\default=true
custom_top_right=400
custom_top_bottom\default=true
custom_top_bottom=240
custom_bottom_left\default=false
custom_bottom_left=300
custom_bottom_top\default=false
custom_bottom_top=200
custom_bottom_right\default=false
custom_bottom_right=600
custom_bottom_bottom\default=false
custom_bottom_bottom=450
显示结果为:
上图已经标明数值的意义,相信一眼就能看懂
其中,如果你某一项没有改默认值,还是“default=true”,那么,下一列的数值就不会生效。
默认值跟图像设置的内部分辨率挂钩,分辨率是默认400x240的时候,上屏的默认值是左0上0右400下240
内部分辨率是2倍800x480的时候,上屏的默认值就是左0上0右800下480
2020年04月11日 23点04分 3
level 1
aicool_1 楼主
额外提一个问题设置,假设,右边框值小于左边框值,下边框值小于上边框值会发生什么?
上面的参数,将这两行改为:
custom_bottom_right\default=false
custom_bottom_right=150
custom_bottom_bottom\default=false
custom_bottom_bottom=80
效果如图:
可以看到,显示还是能够显示的,只不过将右和下边框镜像过来显示了。
然而,这样会有个问题:触·摸·屏·会·失·效·
(触摸屏是个负数区域,当然就失效了)
所以千万要注意不要让右边框值小于左边框值、下边框值小于上边框值。
当您设置的自定义布局没有生效,请检查:
1、检查您当前所用版本的模拟器的配置文件qt-config.ini,是否是正确配套的,不同改版的模拟器的配置文件的文件夹路径可能不一致。
2、相关的default=true是否改成default=false。
2020年04月11日 23点04分 4
level 5
马克,以后用的到,谢谢
2020年04月12日 12点04分 5
level 2
谢谢楼主
2020年04月20日 16点04分 6
level 8
楼主玩手机版模拟器吗?可否出个手机端的模拟器修改方法呢?
2020年04月23日 03点04分 8
手机有自定义布局
2021年11月25日 10点11分
level 8
学习了,已设置成功
我的设置,1920*1080的屏幕
layout_option=2
swap_screen\default=true
swap_screen=false
custom_layout\default=false
custom_layout=true
custom_top_left\default=false
custom_top_left=0
custom_top_top\default=false
custom_top_top=50
custom_top_right\default=false
custom_top_right=1440
custom_top_bottom\default=false
custom_top_bottom=1030
custom_bottom_left\default=false
custom_bottom_left=1440
custom_bottom_top\default=false
custom_bottom_top=50
custom_bottom_right\default=false
custom_bottom_right=1920
custom_bottom_bottom\default=false
custom_bottom_bottom=460
2020年09月21日 09点09分 9
太棒了,感谢
2022年09月28日 04点09分
肥肠[哈哈]感谢
2023年02月09日 03点02分
你必发财
2024年03月02日 19点03分
level 3
好贴mark
2021年03月23日 01点03分 10
level 13
感谢学习了
2022年05月25日 06点05分 11
level 3
2560*1600 2k 屏幕
[Layout]
render_3d\default=true
render_3d=0
factor_3d\default=true
factor_3d=0
pp_shader_name\default=true
pp_shader_name=none (builtin)
filter_mode\default=true
filter_mode=true
layout_option=2
swap_screen\default=true
swap_screen=false
custom_layout\default=false
custom_layout=true
custom_top_left\default=true
custom_top_left=0
custom_top_top\default=false
custom_top_top=50
custom_top_right\default=false
custom_top_right=1900
custom_top_bottom\default=false
custom_top_bottom=1400
custom_bottom_left\default=false
custom_bottom_left=1900
custom_bottom_top\default=false
custom_bottom_top=840
custom_bottom_right\default=false
custom_bottom_right=2560
custom_bottom_bottom\default=false
custom_bottom_bottom=1400
upright_screen\default=true
upright_screen=false
2022年10月11日 13点10分 14
兄弟不错哦~
2022年12月05日 05点12分
[勉强]
2023年04月20日 00点04分
大佬问一下怎么把右边哪个移到下面啊
2023年05月06日 15点05分
你看看楼主的教程试试
2023年05月08日 01点05分
level 4
很强啊楼主,屏幕看着舒服多了
2022年11月16日 17点11分 15
level 1
好帖,准备玩塞尔达众神2和时之笛,我调了个4k屏的,分享一下
custom_layout\default=false
custom_layout=true
custom_top_left\default=false
custom_top_left=0
custom_top_top\default=false
custom_top_top=0
custom_top_right\default=false
custom_top_right=2792
custom_top_bottom\default=false
custom_top_bottom=1980
custom_bottom_left\default=false
custom_bottom_left=2792
custom_bottom_top\default=false
custom_bottom_top=0
custom_bottom_right\default=false
custom_bottom_right=3840
custom_bottom_bottom\default=false
custom_bottom_bottom=920
2023年01月04日 17点01分 16
level 1
谢谢大佬分享!
2023年01月05日 09点01分 17
level 1
牛逼 [真棒]
2023年01月11日 11点01分 18
1 2 尾页