forked from lifning/python-retro
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.py
More file actions
Latest commit
21 lines (19 loc) · 567 Bytes
/
Copy pathcodegen.py
File metadata and controls
21 lines (19 loc) · 567 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# TODO: parse libretro.h with libclang or something and make a build step of it
varnames='''
set_environment set_video_refresh
set_audio_sample set_audio_sample_batch
set_input_poll set_input_state
init deinit
api_version
get_system_info get_system_av_info
set_controller_port_device
reset run
serialize_size serialize
unserialize
cheat_reset cheat_set
load_game load_game_special
unload_game get_region
get_memory_data get_memory_size
'''.split()
forsinvarnames:
print("self.{} = self.retro_{}".format(s,s))