Commit Graph

234 Commits

Author SHA1 Message Date
Dagen Brock
7df808cf4a add scaling options and fix speedups 2018-08-30 09:55:10 -05:00
Dagen Brock
710e2cd067 always alpha sort and cleaner hotkeys in file menu 2018-08-28 10:51:54 -05:00
Dagen Brock
6ec560ca49 only grab mouse in fullscreen for now 2018-08-27 12:16:57 -05:00
Dagen Brock
48bad8a432 cleaner shutdown / mouse code for SDL 2018-08-27 11:21:59 -05:00
Dagen Brock
ff39749feb fix sdl frame rendering vsync method to simply present the buffer once per frame 2018-08-26 13:59:39 -05:00
Dagen Brock
17f22c3393 fix sdl2 keymap on non-apple systems and add rpi doc 2018-08-24 23:20:47 -05:00
Dagen Brock
12ec7c4fa9 proper SDL shutdown - fixes exit on RPi HW accel version 2018-08-24 14:18:44 -05:00
Dagen Brock
ed817c15fe add vsync flag for great success 2018-08-24 12:45:51 -05:00
Dagen Brock
9b708a2ad8 resolve builds on windows with new fst objects 2018-08-24 11:40:25 -05:00
Dagen Brock
16b131d1f9
Merge pull request #41 from ksherlock/prodos_mli
Prodos mli (win32 edition)
2018-08-24 05:28:37 -05:00
Dagen Brock
26ac5bc51a
Merge branch 'master' into master 2018-08-24 05:12:46 -05:00
Kelvin Sherlock
fcf8dea873 host mli - convert cygwin paths to Win32 paths before using with Win32 API. 2018-08-23 20:47:09 -04:00
Kelvin Sherlock
2b38b6bf8d win32 prefix fix. 2018-08-23 15:27:23 -04:00
Dagen Brock
27a0d34dff pi build with sdl2 2018-08-23 18:35:41 +00:00
Kelvin Sherlock
7b66b3a070 bug fixes and more cleanup 2018-08-23 10:56:09 -04:00
Kelvin Sherlock
192cfc724b win32 host mli support
this also moves a lot of common host_fst / host_mli / win_host_fst into host_common / unix_host_common / win32_host_common

Currently untested.
2018-08-23 00:38:53 -04:00
Dagen Brock
45da5d239d add unimplemented functions to allow win32 builds to work 2018-08-22 10:07:25 -05:00
Kelvin Sherlock
70578779e4 mli init - was reading unit as 16-bit quantity instead of 8-bit quantity. 2018-08-20 21:34:59 -04:00
Kelvin Sherlock
30491a39a0 host fst - return a better error for ChangePathGS when destination file exists and DestroyGS when file is non-empty directory 2018-08-20 21:28:09 -04:00
Kelvin Sherlock
67a8d7a0c6 sunos xattr defines 2018-08-20 20:58:48 -04:00
Kelvin Sherlock
8be3dad543 uncrustify. 2018-08-20 20:57:45 -04:00
Kelvin Sherlock
a5e55f826c update makefile, remove dead code 2018-08-20 20:55:19 -04:00
Kelvin Sherlock
3390a35f84 host mli support
intercepts ProDOS MLI calls for the /HOST/ path.
2018-08-20 15:43:06 -04:00
Dagen Brock
8e53c19f66 making it merge someway, somehow 2018-08-20 13:16:47 -05:00
Dagen Brock
5d6bc63bf7
Merge branch 'experimental' into debugger_wdm 2018-08-20 12:40:08 -05:00
Kelvin Sherlock
e021a622b4 adds two new WDM debugger commands useful for programmers.
WDM $a0 prints a string
a: string type (0 = c-string, 1 = pascal string, 2 = gs/os string). set bit 15 ($8000) to add a trailing '\n
x/y:  pointer to the string

WDM $a1 hexdumps memory
a: length
x/y pointer to memory

(in both cases, x is the low  word and y is the high word (ie, bank))
2018-08-20 13:03:53 -04:00
Dagen Brock
d7ccfb919c remove debug and status line (not supported) flags from osx builds 2018-08-14 22:48:50 -05:00
Dagen Brock
65f280569c using code beautifier (uncrustify), possibly most controversial commit ever\? 2018-08-13 12:22:40 -05:00
Dagen Brock
a509cc0a3c fps testing for win comparison 2018-08-10 10:11:22 -05:00
Dagen Brock
99c51da6e8 re-implement alert dialogs for SDL2 version and add sane ROM message 2018-08-10 09:32:55 -05:00
Dagen Brock
7d82873478 add check for missing fonts 2018-07-27 14:06:33 -05:00
Dagen Brock
dca0a68abb
Merge pull request #32 from ksherlock/host_fst_updates
Host fst updates
2018-07-25 15:34:32 -05:00
Dagen Brock
47b837e34c Win32 SDL2 builds on Cygwin against Mingw SDL2 libs, new docs and log cleanup 2018-07-25 14:33:16 -05:00
Kelvin Sherlock
efbd79264d host fst - JudgeName doesn't necessarily have a pathname. 2018-07-24 09:16:03 -04:00
Dagen Brock
92af077e38 missing menu terminator bug 2018-07-17 12:39:53 -05:00
Kelvin Sherlock
e886532dbe host fst - error out if not initialized (prevents null deference later) 2018-07-16 13:53:35 -04:00
Kelvin Sherlock
d1057c52f3 Host FST updates:
1. slightly improved logging
2. option to automatically translate cr/lf in text/source files
3. option to merlin encode text .S files
4. default file type for common source code files extensions.
2018-07-08 15:17:07 -04:00
Dagen Brock
ab54161b8d cleanup and fixup and full options 2018-03-26 23:31:40 -05:00
Dagen Brock
24d2d75c49 return scanline scaling logic 2018-03-19 21:21:11 -05:00
Dagen Brock
b5eaa22877 page up/down in config menus.. yay 2018-03-18 14:25:05 -05:00
Dagen Brock
45d65c9643 missing lib directives 2018-03-11 15:57:03 -05:00
Dagen Brock
5c945e8bff latest sdl options and first try of win sdl with new libs 2018-03-11 15:10:46 -05:00
Dagen Brock
3a6d272a50 copyright cleanup (and fix a copy-pasta) 2018-03-02 10:48:45 -06:00
Dagen Brock
18dbd6af31 new cli options 2018-02-27 06:56:45 -06:00
Dagen Brock
1f061db96b clean up default config a bit
- HT Les Burrows for the suggestion/bug report
I think there is a lot that could be changed around this, but I went for balance.  Firstly it switches to a default path of "HOME", takes out the ifdef "MAC" (sorry, other devs can support older platforms better than I, this is old MAC, not the modern OSX version which is supported).  It uses a dot file.  A lot of these changes could be minorly controversial as they change the behavior somewhat.  I think proper documentation, flags, and more cleanup around all of this would help.
2017-12-29 11:47:37 -06:00
Kelvin Sherlock
e9fe5b8678 host fst fixup:
1. if file_type = 0x0f, storage_type = 0x01, create a directory
2. only read pathname if pathname is expected
3. log path for calls that take a path
4. differentiate fileNotFound vs pathNotFound errors.
2017-09-19 08:54:12 -04:00
Gracana
6cd9e9c481 Add check for font so error is generated instead of segfault. 2017-07-22 00:05:58 -04:00
Nick Westgate
6b001c490d Fix F4 can exit app after Alt-Tab 2017-04-16 22:42:27 +12:00
Dagen Brock
a1fdb3b0b2 Merge branch 'headless' into 'experimental'
Headless Driver

Headless Driver. No screen or sound.  Useful for stuff like running a BBS or GNO/ME in the background.

See merge request !10
2017-04-05 11:20:44 -05:00
Dagen Brock
15e37c5de2 Merge branch 'experimental' into 'experimental'
Option-Command Menu shortcuts

This adds an option modifier to all the SDL menu keyboard shortcuts (Command-Q to quit becomes Option+Command-Q).

See merge request !9
2017-04-05 09:46:56 -05:00
Dagen Brock
e403bdc8f7 Merge branch 'host_config' into 'experimental'
add F4-text UI for selecting host file directory.

This only displays folders. Return enters a folder as usual. Press Space to select a folder

(Space also selects a file in the ROM/disk image file selector)

See merge request !8
2017-04-05 09:39:43 -05:00
Dagen Brock
9910f290af Merge branch 'to_pro-ftypes' into 'experimental'
to_pro tweaks

1. sniff filetype from finder info, if available
2. -bin flag to use a default file type of binary
3. -txt flag to use a default file type of text
4. -cr flag to do text file lf/cr conversion.
5. check for invalid disk size numbers.
6. check for maximum prodos image size

See merge request !11
2017-04-05 09:32:29 -05:00
Dagen Brock
1cd10bb3a1 remove printf 2017-04-05 09:18:04 -05:00
Kelvin Sherlock
b2870733c8 remove uint8_t 2017-03-11 22:43:23 -05:00
Kelvin Sherlock
7b87bb391f to_pro tweaks:
1. sniff filetype from finder info, if available
2. -bin flag to use a default file type of binary
3. -txt flag to use a default file type of text
4 -cr flag to do text file lf/cr conversion.
2017-03-11 20:48:18 -05:00
Kelvin Sherlock
98cc8b1223 tweak the apple menu bar to add option-key to all key equivalents. Eg, Command-Q => Option+Command-Q 2017-02-10 20:06:11 -05:00
Kelvin Sherlock
41e000329c add F4-text UI for selecting host file directory. This only displays folders. Return enters a folder as usual. Press Space to select a folder
(Space also selects a file in the ROM/disk image file selector)
2017-02-02 15:28:56 -05:00
Dagen Brock
3ce80ce333 woops. left debug -O0 flag on builds 2017-01-23 11:16:44 -06:00
Dagen Brock
91359379ab fix missing include 2017-01-23 09:55:14 -06:00
Dagen Brock
2a4712c7b6 missed rom3 patch message 2017-01-23 09:38:14 -06:00
Dagen Brock
a58478a401 superficial changes to test CI 2017-01-23 09:26:32 -06:00
Dagen Brock
b9eb3fde74 cleanup to test build issue 2017-01-22 19:13:18 -06:00
Dagen Brock
cb8a7a1d62 formatting cleanup, add help option, fix quit behavior to ignore command-Q 2017-01-22 12:33:43 -06:00
Dagen Brock
c5fbc76e18 log cleanup 2017-01-21 21:44:44 -06:00
Dagen Brock
0ff8dc524c scanline simulator is back. yay. 2017-01-21 16:31:32 -06:00
Kelvin Sherlock
2c87f2ae20 headless driver. Does not implement any i/o whatsoever. Possibly useful for running gno/me or proline in the background. 2017-01-20 22:30:44 -05:00
Dagen Brock
9906f0187e remove extra newlines from switch to glogf() 2017-01-20 14:19:07 -06:00
Dagen Brock
624aefbe08 remove erroneous printf and warnings 2017-01-20 13:58:01 -06:00
Dagen Brock
aa240efdc8 manually redoing Kelvin's glogf work 2017-01-20 13:28:09 -06:00
Dagen Brock
e584e82f35 Merge branch 'win32_icon' into 'experimental'
win32 icon.

replace the fugly old win32 icon with a new one based on the gsp_icon_xxx.png files.  includes script used to generate the icon (`perl -w  make_ico.pl gsp_icon_16.png gsp_icon_32.png gsp_icon_64.png gsp_icon_128.png gsp_icon_256.png`).

See merge request !6
2017-01-20 11:51:54 -06:00
Dagen Brock
78ccf27da9 Merge branch 'ksherlock/gsplus-debugger_fix' into experimental 2017-01-20 11:43:59 -06:00
Dagen Brock
9e9395cb49 Merge branch 'experimental' into 'win32_host'
# Conflicts:
#   src/host_fst.c
2017-01-20 11:39:36 -06:00
Dagen Brock
df15c0f6d9 Merge branch 'fix_64_bit_win32_sound' into 'experimental'
64-bit fixes for win sound driver

This fixes the win32 sound driver so it can be compiled (and run) with 64-bit Cygwin/gcc. Previously, it would crash due to pointer/int conversion losing information.

See merge request !3
2017-01-20 11:33:04 -06:00
Dagen Brock
9ce2f0e35d Merge branch 'experimental' of centralserv.gotgeeks.com:dbrock/gsplus into experimental 2017-01-20 10:57:10 -06:00
Dagen Brock
f00002eeb3 Merge branch 'experimental' into 'experimental_host_fst'
# Conflicts:
#   src/host_fst.c
2017-01-20 10:50:56 -06:00
Dagen Brock
74815bfe70 Merge branch 'master' of github.com:digarok/gsplus 2017-01-20 10:38:38 -06:00
Dagen Brock
9950bc3e4a Merge branch 'master' of github.com:digarok/gsplus into experimental 2017-01-20 10:38:00 -06:00
Dagen Brock
a7302310c5 Merge pull request #6 from ksherlock/sdl_dnd
Adds code to, theoretically, insert a drag-n-drop disk image.
2017-01-20 10:34:39 -06:00
Dagen Brock
841bcff724 dmg background appley-fied 2017-01-20 10:17:58 -06:00
Dagen Brock
8d1161b224 fix for segfault on screenshot w/ no dir specified 2017-01-19 22:53:30 -06:00
Kelvin Sherlock
563411ffb3 win32 icon. 2016-12-15 22:00:19 -05:00
Kelvin Sherlock
9d3fd44cb1 debugger - fix problem where fd 0 is closed when it shouldn't be. 2016-12-03 20:59:06 -05:00
Kelvin Sherlock
d4bb8f3e0d freebsd/aix xattr includes 2016-11-27 15:09:35 -05:00
Kelvin Sherlock
827f381ead updated makefiles for host / win32_host 2016-11-27 15:04:29 -05:00
Kelvin Sherlock
34d0af713d compile with mingw too! 2016-11-27 14:47:28 -05:00
Kelvin Sherlock
9d0a242487 support the read_only flag, more consistent storage type checks. 2016-11-27 14:28:13 -05:00
Kelvin Sherlock
c20257e5fe map windows locked/hidden attributes. 2016-11-27 13:53:07 -05:00
Kelvin Sherlock
a2d165840b AFP_AfpInfo attribute support! 2016-11-26 21:46:05 -05:00
Kelvin Sherlock
a84dd7b424 win32 attribute mapping. 2016-11-26 20:40:10 -05:00
Kelvin Sherlock
a648aac400 fix time conversion. 2016-11-26 15:39:08 -05:00
Kelvin Sherlock
e7cf527ee3 fix get file info 2016-11-26 15:23:25 -05:00
Kelvin Sherlock
e482260d32 more win32-specific code. 2016-11-26 15:14:37 -05:00
Kelvin Sherlock
bb6015df36 synchronize host_fst, fixup a couple bugs . 2016-11-25 21:57:17 -05:00
Kelvin Sherlock
bc75666810 fix fst_read to actually read. 2016-11-25 15:10:25 -05:00
Kelvin Sherlock
0bde878d05 move win32 host to separate file. (in progress). 2016-11-25 14:54:21 -05:00
Kelvin Sherlock
e6f9adc1de work in progress for windows/cygwin host fst 2016-11-24 13:04:37 -05:00
Kelvin Sherlock
92f78df754 64-bit fixes for win sound driver 2016-11-24 13:03:41 -05:00
Dagen Brock
ae94f457cd Merge branch 'experimental' of centralserv.gotgeeks.com:dbrock/gsplus into experimental 2016-11-02 21:54:15 -05:00
Dagen Brock
480b065a6e logs cleans, manual refresh 2016-11-02 21:52:40 -05:00
Dagen Brock
85e71f201d icons and branding refresh 2016-11-02 21:28:16 -05:00