diff options
author | 2016-09-03 16:11:58 -0400 | |
---|---|---|
committer | 2016-09-03 16:11:58 -0400 | |
commit | 4251194fe5b9f4d7551c362326e7ca20bc7da99b (patch) | |
tree | b82bba2120de1fbfd16631b91ba8b479e2ccf9fe /src/lib/formats/flopimg.cpp | |
parent | be3c18302e117049c0f4c75f719afc3d3d69aa08 (diff) |
Worked around the OPTION_GUIDE_EXTERN issue by using a crazy trick involving namespaces
Caveats:
1. Because of how this trick works, it is no longer possible to declare an option guide as static, so I had to make a bunch of changes
2. I'm going to want the hardcore C++ guys (i.e. - Vas) to review this with a fine toothed comb
Diffstat (limited to 'src/lib/formats/flopimg.cpp')
-rw-r--r-- | src/lib/formats/flopimg.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/formats/flopimg.cpp b/src/lib/formats/flopimg.cpp index e05bd54cf26..9fb487ba971 100644 --- a/src/lib/formats/flopimg.cpp +++ b/src/lib/formats/flopimg.cpp @@ -58,7 +58,7 @@ struct floppy_params static floperr_t floppy_track_unload(floppy_image_legacy *floppy); -OPTION_GUIDE_START(floppy_option_guide_actual) +OPTION_GUIDE_START(floppy_option_guide) OPTION_INT('H', "heads", "Heads") OPTION_INT('T', "tracks", "Tracks") OPTION_INT('S', "sectors", "Sectors") @@ -66,7 +66,6 @@ OPTION_GUIDE_START(floppy_option_guide_actual) OPTION_INT('I', "interleave", "Interleave") OPTION_INT('F', "firstsectorid", "First Sector") OPTION_GUIDE_END -const util::option_guide &floppy_option_guide = floppy_option_guide_actual; static void floppy_close_internal(floppy_image_legacy *floppy, int close_file); |