Mercurial > hg > forks > multipaint-js
changeset 51:f9da5fe9a891
Define g_exportname for name of the format that the export is done in.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Jul 2018 18:55:47 +0300 |
parents | 8ba88c25f51d |
children | 4f998eb1700a |
files | exporters.pde multipaint.pde |
diffstat | 2 files changed, 19 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/exporters.pde Wed Jul 04 18:45:46 2018 +0300 +++ b/exporters.pde Wed Jul 04 18:55:47 2018 +0300 @@ -1858,6 +1858,7 @@ if (machine == C64) { //c64 hires g_name = "c64"; g_exportext = "prg"; + g_exportname = "PRG file"; g_formatname = "Art Studio"; g_formatext = "art"; @@ -1870,6 +1871,7 @@ if (machine == CPC) { //Amstrad CPC mode 0 g_name = "cpc"; g_exportext = "bin"; + g_exportname = "BIN file" g_formatname = ""; g_formatext = ""; @@ -1901,8 +1903,9 @@ if (machine == MSX) { // MSX g_name = "msx"; g_exportext = "com"; + g_exportname = "COM file"; g_formatname = "Screen 2"; - g_formatext = "sc2"; + g_formatext = ".sc2"; X = 256; Y = 192; @@ -1938,8 +1941,9 @@ if (machine == SPECTRUM) { // ZX Spectrum g_name = "spec"; g_exportext = "tap"; + g_exportname = "TAP file"; g_formatname = "Screen$"; - g_formatext = "scr"; + g_formatext = ".scr"; X = 256; Y = 192; @@ -1981,8 +1985,9 @@ if (machine == PLUS4M || machine == PLUS4) { // Commodore plus/4 g_name = "plus4m"; g_exportext = "prg"; + g_exportname = "PRG file"; g_formatname = "M.Botticelli"; - g_formatext = "prg"; + g_formatext = ".prg"; g_backmode = 1; g_multic = 1; @@ -1997,7 +2002,7 @@ if (machine == PLUS4) { // plus/4 hires g_name = "plus4"; g_formatname = "Botticelli"; - g_formatext = "prg"; + g_formatext = ".prg"; g_multic = 0; g_backmode = 0; g_charlimit = 0; @@ -2010,8 +2015,9 @@ if (machine == C64M) { //c64 multicolor g_name = "c64m"; g_exportext = "prg"; + g_exportname = "PRG file"; g_formatname = "A. A. Studio"; - g_formatext = "ocp"; + g_formatext = ".ocp .kla"; g_backmode = 1; g_charlimit = 3; @@ -2025,6 +2031,7 @@ if (machine == AMIGA) { //generic 16bit g_name = "test"; g_exportext = ""; + g_exportname = ""; g_formatname = ""; g_formatext = ""; @@ -2046,6 +2053,7 @@ if (machine == C64FLI) { //c64 hires FLI = AFLI g_name = "afli"; g_exportext = "prg"; + g_exportname = "PRG file"; g_formatname = ""; g_formatext = ""; @@ -2058,6 +2066,7 @@ if (machine == C64FLIM) { //C64 FLI multicolor g_name = "fli"; g_exportext = ""; + g_exportname = "PRG file"; g_formatname = ""; g_formatext = ""; @@ -2073,6 +2082,7 @@ if (machine == FAKEX) { // Fake 8-bit computer g_name = "fake"; g_exportext = ""; + g_exportname = ""; g_formatname = ""; g_formatext = ""; @@ -2088,6 +2098,7 @@ if (machine == PICO8) { // Pico-8 fantasy console g_name = "pico8"; g_exportext = ""; + g_exportname = ""; g_formatname = ""; g_formatext = ""; @@ -2117,6 +2128,7 @@ if (machine == UNIA) { // Unia digital palette g_name = "unia"; g_exportext = ""; + g_exportname = ""; g_formatname = ""; g_formatext = ""; @@ -2145,6 +2157,7 @@ } } + void packer() { int i, dat, amo; int head;
--- a/multipaint.pde Wed Jul 04 18:45:46 2018 +0300 +++ b/multipaint.pde Wed Jul 04 18:55:47 2018 +0300 @@ -25,7 +25,7 @@ int g_omag, g_bordh, g_bordv, g_keymacpos, g_framec; boolean fileselect = false, saveas = false, refselect = false, g_control = false, g_shift = false, exporttxt = false, importfmt = false, exportemu = false, exportfmt = false; -String path = "", refpath = "", filename = "", elename = "", sfilename = "", refname = "", g_exportext = "", g_keymacro = ""; +String path = "", refpath = "", filename = "", elename = "", sfilename = "", refname = "", g_exportext = "", g_exportname = "", g_keymacro = ""; int[] g_r = new int[266]; int[] g_g = new int[266];