Commit Graph
100 Commits
Author SHA1 Message Date
Glenn Maynard b4ba450d64 fix "just barely" misaligned
- compute in the same way as the graph itself
 - don't round (quantize(1)); this tries to snap to a pixel, but the graph is
usually zoomed
2005-05-25 04:58:45 +00:00
Glenn Maynard a49bfd5e74 cleanup 2005-05-25 04:44:32 +00:00
Glenn Maynard d8a82be539 implement == for lua objects 2005-05-24 20:56:38 +00:00
Glenn Maynard 917870294f fix warnings when calling FlushDirCache() with timeout disabled 2005-05-23 23:11:41 +00:00
Glenn Maynard ee88435ffa fix warning 2005-05-23 22:32:06 +00:00
Glenn Maynard c167840888 error handling/reporting fixes 2005-05-23 22:23:24 +00:00
Glenn Maynard 19ff272c01 perms fixes 2005-05-22 23:46:39 +00:00
Glenn Maynard e157d52a76 expose FileInfo
expose file permissions
2005-05-22 22:45:15 +00:00
Glenn Maynard ccc9aac5e1 hide the mouse cursor 2005-05-22 22:42:13 +00:00
Glenn Maynard 82b63a4065 mount memcard filesystems at start, logging 2005-05-22 21:13:46 +00:00
Glenn Maynard 8b1dcc850f better logging 2005-05-22 21:09:17 +00:00
Glenn Maynard ab69380599 allow mounting to the beginning of the mount list 2005-05-22 07:53:46 +00:00
Glenn Maynard b65057c6bd fix mountpoint 2005-05-22 07:25:27 +00:00
Glenn Maynard 81584d4879 update paths 2005-05-22 03:00:59 +00:00
Glenn Maynard 85f84ef81f remove backwards compatibility hack (brittle without also doing it in Unmount, etc) 2005-05-22 02:42:30 +00:00
Glenn Maynard bfda377b10 absolute mountpoints 2005-05-22 02:38:00 +00:00
Glenn Maynard 07619915f5 absolute mountpoints 2005-05-22 02:36:56 +00:00
Glenn Maynard cbd868a2f1 absolute mountpoints (shouldn't change anything; just getting rid of brittle compatibility hack in Mount) 2005-05-22 02:34:05 +00:00
Glenn Maynard 11fdc9a3d5 use /rootfs 2005-05-22 02:29:02 +00:00
Glenn Maynard d25df987d5 mount / to /rootfs 2005-05-22 02:24:59 +00:00
Glenn Maynard b664ec07b1 fix mountpoint 2005-05-22 02:13:24 +00:00
Glenn Maynard 48f74fb55e add error return from MountCard 2005-05-22 01:44:37 +00:00
Glenn Maynard 4c8c5bea37 Add variable timeouts.
After mounting or unmounting a filesystem, flush cache, so we don't keep
stale cache around.

RageFileDriverDirect::Remount could (and should) flush its own cache when
changing root (since the cache represents the old root).  However, calling
Remount doesn't indicate that the filesystem has actually changed, so if
the root isn't actually changing (Remount("/mnt") on a filesystem already
pointing to /mnt), the driver can't be expected to flush.  (Remount also
currently doesn't go through Timeout, and we need to flush on unmount,
too.)  So, take the cheap way out and just flush through FILEMAN.
2005-05-22 01:36:08 +00:00
Glenn Maynard b850a8ea50 fix FlushDirCache() doesn't flush everything (NormalizePath("") results in "/") 2005-05-22 01:10:35 +00:00
Glenn Maynard 8474247135 remove unused m_bFirstRun 2005-05-21 11:20:49 +00:00
Glenn Maynard 82b7f71728 fix RageFileObjTimeout::Copy returns a copy of the underlying object, instead of a copied RageFileObjTimeout 2005-05-21 08:56:08 +00:00
Glenn Maynard 4a64bca900 remove FirstRunInitialScreen 2005-05-21 08:36:48 +00:00
Glenn Maynard e87ef650b1 fix incorrect newline behavior when wrapping is on 2005-05-21 08:28:35 +00:00
Glenn Maynard ab317867ff remove unused 2005-05-21 07:52:53 +00:00
Glenn Maynard e374f7722f fix wrong credits messages showing 2005-05-21 07:15:41 +00:00
Glenn Maynard 350085e096 split up FileCopy, use RageFileBasic 2005-05-21 06:51:55 +00:00
Glenn Maynard 93a00528e6 fix GetDirListing("/*") returning "/" (blank file) 2005-05-21 04:32:35 +00:00
Glenn Maynard 948567aab1 fix tests 2005-05-21 03:28:35 +00:00
Glenn Maynard 23ca7e8f93 fix crash if Close times out: if DoRequest returns false, it's the thread's job to clean up.
comment excpetional case in REQ_CLOSE
2005-05-21 01:59:40 +00:00
Glenn Maynard 8f68a555a6 Load() methods, to allow error checking 2005-05-21 00:40:18 +00:00
Glenn Maynard 9d7c8980d8 update 2005-05-21 00:22:33 +00:00
Glenn Maynard fe8999ce0a RageFileManager::GetFileDriver doesn't prepend a slash to mountpoints. instead of hacking it up, fix the mountpoint names ... 2005-05-20 23:44:06 +00:00
Glenn Maynard 24321a96b9 fix warning 2005-05-20 23:17:53 +00:00
Glenn Maynard 209040e02d clean up file drivers: drivers now always receive paths with trailing slashes;
this makes handling the relative "root" directory not a special case (".").
mountpoints now always begin with a slash.  before, "/foo" and "foo" were
in two separate namespaces, which was weird and confusing; the two now
mean the same thing.  there are no more special "default mountpoints"; just
mount to "/".  "@path" mounts are now "/@path", and they do show up in
GetDirListing("/") (but, as before, opening "/@foo/bar" will never create
a "@foo/bar" path in a non-"@foo" mountpoint)
2005-05-20 22:26:54 +00:00
Glenn Maynard f4022b6bc4 fix errors 2005-05-20 05:23:27 +00:00
Glenn Maynard 812c1d5f45 isolate low-level crypto stuff in CryptHelpers, so it can be used without dragging in PREFSMAN 2005-05-20 04:48:29 +00:00
Glenn Maynard 5a80e4a542 fix crash 2005-05-20 04:34:54 +00:00
Glenn Maynard 52fd05751f fix ssprintf 2005-05-20 03:52:48 +00:00
Glenn Maynard e1c1a6db20 fix messages 2005-05-20 03:50:47 +00:00
Glenn Maynard 1640cd4ff0 clean up weird tabs, etc 2005-05-20 02:45:21 +00:00
Glenn Maynard 25979e1c58 clean up weird tabs, etc 2005-05-20 02:44:54 +00:00
Glenn Maynard ab723147bd remove unused init-by-filename code path 2005-05-20 01:42:57 +00:00
Glenn Maynard 57d9817c5c split out crypto++-specific signing code; prefer to create our own RageFileBasic 2005-05-20 01:42:25 +00:00
Glenn Maynard f098157a4f split out crypto++-specific verify code; prefer to create our own RageFileBasic 2005-05-20 01:19:47 +00:00
Glenn Maynard 98003393df warnings 2005-05-20 01:16:46 +00:00
Glenn Maynard e4a12fa22d float 2005-05-20 01:04:05 +00:00
Glenn Maynard 54bed650e4 check size before reading 2005-05-20 01:02:56 +00:00
Glenn Maynard 1cc8495a26 simplify: read files ourselves 2005-05-20 00:58:09 +00:00
Glenn Maynard b547c631e6 simplify: read files ourselves, don't bother using SecByteBlock 2005-05-20 00:45:05 +00:00
Glenn Maynard 2a8f4d02cf fix eating keys 2005-05-20 00:41:22 +00:00
Glenn Maynard fcab77004e fix warning
prefer float over double
2005-05-20 00:35:40 +00:00
Glenn Maynard aa5aff643f fix const
fix signed warning
2005-05-20 00:28:41 +00:00
Glenn Maynard b3d9debc44 remove unused (and too broad) IsGood 2005-05-20 00:18:52 +00:00
Glenn Maynard 38b10ca499 one line 2005-05-20 00:18:15 +00:00
Glenn Maynard f37a3810d6 allow reading whole files with GetFileContents 2005-05-20 00:12:43 +00:00
Glenn Maynard e64e00d6c6 allow initializing a RageFileSource with a RageFileBasic* 2005-05-19 23:39:41 +00:00
Glenn Maynard 815c1015a7 RageFile -> RageFileBasic 2005-05-19 22:59:47 +00:00
Glenn Maynard 53aea34fb2 remove unused
RageFile -> RageFile*
2005-05-19 22:50:57 +00:00
Glenn Maynard 93ff013321 cleanup, assert -> ASSERT 2005-05-19 21:34:47 +00:00
Glenn Maynard aa5c8699fb allow validating from alternate keys
fix missing HAVE_CRYPTOPP defs
2005-05-19 21:27:14 +00:00
Glenn Maynard d406068148 reduce crypto++ code by doing our own file writing (simpler) 2005-05-19 21:21:37 +00:00
Glenn Maynard f701c3f261 remove unused FirstRunInitialScreen 2005-05-19 21:05:25 +00:00
Glenn Maynard 78682940ea remove; we generate a machine keypair on demand
doing things "on first run" is fragile: it might be interrupted, in which
case we either do it again next time (running first-run tasks more than
once) or we don't do any (skipping some of them).  instead, do things
on demand, and keep track of which tasks have completed
2005-05-19 20:55:05 +00:00
Glenn Maynard f9b18c7a64 cleanup 2005-05-19 20:43:06 +00:00
Glenn Maynard 846a4bd6ae don't need to stuff this in a function (this doesn't belong in StepMania.cpp,
though ...)
2005-05-19 20:39:42 +00:00
Glenn Maynard cfaca94b4c remove hack. the problem was probably that CompareNoCase returns
a value < 0, not necessarily -1
2005-05-19 20:36:34 +00:00
Glenn Maynard 14da28b9e5 style fixes 2005-05-19 20:34:35 +00:00
Glenn Maynard b78ea78dea style fix 2005-05-19 20:32:10 +00:00
Glenn Maynard 83d8099f7f remove ConditionalBGA; it's not used. ask the list if you need to know how to do something that was done in this ... 2005-05-19 20:26:53 +00:00
Glenn Maynard 221e369b7b long-needed style update. no non-cosmetic changes. 2005-05-19 06:55:31 +00:00
Glenn Maynard 01490f8f68 revert weird wrapping hack. I can't make sense of it, and it's causing
infinite loops.  Implement overdraw handling correctly.
2005-05-19 06:11:46 +00:00
Glenn Maynard 140ec4fdca allow setting preferences from theme metrics. static.ini is deprecated. 2005-05-19 05:19:23 +00:00
Glenn Maynard acc86207d0 Don't re-read game prefs at reset; it's a hack to load game prefs
and mappings after changing the game.  Do it in ChangeCurrentGame
instead.  Don't expose ReadGamePrefsFromDisk.  (This code path
is still a little overcomplicated, but it's a bit simpler now ...)
2005-05-19 05:12:30 +00:00
Glenn Maynard 0190f4024f after most calls to ReadGamePrefsFromDisk, we call
ReadMappingsFromDisk; cleanup
2005-05-19 04:30:30 +00:00
Glenn Maynard 0ee9564bb1 license 2005-05-19 03:29:24 +00:00
Glenn Maynard 65e8bd1ac0 update 2005-05-19 01:26:41 +00:00
Glenn Maynard ea1bede8c3 drop StepMania.ini sections. Almost everything is in [Options], and it's
hard enough keeping straight which arbitrary options screen an option
is in without having a separate categorization for the INI.  (This will
simplify later changes.)
2005-05-19 01:25:38 +00:00
Glenn Maynard cf933964f2 debug -> options 2005-05-19 01:17:33 +00:00
Glenn Maynard 31c07f35d7 fix message never subscribed 2005-05-18 08:17:42 +00:00
Glenn Maynard 27413bdb35 fix compile 2005-05-18 08:14:56 +00:00
Glenn Maynard 0986e61f3d rewrite ZIP parsing. only a tiny bit of code was used from InfoZIP, causing
us to have to lug around a proportionately unreasonably big chunk of
licensing text.  (this code is smaller, too.)
2005-05-18 06:44:24 +00:00
Glenn Maynard 41682c11e3 add FileReading::ReadString 2005-05-18 06:38:25 +00:00
Glenn Maynard 62c4bb2702 remove debug cruft 2005-05-17 21:32:16 +00:00
Glenn Maynard fc9a003562 implement device descriptions in InputHandler_Linux_Joystick to fix auto-mapping 2005-05-17 21:16:36 +00:00
Glenn Maynard 9fe86706a4 fix incorrect timestamps due to InputHandler::ButtonPressed never being called 2005-05-17 21:00:28 +00:00
Glenn Maynard 8979ac38e6 warn if InputHandler::UpdateTimer is not being called 2005-05-17 20:54:58 +00:00
Glenn Maynard e1429256f3 fix InputHandler::UpdateTimer never called 2005-05-17 20:51:20 +00:00
Glenn Maynard f8f94844b2 fix zero timestamps on reset
warn about zero timestamps
2005-05-17 20:50:39 +00:00
Glenn Maynard 4e6d716027 GetRedirContents -> GetFileContents 2005-05-17 02:20:43 +00:00
Glenn Maynard dc35060c27 add SaveMachineProfile 2005-05-15 23:53:54 +00:00
Glenn Maynard 6915841774 add metrics 2005-05-15 23:49:20 +00:00
Glenn Maynard 46da0226f5 remove: SWME handles this 2005-05-15 23:45:53 +00:00
Glenn Maynard bd8fb8f727 style cleanup 2005-05-14 09:26:05 +00:00
Glenn Maynard e9ffb71c5f add RageInput::AddHandler 2005-05-14 09:23:30 +00:00
Glenn Maynard ded31d82f4 fix overly verbose driver names - Linux will never compile an Amiga joystick driver; anything a Linux user puts in his INI is clearly for Linux. 2005-05-14 02:29:18 +00:00