]>
git.sur5r.net Git - c128-kasse/log
Michael Stapelberg [Sat, 29 Sep 2012 15:25:17 +0000 (17:25 +0200)]
Fix wrong print statement
Michael Stapelberg [Sat, 29 Sep 2012 15:10:48 +0000 (17:10 +0200)]
implement depositing when the user cannot purchase an item
Michael Stapelberg [Sat, 29 Sep 2012 15:03:17 +0000 (17:03 +0200)]
right-align price in header
Michael Stapelberg [Sat, 29 Sep 2012 15:02:43 +0000 (17:02 +0200)]
actually increment transaction id
Michael Stapelberg [Sat, 29 Sep 2012 14:59:07 +0000 (16:59 +0200)]
header gefixed
Michael Stapelberg [Sat, 29 Sep 2012 14:51:26 +0000 (16:51 +0200)]
credit_manager: use the proper header
Michael Stapelberg [Sat, 29 Sep 2012 14:42:20 +0000 (16:42 +0200)]
fix sprintf format
Michael Stapelberg [Sat, 29 Sep 2012 14:25:11 +0000 (16:25 +0200)]
use consistent header line length
Michael Stapelberg [Sat, 29 Sep 2012 14:24:48 +0000 (16:24 +0200)]
print_buffer needs to be larger when we print 80 characters
Michael Stapelberg [Sat, 29 Sep 2012 14:16:50 +0000 (16:16 +0200)]
align papertrail format
Michael Stapelberg [Sat, 29 Sep 2012 13:38:53 +0000 (15:38 +0200)]
makefile: use 'all' target by default
Michael Stapelberg [Sat, 29 Sep 2012 11:45:54 +0000 (13:45 +0200)]
backspace handling: do nothing when at the left-most position
Michael Stapelberg [Sat, 29 Sep 2012 11:43:20 +0000 (13:43 +0200)]
backspace in get_input(): write \0-bytes
Michael Stapelberg [Mon, 1 Nov 2010 18:26:31 +0000 (19:26 +0100)]
replace getchar() with cgetc() in more places, implement backspace support, beautify output
Michael Stapelberg [Mon, 1 Nov 2010 17:48:37 +0000 (18:48 +0100)]
use nice drawing characters and two-column layout
Michael Stapelberg [Mon, 1 Nov 2010 17:48:10 +0000 (18:48 +0100)]
use cgetc() and cputc() instead of getchar()
Michael Stapelberg [Mon, 1 Nov 2010 17:47:30 +0000 (18:47 +0100)]
raise number of items to 32
Michael Stapelberg [Mon, 2 Nov 2009 12:29:31 +0000 (13:29 +0100)]
Implement printing a header
Michael Stapelberg [Sun, 1 Nov 2009 20:26:16 +0000 (21:26 +0100)]
improve formatting of the start screen
Michael Stapelberg [Sun, 1 Nov 2009 20:15:27 +0000 (21:15 +0100)]
Update copyright notice, convert files to utf8, add git version to itemz
Michael Stapelberg [Sun, 1 Nov 2009 20:12:55 +0000 (21:12 +0100)]
handle selling more than 9 items (whole input will be interpreted, not only first digit)
Michael Stapelberg [Sun, 1 Nov 2009 19:46:29 +0000 (20:46 +0100)]
Move logging/printing functions to src/print.c, fix compilation of itemz
Michael Stapelberg [Sun, 1 Nov 2009 19:45:21 +0000 (20:45 +0100)]
Cleanup makefile
Michael Stapelberg [Sun, 1 Nov 2009 13:22:13 +0000 (14:22 +0100)]
Add git version string
Michael Stapelberg [Sun, 1 Nov 2009 13:05:35 +0000 (14:05 +0100)]
clear screen when starting
Michael Stapelberg [Sun, 1 Nov 2009 13:01:31 +0000 (14:01 +0100)]
Add missing include
Michael Stapelberg [Sun, 1 Nov 2009 11:51:52 +0000 (12:51 +0100)]
Add timestamp for deposit log
Michael Stapelberg [Sun, 1 Nov 2009 11:31:11 +0000 (12:31 +0100)]
Bugfix: Use correct data type as return value in buy()
Michael Stapelberg [Sun, 1 Nov 2009 11:14:22 +0000 (12:14 +0100)]
Revert "calculate money when loading statefile"
This reverts commit
c15e61817a0f5c4e4d28e406d8b3761be32f1cfc .
We have to wait until we can use a datatype which doesn’t overflow
so easily. Currently, we have a maximum of 65535, which is, in combination
with other funny bugs (256 entities of X sold) reached quite quickly.
Michael Stapelberg [Sun, 1 Nov 2009 11:13:55 +0000 (12:13 +0100)]
Clear screen before selling custom entries
Michael Stapelberg [Sun, 1 Nov 2009 02:40:41 +0000 (03:40 +0100)]
calculate money when loading statefile
Michael Stapelberg [Sat, 31 Oct 2009 12:15:14 +0000 (13:15 +0100)]
save file when exiting credit manager
Michael Stapelberg [Sat, 31 Oct 2009 11:53:09 +0000 (12:53 +0100)]
log deposits and new credits to printer
Michael Stapelberg [Sat, 31 Oct 2009 11:21:11 +0000 (12:21 +0100)]
log the remaining credits
Michael Stapelberg [Sat, 31 Oct 2009 11:01:17 +0000 (12:01 +0100)]
log: padding for the nickname
Michael Stapelberg [Sat, 31 Oct 2009 10:06:24 +0000 (11:06 +0100)]
Bugfix: Fix prototype for set_time()
Michael Stapelberg [Thu, 29 Oct 2009 18:25:04 +0000 (19:25 +0100)]
Fix linking of itemz
Michael Stapelberg [Mon, 26 Oct 2009 12:34:25 +0000 (13:34 +0100)]
Clear screen before asking questions
I don’t know if the problem only exists in x128, but without the
clrscr() here the prompt could be outside the visible part of the
screen.
Michael Stapelberg [Mon, 26 Oct 2009 12:30:17 +0000 (13:30 +0100)]
Fix compilation warnings with cc65 v2.13.0
Michael Stapelberg [Mon, 26 Oct 2009 12:16:37 +0000 (13:16 +0100)]
Read the last logfile and set log_lines_written apropriately
This will prevent cluttered logfiles if the program is loaded
many times. Previously, a new logfile was always started when
loading.
Michael Stapelberg [Mon, 26 Oct 2009 12:04:42 +0000 (13:04 +0100)]
Depend on all include files in Makefile, so that we can get rid of dummies
include/{cat,itemz}.h were empty and only needed for the build before
Michael Stapelberg [Sat, 24 Oct 2009 12:31:25 +0000 (14:31 +0200)]
Add .gitignore
sECuRE [Tue, 6 Jan 2009 09:08:45 +0000 (09:08 +0000)]
Speicherfehler behoben (Danke Sascha)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@91
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 30 Nov 2008 11:19:57 +0000 (11:19 +0000)]
Count the number of sold items when loading itemz-file
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@90
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 30 Nov 2008 11:15:08 +0000 (11:15 +0000)]
Check if read < 0
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@89
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 30 Nov 2008 11:13:15 +0000 (11:13 +0000)]
Bugfix: Use CREDITS_PER_PAGE
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@88
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 30 Nov 2008 11:09:09 +0000 (11:09 +0000)]
Store maximum item name's length in MAX_ITEM_NAME_LENGTH to increase it easily
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@87
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sat, 29 Nov 2008 13:44:31 +0000 (13:44 +0000)]
Initialize memory
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@86
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sat, 29 Nov 2008 09:20:26 +0000 (09:20 +0000)]
Freitext verkaufen können, Druckerproblem gefixed
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@85
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Fri, 28 Nov 2008 23:29:07 +0000 (23:29 +0000)]
Limit Entrys to 10 per Page
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@84
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Fri, 28 Nov 2008 22:04:47 +0000 (22:04 +0000)]
Use correct datatype for return value
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@83
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sat, 15 Nov 2008 23:44:47 +0000 (23:44 +0000)]
Write log in files with 100 lines each (append mode emulation)
Extend copyright to 2008
Make comments english (consistent)
Fix spelling errors
Check for not existant items correctly
Cleanup makefile
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@82
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Fri, 14 Nov 2008 23:20:40 +0000 (23:20 +0000)]
Use unlink() instead of _sysremove(), cleanup makefile
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@81
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sur5r [Sun, 4 Nov 2007 01:44:26 +0000 (01:44 +0000)]
* prepend \0x11 to printer output for switching to lower/upper case mode instead of
upper case/graphics mode
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@80
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Fri, 2 Nov 2007 22:07:14 +0000 (22:07 +0000)]
Remove directory listing (just doesn't work, probably mixing cbm* with stdio again), use "directory<RETURN>" in BASIC
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@79
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Fri, 2 Nov 2007 21:51:13 +0000 (21:51 +0000)]
Add hex viewer "cat"
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@78
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Thu, 1 Nov 2007 11:56:22 +0000 (11:56 +0000)]
Fix linking of itemz
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@77
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Wed, 31 Oct 2007 22:06:38 +0000 (22:06 +0000)]
move global variables of kasse to include/kasse.h
implement continuous file logging
remove sprintf() out of the loop
remove test-function 'n'
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@76
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 30 Oct 2007 23:46:56 +0000 (23:46 +0000)]
fix bugs in setting/reading time, this one affected the other bug (loading/saving items did not work, showed 0x2F entries) because it overwrote memory
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@75
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sat, 27 Oct 2007 00:17:39 +0000 (00:17 +0000)]
print nickname in log
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@74
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 23:31:12 +0000 (23:31 +0000)]
* ignore some built stuff
* explicitly list objects for linking kasse
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@73
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 23:22:09 +0000 (23:22 +0000)]
videomode macro
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@72
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 23:15:02 +0000 (23:15 +0000)]
allow the user to retry or quit, when printing fails
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@71
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 22:16:53 +0000 (22:16 +0000)]
* let users quit itemz/kasse
* only toggle_videmode if not in 80 char mode
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@70
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sur5r [Fri, 26 Oct 2007 22:00:59 +0000 (22:00 +0000)]
- write kasse first to the image because RUN"* will run the first program
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@69
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 21:00:32 +0000 (21:00 +0000)]
* replaced files_existing with differentiated flags.
* obsolete items/state files are not written to the disk image anymore
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@68
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 20:55:24 +0000 (20:55 +0000)]
deleted obsolete items file
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@67
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 20:54:20 +0000 (20:54 +0000)]
deleted obsolete state file
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@66
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 01:45:37 +0000 (01:45 +0000)]
defined NICKNAME_MAX_LEN
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@65
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Fri, 26 Oct 2007 01:39:35 +0000 (01:39 +0000)]
* buy() now uses find_credit
* there is no strncasecmp
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@64
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Thu, 25 Oct 2007 16:07:18 +0000 (16:07 +0000)]
Bugfix: remove sleep(1), which breaks the program
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@63
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Thu, 25 Oct 2007 15:11:41 +0000 (15:11 +0000)]
put filter back in again.
implemented a deposit function which crashes the program...
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@62
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Thu, 25 Oct 2007 13:35:12 +0000 (13:35 +0000)]
print some status information on secondary screen for buyer
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@61
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Thu, 25 Oct 2007 13:04:44 +0000 (13:04 +0000)]
modularized itemz and moved new credit manager stuff into credit_manager.c
itemz now uses the regular credit_manager functions
apart from linking itemz against credit_manager.o I also had to change some other stuff in the Makefile like commenting out custom paths and this cp /tmp/cc65(... . line which makes the build fail.
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@60
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Thu, 25 Oct 2007 12:21:25 +0000 (12:21 +0000)]
items can now be returned (fixing ticket #8)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@59
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Thu, 25 Oct 2007 00:40:42 +0000 (00:40 +0000)]
bugfix for previous commit
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@58
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Thu, 25 Oct 2007 00:17:33 +0000 (00:17 +0000)]
format_euro now produces a leading zero for cents
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@57
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 18:11:01 +0000 (18:11 +0000)]
add license information
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@56
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 15:02:48 +0000 (15:02 +0000)]
implement CREDITS into itemz
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@55
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 14:37:50 +0000 (14:37 +0000)]
implement itemz.c which manages ITEMS (works)/CREDITS (TODO) files
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@54
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 14:01:25 +0000 (14:01 +0000)]
fix time.c/h, fix test.c
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@53
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 13:56:47 +0000 (13:56 +0000)]
create src/images/include-folders to clean up the directory
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@52
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 13:34:36 +0000 (13:34 +0000)]
delete state/credits-file before saving, error-handling for logging
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@51
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Tue, 23 Oct 2007 12:07:31 +0000 (12:07 +0000)]
file-logging re-implemented, abort if nickname not found in credits fixed
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@50
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 21 Oct 2007 16:10:21 +0000 (16:10 +0000)]
fix printing, nice formatting used
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@49
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 21 Oct 2007 15:14:49 +0000 (15:14 +0000)]
remove malloc, fix user interface
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@48
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 21 Oct 2007 13:34:35 +0000 (13:34 +0000)]
fix saving/loading from file :)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@47
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 21 Oct 2007 12:39:34 +0000 (12:39 +0000)]
use cbm_load/cbm_save; WARNING: this code _IS_ broken at the moment
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@46
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sat, 20 Oct 2007 13:30:07 +0000 (13:30 +0000)]
fgets-replacement implemented
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@45
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sur5r [Sat, 20 Oct 2007 13:08:11 +0000 (13:08 +0000)]
replace printf and file functions, warning: may be broken, not tested yet
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@44
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sur5r [Sat, 1 Sep 2007 00:00:55 +0000 (00:00 +0000)]
- put executable as first file on disk because it's possible to do DLOAD"* or RUN"* then
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@43
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sun, 29 Jul 2007 17:23:26 +0000 (17:23 +0000)]
bugfix
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@42
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sun, 29 Jul 2007 14:35:28 +0000 (14:35 +0000)]
file logging
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@41
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sun, 29 Jul 2007 14:06:42 +0000 (14:06 +0000)]
save_state funktioniert jetzt
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@40
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 29 Jul 2007 13:47:19 +0000 (13:47 +0000)]
replace printf with cprintf
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@39
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 29 Jul 2007 11:30:00 +0000 (11:30 +0000)]
fix: c128_perror
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@38
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
sECuRE [Sun, 29 Jul 2007 11:12:04 +0000 (11:12 +0000)]
set_time and get_time implemented
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@37
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sun, 29 Jul 2007 01:12:19 +0000 (01:12 +0000)]
length check
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@36
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sun, 29 Jul 2007 00:42:16 +0000 (00:42 +0000)]
format_euro(123) => "1,23EUR"
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@35
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5
matze [Sun, 29 Jul 2007 00:01:02 +0000 (00:01 +0000)]
cc65 fgets arbeitet anscheinend mit mac newlines (\r)
git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@34
af93e077 -1a23-4f1e-9cbe-
9382a9d578f5