本文整理汇总了Python中fsgs.FSGSDirectories.FSGSDirectories.screenshots_output_dir方法的典型用法代码示例。如果您正苦于以下问题:Python FSGSDirectories.screenshots_output_dir方法的具体用法?Python FSGSDirectories.screenshots_output_dir怎么用?Python FSGSDirectories.screenshots_output_dir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fsgs.FSGSDirectories.FSGSDirectories
的用法示例。
在下文中一共展示了FSGSDirectories.screenshots_output_dir方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: app_main
# 需要导入模块: from fsgs.FSGSDirectories import FSGSDirectories [as 别名]
# 或者: from fsgs.FSGSDirectories.FSGSDirectories import screenshots_output_dir [as 别名]
def app_main():
FSGSDirectories.initialize()
Settings.instance().load()
print("")
print("Directories:")
print("* base_dir =", FSGSDirectories.get_base_dir())
print("* cache_dir =", FSGSDirectories.get_cache_dir())
print("* cdroms_dir =", FSGSDirectories.get_cdroms_dir())
print("* configurations_dir =", FSGSDirectories.get_configurations_dir())
print("* controllers_dir =", FSGSDirectories.get_controllers_dir())
print("* covers_dir =", FSGSDirectories.get_covers_dir())
print("* data_dir =", FSGSDirectories.get_data_dir())
print("* downloads_dir =", FSGSDirectories.downloads_dir())
print("* floppies_dir =", FSGSDirectories.get_floppies_dir())
print("* hard_drives_dir =", FSGSDirectories.get_hard_drives_dir())
# print("* images_dir =", FSGSDirectories.get_images_dir())
print("* kickstarts_dir =", FSGSDirectories.get_kickstarts_dir())
print("* launcher_dir =", FSGSDirectories.get_launcher_dir())
print("* logs_dir =", FSGSDirectories.get_logs_dir())
print("* plugins_dir =", FSGSDirectories.get_plugins_dir())
# print("* portable_dir =", FSGSDirectories.portable_dir())
print("* save_states_dir =", FSGSDirectories.get_save_states_dir())
print("* screenshots_dir =", FSGSDirectories.get_screenshots_dir())
print("* screenshots_output_dir =", FSGSDirectories.screenshots_output_dir())
print("* themes_dir =", FSGSDirectories.get_themes_dir())
print("* titles_dir =", FSGSDirectories.get_titles_dir())
print("* whdload_dir =", FSGSDirectories.get_whdload_dir())
print("")
示例2: screenshots_dir
# 需要导入模块: from fsgs.FSGSDirectories import FSGSDirectories [as 别名]
# 或者: from fsgs.FSGSDirectories.FSGSDirectories import screenshots_output_dir [as 别名]
def screenshots_dir(self):
return FSGSDirectories.screenshots_output_dir()
示例3: write_retroarch_config
# 需要导入模块: from fsgs.FSGSDirectories import FSGSDirectories [as 别名]
# 或者: from fsgs.FSGSDirectories.FSGSDirectories import screenshots_output_dir [as 别名]
def write_retroarch_config(self, f):
"""
joypad_autoconfig_dir = "~/.config/retroarch/autoconfig"
"""
f.write(
'screenshot_directory = "{}"\n'.format(
FSGSDirectories.screenshots_output_dir()
)
)
f.write('system_directory = "{}"\n'.format(self.system_dir.path))
# noinspection SpellCheckingInspection
f.write(
'savefile_directory = "{}"\n'.format(
self.save_handler.emulator_save_dir()
)
)
f.write(
'savestate_directory = "{}"\n'.format(
self.save_handler.emulator_state_dir()
)
)
# FIXME: Maybe enable autosave to save .srm while running the emulator
# and not only on shutdown?
# f.write("autosave_interval = 60\n")
f.write("pause_nonactive = false\n")
f.write("video_font_enable = false\n")
f.write("rgui_show_start_screen = false\n")
f.write("all_users_control_menu = true\n")
f.write("video_gpu_screenshot = false\n")
if self.g_sync():
# Without timed frame limiting, there will be stuttering (probably)
# due to (some) audio driver sync not being stable enough to give
# a stable frame rate.
# FIXME: Implement better G-SYNC method in RetroArch
f.write("fastforward_ratio = 1.000000\n")
# FIXME: It's possible the above "fix" would be better for
# non-v-sync as well, if the audio sync is not stable.
# f.write("audio_max_timing_skew = 0.0\n")
# f.write("audio_rate_control_delta = 0.0\n")
# f.write("video_refresh_rate = 144.0\n")
# f.write("audio_sync = false\n")
default_buffer_size = 40
buffer_size = default_buffer_size
if self.options[Option.RETROARCH_AUDIO_BUFFER]:
try:
buffer_size = int(self.options[Option.RETROARCH_AUDIO_BUFFER])
except ValueError:
print("WARNING: Invalid RetroArch audio buffer size specified")
else:
if buffer_size < 0 or buffer_size > 1000:
print("WARNING: RetroArch audio buffer size out of range")
buffer_size = default_buffer_size
f.write("audio_latency = {}\n".format(buffer_size))