c0ef326340
1) file.cpp: add functions for relative path conversion, also better dox
...
2) ERR_PATH_LENGTH (instead of ERR_VFS_): now used by file.cpp also
3) better document file_enum and FileCB
This was SVN commit r1433.
2004-12-01 18:44:38 +00:00
f04af0077e
ignore .svn folders (and their contents) when mounting dirs
...
This was SVN commit r1432.
2004-12-01 08:16:01 +00:00
4d83cba7e6
add required precompiled header include
...
This was SVN commit r1431.
2004-12-01 06:52:39 +00:00
d9f30a5d42
Faster Ogg reading (~2.5x in extremely unoptimised builds)
...
This was SVN commit r1408.
2004-11-27 04:14:34 +00:00
fe54b3deeb
Fixed minor warnings
...
This was SVN commit r1406.
2004-11-27 03:22:04 +00:00
Gee
caff02e8da
I had to ask some things to make some word-processing easier/faster. Feel free to adjust anything that's crooked.
...
This was SVN commit r1395.
2004-11-24 23:47:48 +00:00
30ad195c0b
Linux/GCC Compat
...
This was SVN commit r1393.
2004-11-23 23:56:10 +00:00
d9ed18f8ca
fixed stupid bug, simplified vfs_next_dirent
...
This was SVN commit r1389.
2004-11-23 23:51:34 +00:00
313df4064c
vfs_next_dirent filter can now match *? wildcards (no longer limited to extensions)
...
updated dox, and added ERR_VFS_DIR_END code
This was SVN commit r1386.
2004-11-23 21:12:18 +00:00
03db724b99
better error handling: no assert blowing up in your face if SndData_reload fails (or is made to fail)
...
This was SVN commit r1382.
2004-11-23 19:08:30 +00:00
b2ba38e7a4
define ZLIB_DLL before zlib.h
...
This was SVN commit r1374.
2004-11-22 00:17:37 +00:00
af56d5829b
improved png write code while searching for cause of bug #24
...
This was SVN commit r1373.
2004-11-22 00:10:16 +00:00
d5473db68e
warning fix: remove redundant uint >= 0
...
This was SVN commit r1358.
2004-11-19 22:40:27 +00:00
e1bb0a3d2e
get ride of separate snd_open_def (simplifies JS interface)
...
filename is assumed to be a definition file if extension == .txt
This was SVN commit r1329.
2004-11-15 18:34:13 +00:00
MarkT
793794649f
Combat code, some scripting, broken network, and fixed some bugs.
...
This was SVN commit r1301.
2004-11-11 07:09:32 +00:00
f66de9d098
log when files are opened (used to arrange files in zip archive)
...
also added mtime to *_stat calls for XMB (check date instead of
checksum)
This was SVN commit r1288.
2004-11-07 23:00:32 +00:00
3136791492
Linux/GCC Compat(tm)
...
This was SVN commit r1284.
2004-11-07 21:30:47 +00:00
2cf79ca6cf
more dox :]
...
This was SVN commit r1279.
2004-10-30 15:17:19 +00:00
4e7b6bd165
improved dox a bit; explicit deque_finished_bufs call, instead of changing update behavior via VS_ flags.
...
This was SVN commit r1278.
2004-10-25 13:07:34 +00:00
06051e3628
cleaned up and documented. ready for use.
...
This was SVN commit r1275.
2004-10-23 19:55:41 +00:00
MarkT
d33d2e4450
Added some support for user profiles
...
This was SVN commit r1270.
2004-10-23 14:39:28 +00:00
01456b797c
further cleanup + fixed another shutdown order bug via h_force_close
...
This was SVN commit r1269.
2004-10-22 22:00:57 +00:00
6f114dcd5e
h_force_close support for sound shutdown issue
...
This was SVN commit r1268.
2004-10-22 21:58:03 +00:00
0f93e53e61
\n on debug_out
...
This was SVN commit r1266.
2004-10-21 15:08:10 +00:00
27d52a8c45
WIP. have added some dox and armor-plated the lower-level components.
...
fixed shutdown order issue mentioned in task report.
further refactoring expected for vsrc_update et al (messy) and list_*
This was SVN commit r1264.
2004-10-20 23:18:52 +00:00
1ef7ce088c
add support for forcibly closing cached files (needed when closing all active sounds before resetting openal)
...
This was SVN commit r1261.
2004-10-20 00:58:55 +00:00
8764693bd8
allow 0-length allocs without complaint (required when vfs_loading 0-length files, as happens with current art pack)
...
This was SVN commit r1258.
2004-10-19 13:29:51 +00:00
34b553e2b2
remove ogg_display junk
...
This was SVN commit r1256.
2004-10-18 14:25:13 +00:00
b5d9f886a4
Don't complain when shutting down without having played a sound
...
This was SVN commit r1252.
2004-10-17 10:21:06 +00:00
f144aa0686
as per meeting today, disabled use of OpenAL ogg extension; wrote a quick, ugly, no-good hack to decode OGG files 'manually' (using vorbis)
...
(it doesn't stream, it loads the whole thing into memory - baad)
but the steaming pile seems to work! all is good ;)
This was SVN commit r1250.
2004-10-16 20:54:24 +00:00
d272a7ebb4
remove ofs field for vfs_start_io - never used
...
This was SVN commit r1249.
2004-10-16 20:52:18 +00:00
cd24c9c6f7
fixes for RES_UNIQUE (used by sound instances) - no longer add such handles to the h_find lookup data struct, because it can't handle several instances backed by the same file
...
This was SVN commit r1239.
2004-10-15 13:19:37 +00:00
6f2c1fbb8c
WIP; still tons of debug code
...
now theoretically supports 3d positional sound; solidified snd data
provider -> VSource code
This was SVN commit r1238.
2004-10-15 13:18:34 +00:00
Gee
5b74afce82
Added unifont_height...
...
This was SVN commit r1235.
2004-10-14 10:09:51 +00:00
4f230f061d
less dependencies: handle.h forward-defines Handle, so that not everything that uses res headers is dependent on h_mgr
...
This was SVN commit r1213.
2004-10-06 14:00:43 +00:00
fecb8e38de
buggy, work-in-progress. can now again play sounds. basic culling/prioritization code in place.
...
This was SVN commit r1210.
2004-10-05 13:11:28 +00:00
7a0cf92c25
add RES_UNIQUE, required for sound code
...
This was SVN commit r1209.
2004-10-05 13:10:49 +00:00
13dfff0e12
removed unnecessary (unused) calc
...
This was SVN commit r1208.
2004-10-05 13:07:25 +00:00
df1b502bbd
Linux Compat and some updated PARANOIA code
...
This was SVN commit r1189.
2004-09-22 15:20:58 +00:00
c28c5a1beb
fix of VC2k5 fix (both pointers to tokenized string are now char*)
...
This was SVN commit r1186.
2004-09-22 00:46:12 +00:00
a1bd91d198
VC2k5 fix: don't keep converting char* -> const char* -> char*
...
This was SVN commit r1184.
2004-09-21 22:10:49 +00:00
0868b2ee6c
VC2k5 fix: strchr return value saved as const char* (cf Stu's CVS report #161 )
...
This was SVN commit r1183.
2004-09-21 18:43:58 +00:00
7925a3fc4d
Avoid crashing when something minor that should never fail fails (though the cause of that failure is fairly major (but currently unknown))
...
This was SVN commit r1174.
2004-09-20 18:27:22 +00:00
ae2d42bbad
fix incorrect buffer free (now handled by ALBuffer); work in progress
...
This was SVN commit r1172.
2004-09-19 19:29:03 +00:00
85cf439f62
slight changes (memset IOSlot; if(.. < 0) -> CHECK_ERR)
...
This was SVN commit r1171.
2004-09-19 19:28:00 +00:00
b459e7e640
fixed debug_check_heap definition
...
This was SVN commit r1170.
2004-09-19 19:27:04 +00:00
cfe4562e6a
move low-level sound/music code from musicplayer to res/snd; also put oal.* in there
...
work in progress.
This was SVN commit r1162.
2004-09-19 15:57:20 +00:00
f6cfcd0555
slight change to interface (FileIO* vs simple void* output value) to simplify Zip interface (needed to change because now it has to store data of its own in IOs when doing partial reads)
...
This was SVN commit r1161.
2004-09-19 15:51:12 +00:00
5db49638cf
worked on partial zip reads. also changed to bring in line with file/vfs for slightly changed streaming interface
...
This was SVN commit r1160.
2004-09-19 15:49:46 +00:00
d3f452cd80
- add vfs_io_complete (wasn't in header) and vfs_size (convenience function)
...
- have vfs_load allocate the buffer, so mem_assign is no longer needed.
exposes buffer alignment requirement to VFS, but hey. simplifies things
a good bit.
- moved performance measuring crap to vfs_timed_io, a wrapper function
- various fixes for streaming code
This was SVN commit r1159.
2004-09-19 15:42:32 +00:00
b3a5bad377
fix 2 stupid h_mgr_shutdown bugs leading to failure to close some leaked handles at exit (see bug 26)
...
- was iterating over all HDATA slots up to last_in_use, but it is
inclusive
- when closing, wasn't resetting refcount, so h_free kept those with
refcount > 1 open
This was SVN commit r1158.
2004-09-19 13:46:38 +00:00
a872461a47
no longer 2 tex_write calls - just one that fills a TexInfo directly => no longer need mem_assign to wrap a pointer, only to dereference immediately thereafter
...
This was SVN commit r1157.
2004-09-19 13:43:53 +00:00
d46cf9cf1f
remove mem_assign and mem_assign_user (all call sites rewritten so that they're no longer needed)
...
still available in source, but shouldn't be necessary.
This was SVN commit r1156.
2004-09-19 13:41:49 +00:00
e4f160df27
fix headers: ogl_tex.h is user-level texture stuff, tex.h is only the texture loader.
...
this came up due to header change - some unnecessary stuff isn't
included by default anymore.
This was SVN commit r1155.
2004-09-19 11:57:51 +00:00
02ec0a7e62
add comment: tex_upload binds texture as a side effect
...
This was SVN commit r1154.
2004-09-19 11:40:42 +00:00
7c269d7735
better encapsulation of header (=> less dependencies)
...
This was SVN commit r1151.
2004-09-19 11:36:26 +00:00
5a8dd803a7
fix for gcc: philip reports it doesn't have upper_bound (although it's part of STL). replaced with equal_range
...
This was SVN commit r1150.
2004-09-19 11:23:12 +00:00
Gee
5c2838f7cf
Forgot to remove a temp log-output
...
This was SVN commit r1129.
2004-09-06 03:21:56 +00:00
Gee
6e07632775
Changed a function that the GUI uses to Unicode.
...
This was SVN commit r1127.
2004-09-06 02:24:34 +00:00
3b15f3f1e4
Text alignment alterations
...
This was SVN commit r1119.
2004-09-04 20:35:12 +00:00
f05afa04a2
fix incorrect Tex_reload state handling (caused actual reloads to fail, i.e. display white texture)
...
This was SVN commit r1079.
2004-08-28 17:44:28 +00:00
c630437a9e
Removed -- it was no longer used (replaced by unifont.(cpp|h)) and causing conflicts with ps/Font.cpp
...
This was SVN commit r1077.
2004-08-28 13:35:48 +00:00
70d84beab2
Altered font handling -- now uses CFont in preference to unifont_* (yay, pointless OO) and allows font mapping ("default"=>"palatino12", etc) using .cfg files
...
This was SVN commit r1074.
2004-08-27 22:08:30 +00:00
1aae7dcead
more dox!
...
also found problem with partial reads from zip; not important since all
files are currently loaded in one go, but will attack tomorrow.
This was SVN commit r1065.
2004-08-27 00:33:20 +00:00
c01f1f00a8
Minorly better error handling
...
This was SVN commit r1053.
2004-08-24 21:07:20 +00:00
4ce93a9f12
remove misalign warning (no longer relevant)
...
This was SVN commit r1052.
2004-08-24 17:42:46 +00:00
df5ba1f690
simplification: only VFS allocates output buffer
...
This was SVN commit r1051.
2004-08-24 17:34:00 +00:00
13e5f5dc11
underwent review, armor-plating and documentation. "finished" (i hope) except for one last outstanding issue:
...
special-casing uncompressed files in archive. the impl is hackish ATM,
and requires further work on the file_io cache.
This was SVN commit r1050.
2004-08-24 17:29:54 +00:00
59fd28fc93
GCC fixes: made zip_archive_open/close not inline
...
This was SVN commit r1033.
2004-08-21 12:54:25 +00:00
57fad52ef3
GCC non-fixes: marked broken code
...
This was SVN commit r1032.
2004-08-21 12:53:17 +00:00
a8f64267a2
GCC fixes: evil goto.
...
This was SVN commit r1030.
2004-08-21 12:50:55 +00:00
f94ecbd6d7
hide ugly multimap code behind interface
...
This was SVN commit r1022.
2004-08-19 12:03:15 +00:00
e6324c95d6
add rationale for non-caching async IO and not prefetching
...
This was SVN commit r1021.
2004-08-19 12:02:58 +00:00
0706801286
heeding thoreau's "simplify" call. fat trimmed from tree_lookup and remount;
...
no longer support single archives: discussed with stu, it's not
necessary
This was SVN commit r1020.
2004-08-19 12:02:15 +00:00
d58e16e0ff
work in progress. caching moved to sync IO code (simplifies things).
...
This was SVN commit r1017.
2004-08-18 02:12:52 +00:00
e2970992fd
fix FileIO type; also new transfer mode for uncompressed files that allows using the file cache (HACK!)
...
This was SVN commit r1016.
2004-08-18 02:11:50 +00:00
3d455fc05f
h_find now via hash multimap instead of linear search (it's called often)
...
This was SVN commit r1015.
2004-08-18 02:08:15 +00:00
4934c7cbe2
don't cache VDir (not copy equivalent). fixes bug that caused terrain textures not to load.
...
also renamed FileIO
This was SVN commit r1014.
2004-08-18 02:06:23 +00:00
0d6477d83b
add note and added (currently commented out) debug_outs to determine when/why handles are being allocated
...
This was SVN commit r1011.
2004-08-17 21:06:08 +00:00
8e823492b5
better names for inf_* routines
...
This was SVN commit r1003.
2004-08-16 13:20:53 +00:00
611ec4f10d
add throughput measure
...
This was SVN commit r1002.
2004-08-16 13:19:10 +00:00
94316413db
rough initial implementation of revised L3 file block cache. works, considerable speedup.
...
also: async routines now fill a control block, instead of returning a
handle (that's now done by VFS)
This was SVN commit r1001.
2004-08-15 21:50:29 +00:00
48ecbe3c48
VFS wraps async IO control block in a handle (better separation of powers ;))
...
This was SVN commit r1000.
2004-08-15 21:49:17 +00:00
caedad6fc4
allow freeing 0 ptrs
...
This was SVN commit r999.
2004-08-15 21:48:34 +00:00
788b177e81
async routines now fill a control block, instead of returning a handle (that's now done by VFS)
...
This was SVN commit r998.
2004-08-15 21:47:47 +00:00
5ff6c98c95
bugfix in IO callback (was incorrectly reporting # bytes read); async routines now fill a control block, instead of returning a handle (that's now done by VFS)
...
This was SVN commit r997.
2004-08-15 21:47:32 +00:00
5edadf1433
don't cache handles that don't have a key (i.e. couldn't be found when reloading)
...
This was SVN commit r991.
2004-08-14 12:36:03 +00:00
3ba9855b2e
wasn't converting native path to portable before sending to VFS.
...
fixes assert after screenshot write reported by stu
This was SVN commit r990.
2004-08-14 12:28:54 +00:00
7e1bcd5159
Slightly nicer cursor loading (using the resource system for caching)
...
This was SVN commit r986.
2004-08-12 17:36:48 +00:00
0b452320ef
add callback for sync I/O (useful for reporting progress)
...
This was SVN commit r978.
2004-08-12 15:51:31 +00:00
df9dcc5711
opening files as a directory -> problem with dir_watch. solved
...
This was SVN commit r977.
2004-08-11 23:25:37 +00:00
04c4e7ae02
now case-insensitive; added tags to each path variable to tell what kind
...
also fixed some bugs, Zip loading is successfully integrated.
This was SVN commit r975.
2004-08-11 20:24:26 +00:00
1f2ebb678e
slightly change file_enum interface (don't need flags); comments
...
This was SVN commit r974.
2004-08-11 20:23:22 +00:00
c5701c8299
add higher-level dox, fix some bugs, made case-insensitive
...
This was SVN commit r973.
2004-08-11 20:21:42 +00:00
e67ed4acc0
pass dir_watch the native path, so that it has a chance at working ;p
...
This was SVN commit r972.
2004-08-11 20:20:03 +00:00
93b40f835e
improvement: don't cache if reload failed
...
This was SVN commit r971.
2004-08-11 20:19:31 +00:00
023592d23f
bugfixes related to "lying about user's buffer" feature
...
also rearranged + cleaned up a bit
This was SVN commit r959.
2004-08-10 16:01:04 +00:00
7c36638fd0
minor bugfix / commenting
...
This was SVN commit r958.
2004-08-10 15:59:11 +00:00
e4867475dd
no longer use LOC_ZIP
...
This was SVN commit r957.
2004-08-10 15:58:54 +00:00
b81d75a0f3
add file_io_complete call for polling.
...
also some bugfixes related to reading from zip
This was SVN commit r956.
2004-08-10 15:57:35 +00:00
59231be9a7
massive cleanup, commenting, hardening, bugfixes => mostly works :)
...
This was SVN commit r955.
2004-08-10 15:56:04 +00:00
6e1887ad8b
removed LOC_ZIP (not needed; callback can determine via Loc.archive if it's a zip file)
...
This was SVN commit r954.
2004-08-10 15:55:24 +00:00
0b3361b6f5
several bugfixes for loading from Zip (currently broken)
...
This was SVN commit r950.
2004-08-09 16:46:57 +00:00
687aea271e
fixed alignment (broken after last user_p change)
...
This was SVN commit r949.
2004-08-09 16:44:42 +00:00
abfe9faadc
New zlib/libpng libraries
...
This was SVN commit r942.
2004-08-08 18:50:44 +00:00
7545ad13b8
Corrected cursor orientation
...
This was SVN commit r941.
2004-08-08 18:38:42 +00:00
ec7e3c890c
texture loaders now flip png (always) and bmp+tga (if top-down)
...
also more clear TGA header use (struct instead of direct offset)
This was SVN commit r939.
2004-08-08 18:07:46 +00:00
5bdfaf5758
fix several bugs related to tag reset when reopening cached handles
...
This was SVN commit r938.
2004-08-08 18:04:03 +00:00
f08cd3466c
increase REF_BITS to 16 (=> 64k refs possible)
...
This was SVN commit r936.
2004-08-08 16:40:59 +00:00
ca9174e1d8
update vfs_load; now returns handle with the correct file size (i.e. leaving out padding)
...
This was SVN commit r934.
2004-08-07 13:45:03 +00:00
58a0437e66
fix comment on not storing aiocb in struct File
...
This was SVN commit r933.
2004-08-07 13:44:28 +00:00
09cf9dce75
add support for lying about a memory handle's actual allocation (useful for the file code, which allocates extra room for padding yet wants to return the allocation's handle)
...
This was SVN commit r932.
2004-08-07 13:34:43 +00:00
58ae20116a
due to mem fix, DDS file size is correct; assert that verifies that was moved here from ogl_tex and un-commented-out
...
This was SVN commit r931.
2004-08-07 13:33:30 +00:00
5026705fe8
moved DDS file size check to tex (it's file format-specific)
...
This was SVN commit r930.
2004-08-07 13:32:32 +00:00
c1dc584e22
use get_executable_path (sysdep) instead of relying solely on argv0
...
This was SVN commit r918.
2004-08-05 19:20:45 +00:00
bcbb2a36c7
missing brace - d'oh!
...
This was SVN commit r916.
2004-08-05 14:06:16 +00:00
a91b0d9368
only store HMem if FILE_CACHE
...
This was SVN commit r915.
2004-08-05 14:02:10 +00:00
d274e4c7f9
more comments; also SECTOR_SIZE constant added
...
This was SVN commit r914.
2004-08-05 14:01:49 +00:00
b2afef529c
Introducing: The Pre-Game State. The game instance is not created on program load as before, but can be started by JS functions.
...
This was SVN commit r912.
2004-08-05 13:07:51 +00:00
338b849b4c
FILE_CACHE flag: overrides default of not caching the file handle (see explanation in latest build thread)
...
This was SVN commit r910.
2004-08-05 12:48:13 +00:00
affb03cbc4
add flags param for future use (as in vfs_store)
...
This was SVN commit r909.
2004-08-05 12:47:40 +00:00
a1cf32474a
RES_TEMP scope alias: RES_NO_CACHE
...
This was SVN commit r908.
2004-08-05 12:45:56 +00:00
f1c7af9a95
ignore .xmb files when reloading (not critical, just avoids output clutter)
...
This was SVN commit r890.
2004-08-03 12:56:44 +00:00
78d47d3016
fixed funny bug: file write handles were cached; VFS writes (eg. screenshots) led to reload -> wiped out file contents
...
temp solution: do not cache file writes; see latest build thread.
This was SVN commit r885.
2004-08-02 22:16:18 +00:00
06725f7613
be less annoying when tag security check is undermined
...
This was SVN commit r884.
2004-08-02 21:29:55 +00:00
8485fc3d82
cleanup; keep_open scheme that means resources will actually be cached (default is now to keep in mem). caching control is still missing
...
This was SVN commit r882.
2004-08-02 13:46:44 +00:00
4c3f1027dd
small optimization: rounds offset down (and restores later) to avoid buffer copy in waio
...
This was SVN commit r881.
2004-08-02 13:45:35 +00:00
3e92b4a043
comment path conversion functions
...
This was SVN commit r880.
2004-08-02 13:44:48 +00:00
0d9523d921
fix aiocb struct size assumption (was included in resource control block; now allocated dynanmically)
...
This was SVN commit r876.
2004-08-01 20:23:53 +00:00
30553628ab
remove dead code
...
This was SVN commit r875.
2004-08-01 20:23:11 +00:00
29f5d23dae
no change
...
This was SVN commit r868.
2004-07-31 19:36:46 +00:00
a060a65a95
attempt to get Zip archives working (problem with directory traverse in VFS). not quite there yet
...
This was SVN commit r867.
2004-07-31 19:36:06 +00:00
7618033b3a
no longer emulate FAM, due to a stupid design flaw. instead, implement sysdep/dir_watch interface
...
This was SVN commit r866.
2004-07-31 19:35:22 +00:00
bbb57ac6db
Removed references to font.h
...
This was SVN commit r856.
2004-07-31 12:44:13 +00:00
fa4fc7f4ee
change CVFSFile header path
...
This was SVN commit r855.
2004-07-31 11:38:13 +00:00
363fba9b94
moved from lib/res/ to ps/
...
This was SVN commit r854.
2004-07-31 11:36:44 +00:00
ab2b08d97b
fix a problem that allowed use of non-open but cached resources
...
This was SVN commit r853.
2004-07-31 11:29:57 +00:00
2c23606c31
hook up aio; cleanup; commenting
...
This was SVN commit r850.
2004-07-31 11:03:17 +00:00
1d57c77aed
greatly simplified (1500 -> 1000 lines) by stripping out previous overly complicated caching mechanism.
...
will replace with new, simpler cache that only stores temp buffers for
first and last block when reading from ZIp (everything else is covered
by handle manager cache)
This was SVN commit r848.
2004-07-31 02:02:44 +00:00
bc8ab4cc81
slight improvements in use of res code.
...
This was SVN commit r847.
2004-07-31 01:57:26 +00:00
f31bc328f2
Moved all cursor code into cursor.cpp
...
This was SVN commit r844.
2004-07-29 16:14:22 +00:00
36c502713b
Used mem_free_h on the Handle returned by vfs_load
...
This was SVN commit r842.
2004-07-29 16:12:27 +00:00
7820919689
Added CVFSFile, a simple wrapper around vfs_load to allow slightly cleaner code elsewhere
...
This was SVN commit r841.
2004-07-29 16:10:33 +00:00
79eaacfba1
slight simplification seen while debugging
...
This was SVN commit r835.
2004-07-28 17:53:45 +00:00
386900c0fc
Linux/GCC Compat
...
This was SVN commit r819.
2004-07-27 00:26:51 +00:00
c8514b7d28
OpenGL cursor (for non-Windows)
...
This was SVN commit r817.
2004-07-24 19:38:12 +00:00
fe1bee706b
Fixed loads of /W4 warnings, because it's easier than doing anything useful. Added some asserts to check potentially dangerous assumptions, implemented a few missing bits of code, adjusted some comments, etc.
...
This was SVN commit r814.
2004-07-24 14:04:40 +00:00
kezz
1d44976b35
removing sound.cpp and sound.h as not needed at the moment due to switch to OpenAL
...
This was SVN commit r768.
2004-07-17 16:23:14 +00:00
8684287360
Linux fixes
...
This was SVN commit r763.
2004-07-15 19:59:27 +00:00
977693c7db
GUI text renderer
...
This was SVN commit r745.
2004-07-13 22:48:53 +00:00
950db27b2c
fix take-address-of-temporary bug
...
This was SVN commit r739.
2004-07-13 21:13:10 +00:00
21e685b1f6
fix refcount (now initialized to 1)
...
This was SVN commit r738.
2004-07-13 21:12:46 +00:00
dccdd0c747
Allow font unloading
...
This was SVN commit r734.
2004-07-12 20:08:34 +00:00
c27c765121
tiny comment and debug string change
...
This was SVN commit r719.
2004-07-12 14:22:17 +00:00
14aa03f3b0
Linux/GCC compat: wchar_t size fix for glCallLists
...
This was SVN commit r714.
2004-07-11 20:29:34 +00:00
1001aeacf5
Linux/GCC compat, headers and such
...
This was SVN commit r695.
2004-07-10 21:25:35 +00:00
4769a92894
Added newline at end
...
This was SVN commit r689.
2004-07-10 20:28:18 +00:00
d5197e3c77
revised mount logic; now stores the mount point and uses it to correctly convert from VFS to native paths
...
This was SVN commit r675.
2004-07-09 19:58:43 +00:00
af58e59633
pass FILE_NO_AIO at open instead of calling uncached_* (which ended up duplicating code)
...
This was SVN commit r674.
2004-07-09 19:57:59 +00:00
dc5e5dd774
PNG and BMP "encode" now operational
...
This was SVN commit r672.
2004-07-09 02:18:59 +00:00
41d8db6f81
add vfs_exists, uncached_io, and change IO interface to value-return buffer param (void**)
...
This was SVN commit r671.
2004-07-09 02:17:37 +00:00
306053c994
bring read interface into line with vfs_io (value-return buffer param)
...
This was SVN commit r670.
2004-07-09 02:14:21 +00:00
8306c53492
increase control block size to "plenty" until things settle
...
This was SVN commit r669.
2004-07-09 02:13:09 +00:00
226fd70292
now open files in binary mode on windows (thanks to philip for catching this)
...
This was SVN commit r661.
2004-07-08 15:10:26 +00:00
a779ef8595
common interface to texture format codecs; work started on encoders (to write textures)
...
This was SVN commit r658.
2004-07-08 14:40:24 +00:00
b7a05fd50b
fix iterator invalidation bug triggered by multiple mount points; add vfs_uncached_io()
...
This was SVN commit r657.
2004-07-08 14:38:58 +00:00
875d78d10b
reqnum = int; complain if watch failed
...
This was SVN commit r655.
2004-07-08 14:33:58 +00:00
0c05abb304
fixes for write code and new uncached_write routine (bypass cache, no file padding problem)
...
This was SVN commit r654.
2004-07-08 14:30:35 +00:00
bfafb8fce4
add to some comments
...
also removed redundant VFS file open flags
This was SVN commit r633.
2004-07-05 02:33:47 +00:00
7bb375ac69
completed support for writing files (hopefully). now adds them to the VFS tree.
...
also removed VFS file open flags, used file.h flags instead
This was SVN commit r632.
2004-07-05 02:32:43 +00:00
680d5dd7b4
revisions to file open flag comments. btw, these are now also used by VFS
...
This was SVN commit r631.
2004-07-05 02:31:32 +00:00
e9a7876e0d
slight changes to open / stat interface to bring in line with SUS (and therefore POSIX, i hope)
...
also pass in pmode
This was SVN commit r630.
2004-07-05 02:30:53 +00:00
64444251d4
fixed bug (missing else) reported by philip. thanks!
...
This was SVN commit r615.
2004-06-30 18:47:15 +00:00
ddd7821425
res reload callback interface change: now also receives handle of object being reloaded. simplifies tex reload code
...
This was SVN commit r602.
2004-06-25 22:19:19 +00:00
766a0b4077
split tex code into (file format specific) loaders and opengl texture ops like upload()
...
This was SVN commit r601.
2004-06-25 22:18:03 +00:00
cc02e9ea97
more abstraction in VFS<->dir watch interface (thinking of using dazuko and/or FAM)
...
This was SVN commit r594.
2004-06-23 16:29:03 +00:00
fc476e04f6
stomped on numerous warnings
...
This was SVN commit r584.
2004-06-21 16:29:47 +00:00
24f0756712
bail if #chars = 0 (avoid BC warning); fix debug messages
...
This was SVN commit r574.
2004-06-21 12:49:37 +00:00
c01eb01dfb
Linux fixedness
...
This was SVN commit r567.
2004-06-19 21:13:10 +00:00
aed6d949d5
new #included
...
This was SVN commit r566.
2004-06-19 21:12:39 +00:00
2299573567
now catches bad_alloc exceptions thrown during reloads (=> no need to wrap new in exception handler there)
...
This was SVN commit r558.
2004-06-19 14:45:46 +00:00
d181ccf97e
Hopefully now working in gcc *and* MSVC
...
This was SVN commit r542.
2004-06-18 19:14:42 +00:00
32b6627645
Miscellaneous gcc fixes
...
This was SVN commit r541.
2004-06-18 18:56:10 +00:00
3b6ad836e2
Minor header adjustments
...
This was SVN commit r536.
2004-06-18 18:34:04 +00:00
38bfabeb38
fixed goto problem with gcc - was jumping over an (unused) var decl
...
This was SVN commit r535.
2004-06-18 14:59:50 +00:00
941f7c3661
bullet-proofing - fail if reloading VDir
...
This was SVN commit r531.
2004-06-18 13:32:33 +00:00
8347bebebc
Spelling corrction
...
This was SVN commit r524.
2004-06-16 16:29:38 +00:00
f149e007e1
Unicode fonts
...
This was SVN commit r520.
2004-06-16 15:36:49 +00:00
358f43205a
Allow texture format override, so that the 8-bit GL_ALPHA fonts can work
...
This was SVN commit r519.
2004-06-16 15:35:05 +00:00
e1997e6b31
added a few comments
...
This was SVN commit r506.
2004-06-14 12:59:15 +00:00
ed23cb7cc1
hopefully bulletproof is_subpath
...
This was SVN commit r497.
2004-06-13 19:13:32 +00:00
da1e6df5f0
uhoh, yet another problem. quick fix so others aren't impacted; investigating
...
This was SVN commit r496.
2004-06-13 17:15:38 +00:00
3893d1597d
fixed loophole in mount path handling (cannot now mount parent dir of a previous mounting)
...
This was SVN commit r495.
2004-06-13 16:58:22 +00:00
f1713bbca0
improved mount logic; added comments
...
This was SVN commit r491.
2004-06-13 16:12:54 +00:00
641ad1e382
moved fmod shutdown here from main - this module is responsible for that.
...
This was SVN commit r485.
2004-06-13 15:32:34 +00:00
15ca5cbf21
newline stomper and fixed warnings
...
This was SVN commit r473.
2004-06-11 02:14:18 +00:00
MarkT
e4fe4ed602
JS Interface to entities. It even partially works now.
...
This was SVN commit r469.
2004-06-10 22:24:03 +00:00
a30a82469e
some toe-stepping that evidently resulted in two prot variables :P
...
This was SVN commit r465.
2004-06-09 22:38:37 +00:00
bb1a9bad7d
fail file_map requests for empty files (avoids bc warning)
...
This was SVN commit r460.
2004-06-09 16:10:23 +00:00
25d2a41c64
glprintf: ignore empty strings (avoids bc warning)
...
This was SVN commit r459.
2004-06-09 16:09:07 +00:00
ca523e9f3c
GCC compat (init skipped by goto)
...
This was SVN commit r442.
2004-06-09 13:49:32 +00:00
5d440712f2
GCC compat
...
This was SVN commit r441.
2004-06-09 13:48:49 +00:00
5b8d980809
Fixed path_validate debug statement
...
This was SVN commit r438.
2004-06-09 13:44:12 +00:00
825289242a
added vfs_get_path (bad name) - returns the VFS path to a given real dir
...
(used by res.cpp to translate paths from WFAM)
This was SVN commit r426.
2004-06-08 15:21:42 +00:00
d7dbf08bc2
auto-reload finished (last remaining problem: translating OS paths to VFS)
...
This was SVN commit r425.
2004-06-08 15:18:01 +00:00
78fa30be94
export path conversion function for res.cpp interaction with FAM
...
This was SVN commit r424.
2004-06-08 15:16:50 +00:00
f9ad314f5a
fix empty-statement warning (i.e. comment out - that spot isn't implemented yet)
...
This was SVN commit r407.
2004-06-07 00:04:37 +00:00
815e177beb
now responsible for watching mountings for changes via FAM
...
This was SVN commit r406.
2004-06-07 00:04:02 +00:00
2dcb0d8056
more header fixes
...
This was SVN commit r401.
2004-06-04 17:47:12 +00:00
7b9e881039
initial code using FAM API. unfinished; one problem remaining is how to convert absolute paths to their VFS equivalent
...
This was SVN commit r400.
2004-06-04 17:44:56 +00:00
0dc6007fbd
(re)added headers so it'll work without HAVE_PCH
...
This was SVN commit r396.
2004-06-04 12:41:53 +00:00
c7a84e84be
added precompiled.h everywhere
...
This was SVN commit r392.
2004-06-03 18:38:14 +00:00
c15300446e
fix stupid mmap bug reported by simon
...
This was SVN commit r387.
2004-06-03 14:20:09 +00:00
0b3d0c9e5c
small interface changes to bring in line with vfs and file
...
This was SVN commit r386.
2004-06-03 13:57:36 +00:00
cb75497412
documentation! w00t
...
This was SVN commit r385.
2004-06-03 13:57:00 +00:00
2339389870
implemented refcount for mmap
...
This was SVN commit r376.
2004-06-03 00:27:50 +00:00
2d51e32878
some bulletproofing; completed+documented mmap
...
This was SVN commit r373.
2004-06-03 00:17:24 +00:00
af3949ab7a
updated file mapping (was partially unimplemented)
...
This was SVN commit r371.
2004-06-02 20:41:05 +00:00
f8dafe455d
CVS dirs are skipped when mounting
...
This was SVN commit r362.
2004-06-02 16:58:35 +00:00
719b8f1074
fixed *nix libpng include fix
...
This was SVN commit r361.
2004-06-02 16:33:59 +00:00
4ba7fc3b7c
yet more tree_lookup fixes for bug pointed out by simon
...
This was SVN commit r358.
2004-06-02 16:12:13 +00:00
85f335e0fe
fixed tree_lookup - now allows dir names (with optional trailing slash)
...
This was SVN commit r354.
2004-06-02 15:32:42 +00:00
c0d33d3330
Linux/GCC compat, a few newlines at end of file, minor changes
...
This was SVN commit r353.
2004-06-02 15:31:55 +00:00
9bdbc49306
now pull in .lib file via source (more convenient than using project settings)
...
This was SVN commit r339.
2004-06-02 01:07:25 +00:00
kezz
11979a48fa
kezz - adding preliminary sound code
...
This was SVN commit r336.
2004-06-01 22:19:53 +00:00
3abf9ac4b5
lots of type fixes; types.h is now a convenience wrapper on top of the standard uintN_t routines
...
This was SVN commit r334.
2004-06-01 17:34:12 +00:00
47a4af4c82
fixed bug found via mem leak: handles now closed at exit regardless of refcount
...
This was SVN commit r323.
2004-05-30 00:57:20 +00:00
1eaadd38aa
ran everything though mark's newline stomper.
...
This was SVN commit r322.
2004-05-30 00:46:58 +00:00
notpete
86eaf95476
Added function for retrieving GL texture object from a texture handle.
...
This was SVN commit r296.
2004-05-29 20:45:18 +00:00
1c5a2d8f10
started vfs enumerate directory support, not finished or functional
...
This was SVN commit r292.
2004-05-29 12:00:53 +00:00
672c25084b
fixed log location; win code modules now register init/shutdown (=> less dependencies, more control over init order)
...
This was SVN commit r277.
2004-05-27 17:30:06 +00:00
bb3db6daf8
fixed remnant of set-root-dir problem; now finally works correcly when started from batch file. no extra path/chdir necessary.
...
This was SVN commit r276.
2004-05-27 01:11:21 +00:00
9aacf9b4bf
no message
...
This was SVN commit r275.
2004-05-27 00:29:54 +00:00
MarkT
51375831f1
Desync-ed unit motion.
...
This was SVN commit r274.
2004-05-26 23:47:46 +00:00
0c8ea18853
upgrade to new libpng and zlib (see announcements thread)
...
This was SVN commit r270.
2004-05-26 19:28:42 +00:00
6c608edd60
linefix stomped everything :P
...
This was SVN commit r266.
2004-05-25 23:16:21 +00:00
df6fceba62
fixed some signed/unsigned warnings; added gamma control via SDL
...
This was SVN commit r258.
2004-05-24 20:25:48 +00:00
34c3c12934
fixes for VC6 build problems reported by Stu.
...
This was SVN commit r239.
2004-05-18 00:38:39 +00:00
556afb4a5c
fixed current directory problem. added healthy does of paranoia to file_rel_chdir, and removed bogus chdir from main.cpp (from test code)
...
This was SVN commit r238.
2004-05-17 13:23:39 +00:00
fbba2e463d
merged in rich's demo
...
This was SVN commit r236.
2004-05-16 03:31:29 +00:00
notpete
7b2a86a862
Added support for mipmapping DDS textures
...
This was SVN commit r229.
2004-05-15 17:47:48 +00:00
c6054e9c4f
automagic reload implemented (vfs and file monitor)
...
This was SVN commit r227.
2004-05-14 21:20:23 +00:00
76b52d1d8a
remove vc6,vc7; use premake instead (will generate workspace in workspaces\vc7 , vc6)
...
This was SVN commit r226.
2004-05-13 17:23:07 +00:00
d1036b9a18
VFS updates; texture reloading now works, tex.cpp is WIP
...
This was SVN commit r223.
2004-05-13 13:52:48 +00:00
f383cfd4a8
fix for vc7 (incomplete type in container). also some updates to vfs
...
This was SVN commit r221.
2004-05-08 01:11:51 +00:00
591c02acb0
no message
...
This was SVN commit r218.
2004-05-07 01:27:05 +00:00
5b5726ed4d
merge of (work in progress) VFS code with new dir layout
...
This was SVN commit r216.
2004-05-06 17:14:30 +00:00
aa2999a865
- Extended tex_info for terrain stuff
...
- Commented out assertion (due to the file size bug)
This was SVN commit r204.
2004-04-13 16:55:55 +00:00
89ab9643dc
file_wait_io: -EINPROGRESS => EINPROGRESS, removed stray bytes_transferred assertion
...
This was SVN commit r196.
2004-04-09 12:38:16 +00:00
630e5c628c
no message
...
This was SVN commit r194.
2004-04-07 13:45:57 +00:00