Gopher360 icon indicating copy to clipboard operation
Gopher360 copied to clipboard

Idea for file-based configuration

Open Tylemagne opened this issue 10 years ago • 2 comments

Based on http://www.cplusplus.com/doc/tutorial/files/, it appears that file I/O would be VERY easy to implement into Gopher.

Here's what I think could work for Gopher:

  • Upon launch: Gopher will check for, and if not created, create "gopher.ini". If it creates it, it will autofill with the initial file's contents/bindings.
  • If Gopher FINDS gopher.ini, it will read absolute-ordered bindings (ignoring the first 3 lines, which will contain "comments").
  • The comments will list the order of controller devices that the lines are read to.

Example file, with line numbers added: 1;This is Gopher's bindings, it is created by Gopher automatically upon first run. 2;Bindings are read in order: A, X, Y, B, RBumper, LBumper, LAnalogClick, RAnalogClick, DPUp, DPDown, DPLeft, DPRight, Start 3;Valid "operations" to add to the lines are as follows: up, down, right, left, start, enter, lclick, rclick, middleclick, changespeed, NONE. 4;lclick 5;rclick 6;NONE 7;enter 8;NONE 9;changespeed 10;middleclick 11;up 12;down 13;left 14;right 15;start

Tylemagne avatar Nov 10 '14 20:11 Tylemagne

Hey, I just wanted you to know that I made a pull request that did basically this exactly a long time ago. If you want me to resubmit it, I can, but I'm not going to be able to do any work on it for now since I'm very busy with classes and other projects. Feel free to edit it in any way you want.

bjones2094 avatar Nov 11 '14 03:11 bjones2094

I think this can be closed now since it supports file-based configuration.

Zero3K avatar Dec 13 '17 00:12 Zero3K