Skip to content

francisdb/vpinball-plugin-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpinball-plugin-rust

Example of a Visual Pinball plugin written in Rust

Visual Pinball Plugin system

This is still work in progress and the API is not stable yet. All documentation is currently at https://github.com/vpinball/vpinball/blob/10.8.1/src/plugins/VPXPlugin.h

Installing the plugin

# build the plugin (this will also download the vpinball plugin header)
cargo build
# set the vpinball folder location env var
export VPINBALL_FOLDER=$HOME/vpinball
# copy the plugin to the plugin folder
mkdir -p $VPINBALL_FOLDER/plugins/vpinball_plugin_fps
# Mac
cp target/debug/libvpinball_plugin_fps.dylib $VPINBALL_FOLDER/plugins/vpinball_plugin_fps
# Linux
cp target/debug/libvpinball_plugin_fps.so $VPINBALL_FOLDER/plugins/vpinball_plugin_fps

cp fpscounter/plugin.cfg $VPINBALL_FOLDER/plugins/vpinball_plugin_fps

Setting up the plugin

Add the following section to the $HOME/.vpinball/VPinballX.ini config file

[Plugin.fps]
enable = 1

[Plugin.rainbow.dmd]
enable = 1

Issues tracked on the vpinball repo

About

Building Visual Pinball plugins in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages