468fb35ab5
waio.h: moved some signal handler defs here from wposix
...
This was SVN commit r1778.
2005-01-23 18:04:02 +00:00
9b7af0ce08
safer mutex impl; split some parts out into waio (signal defs, only used in aiocb) and wposix_types
...
This was SVN commit r1777.
2005-01-23 17:57:52 +00:00
bc52269989
lint fixes; changed wtime init order
...
This was SVN commit r1776.
2005-01-23 17:56:00 +00:00
85fd8a0f0e
stomped various lint warnings:
...
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned
also KB -> KiB, MB -> MiB
This was SVN commit r1775.
2005-01-23 17:54:20 +00:00
44ffb32169
fix include path (relative to lib)
...
This was SVN commit r1774.
2005-01-23 17:50:07 +00:00
e332d876f8
stomped various lint warnings:
...
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned
This was SVN commit r1773.
2005-01-23 17:48:32 +00:00
a43205148b
stomped various lint warnings:
...
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned
This was SVN commit r1772.
2005-01-23 17:45:25 +00:00
4360c501d8
mouse_x/y => g_mouse_x/y
...
This was SVN commit r1771.
2005-01-23 17:42:28 +00:00
fbc212ea5d
mouse_x/y => g_mouse_x/y
...
This was SVN commit r1770.
2005-01-23 17:41:01 +00:00
d7bf0b7fbe
use of new made suitable for mmgr's macro
...
This was SVN commit r1769.
2005-01-23 17:37:45 +00:00
ad16ecfb36
fix bug: was assigning char to pointer, instead of writing to *pointer
...
This was SVN commit r1768.
2005-01-23 17:36:57 +00:00
d29833e4ed
mouse_x/y => g_mouse_x/y
...
This was SVN commit r1767.
2005-01-23 17:35:36 +00:00
e8121ca394
Also allow access to the last player ;-)
...
This was SVN commit r1765.
2005-01-23 12:54:14 +00:00
NoMonkey
0df00e5b16
This was SVN commit r1761.
2005-01-23 08:28:56 +00:00
NoMonkey
d9f1a06b34
This was SVN commit r1760.
2005-01-23 08:22:52 +00:00
NoMonkey
674433a51a
This was SVN commit r1759.
2005-01-23 07:54:17 +00:00
6dcac374e7
Oops, forgot to add the PS_MAX_PLAYERS constant
...
This was SVN commit r1757.
2005-01-23 04:14:49 +00:00
bcf89936c1
Fixed a few memory leaks as well as the CPlayer/SColour crash-on-exit bug
...
This was SVN commit r1756.
2005-01-23 01:36:47 +00:00
113d89e148
Possible texture environment code for single-pass player-colour rendering
...
This was SVN commit r1754.
2005-01-22 21:25:27 +00:00
71e3b4e289
Allow clipboard pasting into input boxes (with the same hotkeys as the console - insert or ctrl+v)
...
This was SVN commit r1752.
2005-01-22 18:46:03 +00:00
e717aaf997
Fixed warnings
...
This was SVN commit r1751.
2005-01-22 18:38:58 +00:00
ae38aee3d2
Revamped CNetClient/CNetServer JS Interface and new CGameAttributes
...
implementation (moving towards a merger of CGameAttribs into CGame).
This was SVN commit r1746.
2005-01-19 22:32:25 +00:00
a410c2852c
Updated ScEd's handling of players (though in a rather nasty way, since it doesn't actually have a CGame, and so it has no CPlayers, and so there are loads of HACK comments everywhere)
...
This was SVN commit r1740.
2005-01-18 12:45:56 +00:00
MarkT
9a2979edec
This was SVN commit r1738.
2005-01-18 10:57:17 +00:00
MarkT
1b961ec163
This was SVN commit r1737.
2005-01-18 10:52:22 +00:00
MarkT
60afb0ee2d
This was SVN commit r1736.
2005-01-18 10:49:32 +00:00
MarkT
20ce33094f
This was SVN commit r1735.
2005-01-18 10:49:06 +00:00
MarkT
6b64327a19
This was SVN commit r1734.
2005-01-18 10:48:51 +00:00
MarkT
25fdbfd931
Fixes for two pathfinding bugs (neither of which were actually pathfinding bugs), added player objects (details in TM)
...
This was SVN commit r1733.
2005-01-18 00:46:18 +00:00
4b5aff926d
Fixed compilation errors
...
This was SVN commit r1731.
2005-01-17 10:20:47 +00:00
2077698156
New JavaScript interface for the network client, plus some linux/gcc/misc fixes
...
This was SVN commit r1730.
2005-01-17 04:52:02 +00:00
1c044ac229
Primitive entity player-selection in ScEd
...
This was SVN commit r1727.
2005-01-16 23:09:41 +00:00
551bef482a
Prevented crash when loading non-existent maps
...
This was SVN commit r1721.
2005-01-15 17:20:51 +00:00
38b30e5eb4
Corrected ICC errors and some warnings. Removed some unnecessarily verbose logging. Did minor things.
...
This was SVN commit r1718.
2005-01-13 00:17:31 +00:00
4720a00f98
Made ScEd output entities into an XML file.
...
Added CStrW::utf8() (used by XMLWriter).
This was SVN commit r1716.
2005-01-12 14:31:47 +00:00
fc4a34d768
Nicer XML-writing system
...
This was SVN commit r1711.
2005-01-11 20:15:39 +00:00
15fcf8f054
Neatened some debug messages. Changed main.cpp so ScEd can use it. Fixed minor inconsistencies and warnings.
...
This was SVN commit r1708.
2005-01-11 16:58:16 +00:00
16a3ee4a4b
Fixed fix, to correct precedence (as warned about by the friendly compiler ;-) )
...
This was SVN commit r1707.
2005-01-11 16:40:01 +00:00
629e5999e0
vfs: fixed an apparently untested "quick change" to an assert that was triggering. boo!
...
This was SVN commit r1704.
2005-01-10 22:51:08 +00:00
a571688b1d
Minor auto-builder fix
...
This was SVN commit r1702.
2005-01-10 22:21:56 +00:00
75c714b8df
Made ScEd compile more pleasantly
...
This was SVN commit r1700.
2005-01-10 22:13:18 +00:00
2ad77b16db
Optimised a couple of functions to save ~1.5 secs when loading ScEd
...
This was SVN commit r1699.
2005-01-10 22:05:38 +00:00
3ae57e7b0d
Inverted my accidental inversion of logic
...
This was SVN commit r1697.
2005-01-10 21:07:24 +00:00
fba99c3414
vfs: fix mounting archive contents - now relative to mount point as it should.
...
added flags to vfs_mount that enable looking for archives and mounting
subdirectories (previously always done, but slow)
main: uses above flags when mounting
This was SVN commit r1695.
2005-01-10 18:44:41 +00:00
e632c0ff1d
zip: fix overrun when reading uncompressed data: truncate to output buffer size
...
vfs: fix archive file add routine: wasn't starting at mount point,
didn't handle files in archive root dir correctly
tex: add tex_is_known_fmt
lib: add ERR_TIMED_OUT
This was SVN commit r1693.
2005-01-10 13:42:10 +00:00
56949e6fc4
lib: add big endian readers; add VC intrinsic bswap routines
...
tex: improve flip / bgr convert (now generalized "transforms"); add
support for transforming image before encoding
wsdl: add SDL_ShowCursor, minimize when tasking out
main: WriteScreenshot improved, fixes flipped screenshots
This was SVN commit r1689.
2005-01-09 14:23:59 +00:00
d56ae48aa1
Made the archive builder guess its location more correctly
...
This was SVN commit r1674.
2005-01-08 18:32:21 +00:00
37d2d83a9d
Adjusted things to work with the new top-down orientation
...
This was SVN commit r1668.
2005-01-07 14:10:14 +00:00
8633123520
default orientation is now top-down to match Photoshop DDS plugin (thanks, Philip!)
...
This was SVN commit r1667.
2005-01-07 13:48:49 +00:00
974292c5b7
forgot to add yesterday :/
...
I/O plugin for libjpg that reads from memory
This was SVN commit r1661.
2005-01-07 11:13:20 +00:00
dd3a0dd657
tex:
...
- complete+document+fix texture orientation code
- add JPG codec
- file extension check bugfix: now case-insensitive
also some general cleanup.
This was SVN commit r1660.
2005-01-07 02:00:14 +00:00
c5de965814
wsdl:
...
- add SDL_WaitEvent
- fixed evil bug due to incorrect interpretation of
PIXELFORMATDESCRIPTOR.cColorBits (destabilized ATI drivers)
- remove ps/ dependency in "screenshot" key hook
- fix bug in gamma functions
- remove asm trampolines, replace with plain inline calls (efficiency <
safety)
- SDL thread calls implemented in terms of POSIX functions
This was SVN commit r1659.
2005-01-07 01:25:10 +00:00
f503a1f4e7
handle.h: include guard
...
vfs: path_append and exact-case handling bugfixes
wtime: added FILETIME->time_t conversion; small improvements
This was SVN commit r1658.
2005-01-07 01:16:43 +00:00
e6a12f76e2
aio: check for NULL aiocb* params; made aio_h get/set static; various small improvements
...
mem: explicit mem_shutdown call - try to avoid exit order problems
unifont: remove logger calls (dependency on ps/)
This was SVN commit r1657.
2005-01-07 01:13:48 +00:00
577c23d936
cursor: remove dependency on CVFSFile (all lib/res files must not depend on ps/, so that they can be reused in other projects)
...
wposix:
- FILETIME->time_t conversion for *stat
- improve opendir/readdir etc.; add readdir_stat_np
- add pthread_join and pthread_cancel
- add portable sem_* semaphore functions (alternative to SDL semaphores)
file: use readdir_stat_np instead of reading non-portable struct dirent
fields
This was SVN commit r1656.
2005-01-07 01:10:00 +00:00
090ea2301a
wdbg: temporarily removed LOCALIZED_TEXT so this works in another project. must find long-term solution: lib/ must not be dependent on ps/!
...
sysdep.h: add pick_dir
sysdep/win/win.cpp: .. and its win32 implementation
This was SVN commit r1655.
2005-01-07 00:59:52 +00:00
39783e6a17
lib.h: corrected 2 casts:
...
- problem when using CHECK_ERR with functions returning a Handle
- incorrect sign conversion when passing non-ascii (> 0x80) chars to
FOURCC
precompiled.h: include lib/types.h
This was SVN commit r1654.
2005-01-07 00:55:53 +00:00
2077d4fd1d
timer.cpp: start FPS value = 60 => faster convergence
...
timer.h: TIMER uses debug_out
main/input: moved game_ticks to input.cpp (only used if input.cpp is
included)
This was SVN commit r1653.
2005-01-07 00:52:05 +00:00
f7e82dbc16
add ps/Errors.h and/or lib/types.h headers (shouldn't rely on precompiled.h to pull those in).
...
also prepended ps/ to make location clear.
This was SVN commit r1652.
2005-01-07 00:47:44 +00:00
dbfc576458
Fixed a bug in the autobuilder that occurs when tools (such as the autobuilder) are updated.
...
This was SVN commit r1642.
2005-01-05 19:46:31 +00:00
ff34bf40b1
Automated build system code (mainly for backup purposes - it won't work on anyone else's machine without a few bits of reconfiguration)
...
This was SVN commit r1641.
2005-01-05 19:38:45 +00:00
618c6cbbe7
Avoid flickering when zooming at near-zero speeds
...
This was SVN commit r1639.
2005-01-04 22:16:03 +00:00
bb8e24ec60
Corrected spelling
...
This was SVN commit r1637.
2005-01-04 22:07:17 +00:00
0de796c5ea
Send Load event to GUI objects after (instead of while) loading the rest of the engine
...
This was SVN commit r1635.
2005-01-04 21:51:23 +00:00
a61a961edd
Don't display blank tooltips
...
This was SVN commit r1634.
2005-01-04 21:37:51 +00:00
31f0e62c83
Changed the add_color GUI sprite effect to use alpha=0 by default
...
This was SVN commit r1625.
2005-01-03 22:23:27 +00:00
0a99e2a189
Another extremely important whitespace fix
...
This was SVN commit r1624.
2005-01-03 20:40:32 +00:00
cff12c4127
Extremely important whitespace fix
...
This was SVN commit r1623.
2005-01-03 20:34:38 +00:00
a84351441e
Fixed invalid GL commands (as complained about by 82845G drivers)
...
This was SVN commit r1612.
2005-01-02 00:26:48 +00:00
f791239396
Fix for strange machine with no audio
...
This was SVN commit r1611.
2005-01-02 00:05:33 +00:00
43271f7618
Ctrl+home, ctrl+end go to top/bottom of console
...
This was SVN commit r1609.
2005-01-01 18:12:23 +00:00
15bb170328
SessionStart event sent to GUI objects upon starting a game
...
This was SVN commit r1608.
2005-01-01 17:30:55 +00:00
fcd1adcea3
Removed my earlier 'fix' (related to a bug when adding new files to a directory that was previously archived) which was completely rubbish, and replaced it with one that is hopefully less stupid (and actually fixes the problem)
...
This was SVN commit r1605.
2005-01-01 13:43:43 +00:00
f9c51d8ec7
Replaced - with _ in GUI
...
This was SVN commit r1604.
2005-01-01 12:06:17 +00:00
1c2acfed8c
CInput textcolor
...
This was SVN commit r1602.
2004-12-31 12:20:22 +00:00
855e1a7f81
Small ScEd updates
...
This was SVN commit r1601.
2004-12-30 23:01:09 +00:00
e533f5c7fc
Executable version of archive-builder
...
This was SVN commit r1600.
2004-12-30 18:08:09 +00:00
170c511c58
Mostly complete archive-builder
...
This was SVN commit r1599.
2004-12-30 17:42:22 +00:00
7efc7a7903
Fixed memory leak
...
This was SVN commit r1598.
2004-12-30 17:27:53 +00:00
ed55ad4d82
Put crashlog into ScEd.
...
This was SVN commit r1590.
2004-12-28 20:53:54 +00:00
94f89e130b
Let ScEd open maps with non-VFS filenames. Probably stopped leaking memory.
...
This was SVN commit r1588.
2004-12-28 16:17:17 +00:00
9e2413acab
Allowed \\ in tooltip text. Fixed tooltips.
...
This was SVN commit r1587.
2004-12-28 13:13:27 +00:00
aab60e9ab8
Unbroke text-alignment buffer-zones. Allowed \n in tooltip text.
...
This was SVN commit r1585.
2004-12-28 12:38:45 +00:00
156ff7cf56
Minimal text-alignment ability in Text GUI objects
...
This was SVN commit r1584.
2004-12-28 12:17:04 +00:00
f4fe8c8543
Sky colour, plus skycolor config value
...
This was SVN commit r1583.
2004-12-28 11:16:05 +00:00
05c4ec0365
Alterations to ScEd, so that it almost works (except for saving/loading maps). Change the bottom of premake.lua if you want to build it.
...
This was SVN commit r1580.
2004-12-27 23:27:26 +00:00
bfd7d10383
Incomplete (but hopefully working) archive builder. And some festive snow: * * *
...
This was SVN commit r1579.
2004-12-25 15:38:05 +00:00
7e004f07d3
Report zero-sized images as errors.
...
This was SVN commit r1566.
2004-12-23 23:14:47 +00:00
d2855c4f9c
Fixed GC crash.
...
This was SVN commit r1565.
2004-12-23 22:24:09 +00:00
0382cdd9b1
More tooltip updates. Made the main menu buttons and the in-game resource counters use them.
...
Fixed space/tab inconsistencies in (though not between) GUI XML files.
This was SVN commit r1554.
2004-12-23 13:56:34 +00:00
28c7a682b8
Fixed annoying crash when SpiderMonkey's GC ran.
...
Minor tooltip updates.
This was SVN commit r1542.
2004-12-21 18:41:58 +00:00
659a9ea57a
Initial (incomplete) tooltip code
...
This was SVN commit r1540.
2004-12-21 13:37:24 +00:00
91d39f9a29
Allowed colour strings in XML files to contain negative values.
...
Updated GUI sprite effects to allow subtraction with add-color, and to
increase multiply-color's upper limit to allow 4x brightness.
This was SVN commit r1538.
2004-12-19 20:09:23 +00:00
4560c79667
'stretched:' sprites
...
This was SVN commit r1537.
2004-12-19 14:44:55 +00:00
849f50a500
Grayscale effects for GUI sprites
...
This was SVN commit r1536.
2004-12-19 12:20:04 +00:00
46f5c61179
Linux/GCC/glibc Compat
...
This was SVN commit r1532.
2004-12-18 23:30:28 +00:00
c9d89e964b
Moved g_Gui.TickObjects to the main render loop and update the scheduler when no game is running
...
This was SVN commit r1531.
2004-12-18 23:25:58 +00:00
bb2de67c31
fixed incorrect handling of extra fields
...
(zip archives with extended file attributes failed to load)
improved z_extract_cdfh/z_enum_files.
This was SVN commit r1527.
2004-12-18 14:45:04 +00:00
b291fafadb
Replace '_' with '-' when passing names through the GUI JS interface (so that object.cell_id is equivalent to object["cell-id"])
...
This was SVN commit r1526.
2004-12-18 14:24:50 +00:00
ba0ebd6644
Renamed icon-size/icon-id to cell-size/cell-id, and allowed cell-id to be used in <icon>s.
...
Added <effect>s to sprites/images - currently multiply-color and
add-color, though they're far from perfect.
This was SVN commit r1525.
2004-12-18 13:32:00 +00:00
5bb24a387f
fix dir_cancel_watch issue: fail silently if watch=0 (happens if directory mounted only from archive, i.e. there's no real directory to watch)
...
This was SVN commit r1524.
2004-12-18 03:45:12 +00:00
8a1c3c550e
Fixed bug which made XMBs' filenames contain 00000000 for the size, when built with VC2005. (Nasty confusing 64-bit variables...)
...
Also made it insensitive to rounded-down-to-nearest-2-seconds timestamps
in zip files.
This was SVN commit r1521.
2004-12-17 19:47:21 +00:00
6526301cfe
GUI icon-sheets
...
This was SVN commit r1519.
2004-12-17 16:20:08 +00:00
8f4f8e240f
Fixed things that use a colour rather than a texture (e.g. the progress bars). Also fixed the completely broken 'caching' system that recalculated everything every single frame. Also made it give linker errors if I ever make that mistake again.
...
This was SVN commit r1518.
2004-12-17 00:05:37 +00:00
d8ae8a524c
Fixed something that looked like a potential bug
...
This was SVN commit r1515.
2004-12-16 15:15:24 +00:00
465ceff912
More leak fixes
...
This was SVN commit r1514.
2004-12-16 12:41:54 +00:00
b534e640ca
Resource leak fixes
...
This was SVN commit r1513.
2004-12-16 12:01:47 +00:00
MarkT
da4c42ef58
Fix for misinterpretation of data types in XML
...
This was SVN commit r1512.
2004-12-16 09:41:41 +00:00
851a30215f
add h_add_ref; add leak report (currently disabled, since all textures are leaked)
...
This was SVN commit r1511.
2004-12-16 01:17:50 +00:00
855c00f6b8
Slightly tidied some small things
...
This was SVN commit r1510.
2004-12-16 00:47:12 +00:00
c19f3608a5
Initial changes to GUI sprite code. (There shouldn't be any visible effects - if there are, they're bugs)
...
This was SVN commit r1507.
2004-12-15 21:24:46 +00:00
11f3b3c575
CFilePacker now takes version+magic string in the ctor (allows writing data in one go, so vfs_store can be used).
...
This was SVN commit r1505.
2004-12-15 14:26:21 +00:00
6539cfc935
Playlist now uses VFS.
...
This was SVN commit r1504.
2004-12-15 14:25:09 +00:00
b259381fbf
1) minor error handling improvements (was passing back invalid handle error, instead of the cause; also added a CHECK_ERR)
...
2) we attempt to load missing files (see bug #32 ). with the fix above,
CHECK_ERR would fire every run (which it should until the problem is
fixed :P), which is annoying.
Instead, FileUnpacker now checks if the file exists; if not, it throws
immediately and thereby bypasses the VFS error mechanism.
This was SVN commit r1503.
2004-12-15 14:24:12 +00:00
32854fc162
JS scripts are now loaded via VFS, as per "JS optimization" email from stu.
...
This was SVN commit r1502.
2004-12-15 14:23:27 +00:00
fa25746df7
CFilePacker now takes version+magic string in the ctor (allows writing data in one go, so vfs_store can be used).
...
This was SVN commit r1501.
2004-12-15 14:22:50 +00:00
bc0c59b084
as per "JS Optimisation?" email from stu, updated to use VFS.
...
This was SVN commit r1500.
2004-12-14 17:58:37 +00:00
80b1876b77
Reduced GUI's exception usage (=> shortened debug-mode start time by a couple of seconds)
...
This was SVN commit r1494.
2004-12-13 12:07:12 +00:00
6d7d049d89
Attempted to minimise dependencies between header files (to make compilation minorly faster)
...
This was SVN commit r1490.
2004-12-12 19:43:55 +00:00
24abb51b59
First crack at loading screen (though need to figure out a way to move session loading to next frame to get it to actually stay on the screen). Some preliminary work on sub-windows.
...
This was SVN commit r1489.
2004-12-12 19:34:38 +00:00
aa1442e8f8
Fix for mesh manager crashes (plus some parts of Boost, which may be a little excessive)
...
This was SVN commit r1488.
2004-12-12 18:40:00 +00:00
9f6d085732
oops, removed one const too many. fixed.
...
This was SVN commit r1484.
2004-12-10 00:14:10 +00:00
9d317d8164
1) removed scaffolding from file
...
2) VFS: add path_copy convenience routine
3) various lib code: removed unnecessary const cluttering things (like
const char* _const_ name in param list)
This was SVN commit r1483.
2004-12-09 23:12:02 +00:00
cc02422908
1) TIMER added to timer.h (moved from main)
...
2) wposix: cache file status in struct dirent (Win32 specific)
3) vfs: speed up vfs_mount (via 2) and zip_cb path lookup caching
scheme)
4) temp scaffolding added to file.cpp to measure performance
This was SVN commit r1482.
2004-12-09 20:17:09 +00:00
0598081a57
Changed Xeromyces to care about the .xml's size/mtime rather than its contents (to avoid needing to load the .xml), and also to store that information in the .xmb's filename rather than inside the file (to avoid getting confused when rewriting files that are inside archives)
...
This was SVN commit r1480.
2004-12-09 16:57:21 +00:00
c3fafdca99
Added CStr::FindInsensitive
...
This was SVN commit r1479.
2004-12-09 16:54:02 +00:00
6a04509455
Fixed Release-mode compilation
...
This was SVN commit r1478.
2004-12-09 16:09:58 +00:00
e2062ccee1
Faster parsing
...
This was SVN commit r1477.
2004-12-08 18:15:39 +00:00
f36008ac3b
added TIMER(name_of_block). it declares a scoped object that measures time between ctor and dtor, and is therefore perfect for measuring how long functions or basic blocks execute. used to gather results reported in "analysis: why is startup slow" thread.
...
also split out a few functions from Init() (more structured, easier
measuring)
This was SVN commit r1475.
2004-12-08 15:34:15 +00:00
196229add7
add JS sound binding interface rationale
...
This was SVN commit r1474.
2004-12-08 13:10:11 +00:00
2248b615ea
NOP
...
This was SVN commit r1473.
2004-12-07 22:14:23 +00:00
643810a276
cleaned up VFS after yesterday's new code;
...
explicit shutdown, instead of atexit
This was SVN commit r1472.
2004-12-07 22:10:46 +00:00
0f18178fda
fixed sched. priority code: wouldn't work for all values.
...
This was SVN commit r1468.
2004-12-07 03:01:12 +00:00
77196dbe06
less dependencies on res/res.h in headers (a bad thing) => less recompiles when I change vfs.h :)
...
This was SVN commit r1467.
2004-12-07 02:04:38 +00:00
e76871e7b0
- heavy changes to VFS tree internals: now allows loose files and archives to coexist, choosing archive if they're the same date+size
...
- reworked tree_lookup: dir names now require trailing '/' to
disambiguate. exception: vfs_open_dir (convenience)
- display VFS tree in stdout.txt unless g_Quickstart
This was SVN commit r1466.
2004-12-07 01:22:25 +00:00
e15562b7ae
1) file: clean up path conversion call sites (was using private routine)
...
2) all: change file_enum and cohorts to pass struct stat instead of just
size
3) minor cleanup
This was SVN commit r1465.
2004-12-07 01:19:10 +00:00
1d1a2ce3e4
use VC's stat() for now, even if slower - mtime time conversion is a pain to implement
...
This was SVN commit r1464.
2004-12-07 01:12:35 +00:00
8d20cfefdb
remove cout << "initialized"
...
This was SVN commit r1463.
2004-12-07 01:08:56 +00:00
e1506b6d3a
Removed unused Elvish
...
This was SVN commit r1462.
2004-12-07 00:17:14 +00:00
a2a6f29ab3
s/Prometheus/Pyrogenesis/
...
This was SVN commit r1459.
2004-12-05 21:56:09 +00:00
ffb5f87857
Corrected mesh manager's use of hashmap. Added CStrW support to JS/GUI interface. Added error checking to CStr::Left/Right to make bugs more obvious.
...
This was SVN commit r1456.
2004-12-05 18:26:43 +00:00
761261880a
Correction to restructuring (part 2 of 2)
...
This was SVN commit r1455.
2004-12-05 18:05:16 +00:00
ec3452679c
Restructuring
...
This was SVN commit r1453.
2004-12-05 17:59:29 +00:00
936fc885a1
Don't convert paths here since it's already done by the caller (API change)
...
This was SVN commit r1449.
2004-12-04 20:27:07 +00:00
445915942a
Fix to restore setInterval() to its former functioning glory.
...
This was SVN commit r1447.
2004-12-02 23:36:47 +00:00
0c49853a3a
Premake updates: unbroke PCH; disabled edit-and-continue; disabled runtime checks in Testing mode; fixed stack overflow problem; renamed to 'pyrogenesis'
...
This was SVN commit r1446.
2004-12-02 18:22:46 +00:00
453c8c68af
Fixed warnings
...
This was SVN commit r1445.
2004-12-02 17:17:38 +00:00
3fb241054f
add master sound disable, triggered if g_Quickstart == true.
...
(skips OpenAL init => speeds up startup)
This was SVN commit r1437.
2004-12-01 22:19:58 +00:00
f1dac9c626
better error handling: lots of little changes.
...
added some error codes, tried to eliminate unspecific return -1 where
it made sense.
This was SVN commit r1436.
2004-12-01 21:37:01 +00:00
6c2f455547
added tga and raw encoders (based on common routine extracted from bmp encoder), so I wouldn't have to add NOT_IMPLEMENTED error returns :P
...
This was SVN commit r1435.
2004-12-01 21:34:49 +00:00
2c0d5c0248
bugfix: needs to use full path conversion routine
...
This was SVN commit r1434.
2004-12-01 21:34:01 +00:00
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
2eed8a8b45
even longer SND_CARD_LEN
...
This was SVN commit r1430.
2004-11-30 23:40:44 +00:00
b8d0df4b03
Re-enabled crash-dumping exception handler
...
This was SVN commit r1427.
2004-11-30 15:52:10 +00:00
b50ddcc9bc
Added all external libraries
...
This was SVN commit r1424.
2004-11-29 04:22:37 +00:00
MarkT
f930bf1df4
Added semi-intelligent text parser for XMLs - so that numeric properties on entities are no longer stored as strings instead.
...
This was SVN commit r1409.
2004-11-27 20:02:51 +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
c82c7d2e2a
Increased SND_CARD_LEN to handle "Realtek AC97 Audio"
...
This was SVN commit r1405.
2004-11-27 02:57:54 +00:00
caf8471132
Testing svk (and fixing tab usage)
...
This was SVN commit r1404.
2004-11-26 21:34:35 +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
Gee
0adc8f6ca2
Unfinished Input box.
...
This was SVN commit r1394.
2004-11-24 23:39:52 +00:00
30ad195c0b
Linux/GCC Compat
...
This was SVN commit r1393.
2004-11-23 23:56:10 +00:00
7bf6d11d8c
"*.<ext>" filter as per new vfs_next_dirent
...
This was SVN commit r1392.
2004-11-23 23:52:52 +00:00
7a84eca26b
"*.<ext>" filter as per new vfs_next_dirent; also use ARRAY_SIZE
...
This was SVN commit r1391.
2004-11-23 23:52:39 +00:00
5a09dcd81b
"*.xml" filter as per new vfs_next_dirent
...
This was SVN commit r1390.
2004-11-23 23:52:13 +00:00
d9ed18f8ca
fixed stupid bug, simplified vfs_next_dirent
...
This was SVN commit r1389.
2004-11-23 23:51:34 +00:00
86940ee0aa
Minor changes in MP player handling, slightly more correct
...
This was SVN commit r1388.
2004-11-23 23:46:15 +00:00
b3cba5f48c
Deadlock Fix in Linux code
...
This was SVN commit r1387.
2004-11-23 23:37:10 +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
5c923bbe70
update filter dox to bring in line with new vfs_next_dirent
...
also accounts for new ERR_VFS_DIR_END code when checking errors
This was SVN commit r1385.
2004-11-23 21:11:00 +00:00
5857361da2
add ERR_VFS_DIR_END code
...
This was SVN commit r1384.
2004-11-23 21:08:59 +00:00
9a00cd11d5
add match_wildcard function (for vfs_next_dirent)
...
This was SVN commit r1383.
2004-11-23 20:52:03 +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
2fe43a46fc
Other changes to incomplete systems
...
This was SVN commit r1381.
2004-11-23 18:21:43 +00:00
033666c2de
Various ancient changes that were never committed (since they don't quite work yet)
...
This was SVN commit r1380.
2004-11-23 18:19:27 +00:00
4596b7dfc8
sound driver version detect code takes DLL search path into account; hardened
...
This was SVN commit r1378.
2004-11-22 07:41:02 +00:00
3b5ab280d4
add win_exe_dir (application's start directory)
...
This was SVN commit r1377.
2004-11-22 07:40:32 +00:00
affc35521f
remove dsound.h - fixes compile error on vc6/7 hybrid (probably mismatched DX headers)
...
This was SVN commit r1376.
2004-11-22 03:03:25 +00:00
2fadd87e4f
remove zlib.h from header to xeromyces.cpp
...
it's only used to forward-declare a function used in the impl =>
shouldn't be in header
also added ZLIB_DLL before zlib.h
This was SVN commit r1375.
2004-11-22 00:19:08 +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
73834cee73
upgraded to libpng 1.2.7 to fix bug #24
...
This was SVN commit r1372.
2004-11-22 00:09:36 +00:00
bfd2a43dfb
sound code: now uses DX5 (instead of default of DX8), more error checking vs. bug #33
...
This was SVN commit r1371.
2004-11-21 08:41:40 +00:00
daab6788b9
add SetPosition and SetGain wrappers. untested
...
This was SVN commit r1366.
2004-11-20 21:32:00 +00:00
d4f31c09da
replace detect() with individual routines; add sound card system_info;
...
add g_Quickstart that skips writing system_info (speeds up startup by
700ms)
This was SVN commit r1364.
2004-11-19 22:58:01 +00:00
c9303e0e40
delay load dsound.dll
...
This was SVN commit r1363.
2004-11-19 22:56:17 +00:00
c6cf8593c9
add windows sound card info query (via directsound; OpenAL is entirely unhelpful)
...
This was SVN commit r1362.
2004-11-19 22:43:02 +00:00
d489c48652
safer check if TSC is useable (and CPU detect has occurred)
...
This was SVN commit r1361.
2004-11-19 22:42:20 +00:00
2f9a735232
add win_sys_dir for win-specific code
...
This was SVN commit r1360.
2004-11-19 22:41:37 +00:00
1ba56151ca
explicit string size; remove reference to detect()
...
This was SVN commit r1359.
2004-11-19 22:41:05 +00:00
d5473db68e
warning fix: remove redundant uint >= 0
...
This was SVN commit r1358.
2004-11-19 22:40:27 +00:00
4a9fc1e1d1
add sound card info; remove central detect() call
...
This was SVN commit r1357.
2004-11-19 22:40:00 +00:00
cda100e72d
fix warning: cast -1 to uint
...
This was SVN commit r1353.
2004-11-18 20:56:45 +00:00
df2e7f1b08
fix warning: add typecast to JSVAL_NULL
...
This was SVN commit r1352.
2004-11-18 20:56:13 +00:00
e04df2616b
remove redundant size_t >= 0 check to satisfy ICC
...
This was SVN commit r1351.
2004-11-18 20:52:27 +00:00
b4fef6c1f2
fix incorrect 64-bit serialization
...
(was shifting u32 32 bits left, which is 0)
This was SVN commit r1350.
2004-11-18 20:51:49 +00:00
16287e8195
commented out EntityResolver LOG statement (less spew)
...
This was SVN commit r1339.
2004-11-16 18:22:54 +00:00
MarkT
d30e10042f
Minor changes to sound-script interface.
...
This was SVN commit r1332.
2004-11-15 22:30:01 +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
c3a331b73f
add JS sound binding
...
This was SVN commit r1328.
2004-11-15 18:23:39 +00:00
ae6baf5134
Changed all the spaces back into tabs
...
This was SVN commit r1326.
2004-11-15 13:38:07 +00:00
Fire Giant
8d7c180457
Fixed a missing comma on line 76, which made the batch-file not work any more.
...
This was SVN commit r1325.
2004-11-15 10:05:12 +00:00
2f27947101
Minor oops
...
This was SVN commit r1324.
2004-11-15 04:58:33 +00:00
Fire Giant
eb1424cb8f
Fixed a stupid typo (missing semicolon).
...
This was SVN commit r1315.
2004-11-14 21:16:39 +00:00
Fire Giant
a9fe8c0c61
Changed GUI load sequence in order to fix a problem which came up through the global objects being loaded before the main menu background object. The globals are now in 6_global.xml (should always be at the end of the load order) and the JS initialization now is in 1_init.xml.
...
This was SVN commit r1314.
2004-11-14 21:14:00 +00:00
fb09faf5be
Parser bug-fix
...
This was SVN commit r1313.
2004-11-14 18:56:13 +00:00
2bac35868b
Highly advanced unit-testing framework
...
This was SVN commit r1312.
2004-11-14 18:53:26 +00:00
4af3eca831
Prefer compile-time errors to run-time errors
...
This was SVN commit r1311.
2004-11-14 18:52:22 +00:00
64646cfbbf
Some more verbose error reporting
...
This was SVN commit r1307.
2004-11-12 22:11:04 +00:00
9a69d76feb
Minor update to add link to 5_atlas.xml, so that GUI development of the Atlas Editor is supported.
...
This was SVN commit r1303.
2004-11-11 23:51:52 +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
Calefaction
9b47d446d2
Updated to instansiate and tear down the mesh managed.
...
This was SVN commit r1300.
2004-11-08 22:21:50 +00:00
Calefaction
f257c67967
Updated to fix compile errors caued by missing CVertexProgram
...
This was SVN commit r1299.
2004-11-08 22:15:06 +00:00
Calefaction
efe4673f15
Removed, no longer needed. GLSL replacement coming.
...
This was SVN commit r1298.
2004-11-08 22:10:30 +00:00
Calefaction
11900f8b38
*** empty log message ***
...
This was SVN commit r1297.
2004-11-08 22:10:06 +00:00
Calefaction
82108a30c9
Removed, no longer needed (replacement using GLSL coming)
...
This was SVN commit r1296.
2004-11-08 22:09:28 +00:00
Calefaction
e3137cd302
Various updates, including the new MeshManager
...
This was SVN commit r1295.
2004-11-08 22:02:01 +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
e48b5f9b64
enable file listing hook in ParseArgs
...
This was SVN commit r1287.
2004-11-07 22:46:57 +00:00
f76d099956
Proper Player Handling
...
This was SVN commit r1286.
2004-11-07 21:59:52 +00:00
c32e6d5215
String conversion fix/extension
...
This was SVN commit r1285.
2004-11-07 21:57:46 +00:00
3136791492
Linux/GCC Compat(tm)
...
This was SVN commit r1284.
2004-11-07 21:30:47 +00:00
5ab0be984b
CStr alterations
...
This was SVN commit r1283.
2004-10-31 22:00:01 +00:00
5e42dad394
CStr alterations
...
This was SVN commit r1282.
2004-10-31 20:29:09 +00:00
Calefaction
3c69a79f0f
Updated to output OpenGL version
...
This was SVN commit r1281.
2004-10-31 07:37:32 +00:00
Calefaction
955ddcf9a1
More programmable pipeline updates
...
This was SVN commit r1280.
2004-10-30 21:57:46 +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
728e6e1f10
Update to fix likely GCC compile problem
...
This was SVN commit r1277.
2004-10-24 15:49:52 +00:00
Calefaction
09ce67303e
Updates to fix VC2K5 compile problem
...
This was SVN commit r1276.
2004-10-24 00:48:54 +00:00
06051e3628
cleaned up and documented. ready for use.
...
This was SVN commit r1275.
2004-10-23 19:55:41 +00:00
0c95417dec
Avoid type warnings
...
This was SVN commit r1274.
2004-10-23 19:24:55 +00:00
96807dd6f3
remove resource.h include - not needed, was actually referring to sced resource.h
...
This was SVN commit r1273.
2004-10-23 18:41:02 +00:00
Calefaction
7947293015
Initial programmable pipeline push
...
This was SVN commit r1272.
2004-10-23 18:13:54 +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
a8fff67c91
remove "p-pressed" debug_out
...
This was SVN commit r1267.
2004-10-22 21:54:31 +00:00
0f93e53e61
\n on debug_out
...
This was SVN commit r1266.
2004-10-21 15:08:10 +00:00
0a4c838185
Exciting space->tab transformations
...
This was SVN commit r1265.
2004-10-21 15:04:19 +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
20061f0e38
due to h_allow_free, no longer rely on h_mgr cleaning up buffers (that was a hack, and wouldn't work if OpenAL is reset at runtime)_
...
now snd_cleanup before h_mgr_cleanup - makes sense anyway.
also added snd_update call that doesn't change OpenAL position - this is
so sound works in the main menu.
This was SVN commit r1263.
2004-10-20 23:16:38 +00:00
0540792825
add ERR_AGAIN error
...
This was SVN commit r1262.
2004-10-20 13:36:49 +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
0afc3c159d
trivialities: add extern, add assert to make sure oglInit called
...
This was SVN commit r1260.
2004-10-19 17:49:12 +00:00
d30c7ef9aa
use correct path to sound assets
...
This was SVN commit r1259.
2004-10-19 13:45:50 +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
3c9823fd31
Don't override the printscreen key when the user's looking at some other program
...
This was SVN commit r1257.
2004-10-18 22:08:21 +00:00
34b553e2b2
remove ogg_display junk
...
This was SVN commit r1256.
2004-10-18 14:25:13 +00:00
Calefaction
50dee130ae
Updated to properly support LOD bias settings in config. Fixes mipmap blurryness.
...
This was SVN commit r1254.
2004-10-17 21:01:00 +00:00
e31edf4fb4
Fixed mouse-wheel zooming
...
This was SVN commit r1253.
2004-10-17 10:55:57 +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
f0f7f236b7
sound test filename -> game data, since ogg playing works again.
...
This was SVN commit r1251.
2004-10-16 20:55:56 +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
90a0860081
Added load for 4_manual.xml.
...
This was SVN commit r1243.
2004-10-15 18:01:22 +00:00
1798a1ab1d
remove testing code that makes clicks do strange things ;)
...
This was SVN commit r1242.
2004-10-15 17:26:36 +00:00
45ffe69f90
fix sign conversion bug (int -> size_t)
...
This was SVN commit r1241.
2004-10-15 13:42:13 +00:00
390fe343a0
gives sound engine current position during update; also fixed sound shutdown order issue (must come after h_mgr_shutdown)
...
note: you will need to fiddle a bit to test this ATM: see
http://forums.wildfiregames.com/0ad/index.php?showtopic=1672 #5
This was SVN commit r1240.
2004-10-15 13:29:04 +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
fd91563f42
Sorry! Totally forgot to add the CInput.cpp/h
...
This was SVN commit r1237.
2004-10-14 21:01:13 +00:00
Gee
cdf7334d34
Added GetHeight()
...
This was SVN commit r1236.
2004-10-14 10:10:43 +00:00
Gee
5b74afce82
Added unifont_height...
...
This was SVN commit r1235.
2004-10-14 10:09:51 +00:00
Gee
f4b410ff82
A bunch of updates:
...
- Added *unfinished* control input.
- The GUI captures the events now, so that you can't press anything in
the game if the GUI is infront of it. The GUI needs some cleaning up
though.
- Made the type 'empty' unpressable, because all those "0 0 100% 100%"
empties were just like pieces of glass making the user unable to select
anything in the game.
- A bunch of other updates I made like weeks ago and never committed.
This was SVN commit r1234.
2004-10-14 10:09:26 +00:00
Gee
c4684effb6
Progress bar added, and an optional attribute for the [icon] tags in text.
...
You can now displace an icon using: "[icon="smiley" displace="2 -3"]
I may rename it from 'displace' to something else if someone gives me a
good suggestion.
This was SVN commit r1232.
2004-10-14 02:32:26 +00:00
Calefaction
5275dc862b
Initial mini-map check-in
...
This was SVN commit r1230.
2004-10-08 01:10:14 +00:00
6b084c3173
Fixes to comply with VC2005.
...
This was SVN commit r1229.
2004-10-07 22:03:12 +00:00
769e521349
Added references to multiple GUI XML files (temporary adjustment to make it easier to work on different GUI pages).
...
This was SVN commit r1227.
2004-10-07 21:06:08 +00:00
442c6f315f
Added 'const' to appropriate bits of Xeromyces
...
This was SVN commit r1226.
2004-10-07 20:49:35 +00:00
2c9ac03375
Another minor fix
...
This was SVN commit r1225.
2004-10-07 20:14:20 +00:00
MarkT
6f10c954de
Missing JSCollection*. Oops.
...
This was SVN commit r1224.
2004-10-07 20:09:11 +00:00
53719430d1
Minor bug fixes
...
This was SVN commit r1223.
2004-10-07 20:02:58 +00:00
MarkT
3469e90636
Couple of files missing from previous commit.
...
This was SVN commit r1222.
2004-10-07 19:35:08 +00:00
MarkT
2ab625720b
Fairly major XML/entprop changes; some more minor stuff that fell out as a consequence.
...
This was SVN commit r1220.
2004-10-07 19:23:35 +00:00
notpete
e260a5eb8e
Support for recursive actor directories; few other minor changes.
...
This was SVN commit r1219.
2004-10-06 18:46:33 +00:00
notpete
17a4174505
Minor additional functionality.
...
This was SVN commit r1218.
2004-10-06 18:45:59 +00:00
notpete
81c829ec4c
Minor changes.
...
This was SVN commit r1217.
2004-10-06 18:44:47 +00:00
711118ee97
less dependencies: handle.h forward-defines Handle, so that not everything that uses res headers is dependent on h_mgr
...
This was SVN commit r1216.
2004-10-06 14:25:36 +00:00
975344b515
less dependencies: handle.h forward-defines Handle, so that not everything that uses res headers is dependent on h_mgr
...
This was SVN commit r1215.
2004-10-06 14:12:10 +00:00
67d95dd3af
add ARRAY_SIZE
...
This was SVN commit r1214.
2004-10-06 14:11:55 +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
53f8283cfc
update sound test rig, have added a few (local) filenames for testing
...
This was SVN commit r1212.
2004-10-05 13:14:34 +00:00
622febf5b7
update sound test rig, have added a few (local) filenames for testing
...
This was SVN commit r1211.
2004-10-05 13:14:03 +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
10a81394ff
removed test rig crap
...
This was SVN commit r1207.
2004-10-03 23:28:57 +00:00
b6c1ad7126
had a look at CPU freq detect due to win32asm thread.
...
added comments + slight improvement (get system time first, then rdtsc)
=> good bit more accurate
This was SVN commit r1206.
2004-10-03 13:06:37 +00:00
cb11ff27c2
startServer() display corruption bug, bug #28
...
This was SVN commit r1202.
2004-09-28 16:01:11 +00:00
011666f393
Minor fixes for Linux/GCC
...
This was SVN commit r1201.
2004-09-26 21:21:34 +00:00
Calefaction
39501530d4
Updated to properly update material parameters.
...
This was SVN commit r1200.
2004-09-26 04:09:57 +00:00
Calefaction
4e93961f92
Minot change. The renderer now no longer does any work unless the game state is indicated as "started" by g_Game->IsGameStarted()
...
This was SVN commit r1199.
2004-09-26 04:05:35 +00:00
Calefaction
f888544789
*** empty log message ***
...
This was SVN commit r1198.
2004-09-24 03:52:32 +00:00
Calefaction
b1c269b72e
Complete materials checkin
...
This was SVN commit r1197.
2004-09-24 03:52:03 +00:00
7f962ea9c4
Fixed very minor bug
...
This was SVN commit r1196.
2004-09-23 13:23:42 +00:00
6d4f94112d
Fixed memory leak
...
This was SVN commit r1195.
2004-09-23 12:42:37 +00:00
Calefaction
0a05c2977a
Updated to reflect MaterialManager
...
This was SVN commit r1194.
2004-09-23 05:21:18 +00:00
Calefaction
831053d680
Update to the material system
...
This was SVN commit r1193.
2004-09-23 05:10:03 +00:00
Calefaction
4fff66cfce
Initial import of material code. MaterialReader is implemented and functional. Currently models do not attempt to load materials, nor does the renderer use them.
...
This was SVN commit r1192.
2004-09-23 04:00:56 +00:00
9c2fb5a466
stomped on vc2k5 warning (size_t -> uint)
...
This was SVN commit r1191.
2004-09-22 18:14:00 +00:00
df1b502bbd
Linux Compat and some updated PARANOIA code
...
This was SVN commit r1189.
2004-09-22 15:20:58 +00:00
ab7b542c20
console height now relative to y resolution instead of always 600 pixels
...
This was SVN commit r1188.
2004-09-22 14:01:50 +00:00
7c157c5f90
Avoided minor for-scoping complaints
...
This was SVN commit r1187.
2004-09-22 11:51:43 +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
4a7757dac6
VC2k5 fix: avoided ambiguous parameter naming
...
This was SVN commit r1185.
2004-09-21 22:11:33 +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
ff4af72da1
fix incorrect round up calculation
...
This was SVN commit r1182.
2004-09-21 16:59:50 +00:00
eb2989176e
startGame() shouldn't crash and burn if the game's already been started
...
This was SVN commit r1181.
2004-09-21 16:10:46 +00:00
777f06143d
- A lot of small network fixes
...
- Connecting client(s) to a server and giving orders to a shared set of
entities now works - Yeah!
- Removed thread sync from CNetServer
This was SVN commit r1180.
2004-09-21 14:40:43 +00:00
6787a32b3c
potential vsnprintf buffer overflow
...
This was SVN commit r1179.
2004-09-21 14:35:30 +00:00
92ade065c3
vector<char> magic changed into a nicer std::string constructor (heap corruption induced paranoia =] )
...
This was SVN commit r1178.
2004-09-21 14:33:13 +00:00
a9075a887f
- Chat fix (server user didn't see his own text)
...
- Removed filter for Ctrl-Alt combinations (some pretty useful chars
like {[]} are on AltGr/CtrlAlt combinations here in Sweden)
This was SVN commit r1177.
2004-09-21 14:31:02 +00:00
8b2e918e05
cleanup + bulletproofing
...
This was SVN commit r1176.
2004-09-21 13:40:14 +00:00
dce92ce677
fix 2 stupid bugs causing crashes when loading from loose files - wasn't detecting all causes where transfers are unaligned => read rounded-up amount of data into original buffer as opposed to realign buffer => clobbered the heap.
...
This was SVN commit r1175.
2004-09-21 11:58:22 +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
ea9bd61195
now correctly set m_UnpackPos
...
This was SVN commit r1169.
2004-09-19 19:22:18 +00:00
69e9f3ef79
now stores its data in buffer, rather than copying to std::vector
...
This was SVN commit r1168.
2004-09-19 18:51:19 +00:00
a0f0215c15
fixed debug_check_heap definition
...
This was SVN commit r1167.
2004-09-19 18:45:04 +00:00
c3ed7df432
0 -> FALSE + add/removed debug code
...
This was SVN commit r1166.
2004-09-19 18:44:21 +00:00
1166c2a22c
workaround for stupid "void* -> unsigned cast" warning
...
This was SVN commit r1165.
2004-09-19 17:27:03 +00:00
022964c43b
moved low-level sound code to res/snd.cpp. CMusicPlayer is now an empty shell, pretty much; it will contain higher-level music logic (selecting track, fading in/out) implemented via snd calls
...
This was SVN commit r1164.
2004-09-19 16:01:41 +00:00
6fd0c451c2
changed to include sound code (test "rig")
...
This was SVN commit r1163.
2004-09-19 15:58:13 +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
18e016578d
fix tex_load return value check - Handle invalid <==> <= 0
...
This was SVN commit r1153.
2004-09-19 11:39:47 +00:00
167a077bc2
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 r1152.
2004-09-19 11:38:54 +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
e675dbca5f
no longer delay load ogg dlls (new sound code is using openal ogg support); avoids warnings in the meantime
...
This was SVN commit r1149.
2004-09-18 12:51:14 +00:00
dbee9e74fd
Fixed lack of termination when log messages exceed 512 chars
...
This was SVN commit r1148.
2004-09-17 23:13:38 +00:00
b1a5f53284
Testing system for the i18n code, to make sure I don't break anything. (Now on CVS to make it less lonely.)
...
This was SVN commit r1145.
2004-09-17 17:49:12 +00:00
ca862b8332
Minor adjustments to i18n code
...
This was SVN commit r1144.
2004-09-17 17:45:44 +00:00
8760a86c13
Unfinished utility for extracting to-be-translated strings from all the game's data files
...
This was SVN commit r1142.
2004-09-10 13:42:02 +00:00
03e3de50ed
When I said "Now fixed", I was wrong. But it's fixed now.
...
This was SVN commit r1140.
2004-09-06 12:54:35 +00:00
2d153bac2d
Increased paranoia, in case the i18n system crashes while translating the crash message
...
This was SVN commit r1139.
2004-09-06 11:39:27 +00:00
806dea648c
Er... broke stuff. Now fixed.
...
This was SVN commit r1138.
2004-09-06 11:37:15 +00:00
e532b59ead
Utilised the corrected CStr8/W conversion
...
This was SVN commit r1137.
2004-09-06 11:35:42 +00:00
a9d7f0dae8
Fixed minor bug when displaying text containing a "%". Used LOG_ONCE to avoid continuous error logging. Removed redundant Trim (Xeromyces always trims element text)
...
This was SVN commit r1136.
2004-09-06 11:34:46 +00:00
7008e5b53c
Updated to handle Unicode strings
...
This was SVN commit r1135.
2004-09-06 11:28:30 +00:00
5df205084f
Made JSString->wstring conversion slightly easier
...
This was SVN commit r1134.
2004-09-06 11:28:04 +00:00
13974087c3
Fixed memory leak
...
This was SVN commit r1133.
2004-09-06 11:18:47 +00:00
0dc2f34676
GCC whine avoidance: newlines at ends of files
...
This was SVN commit r1132.
2004-09-06 11:18:22 +00:00
f791e5f665
Altered the automatic CStr8/CStrW conversion -- it seems to work now
...
This was SVN commit r1131.
2004-09-06 11:15:43 +00:00
d373e7a559
Moved language selection into the .cfg file
...
This was SVN commit r1130.
2004-09-06 11:13:36 +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
071bb19282
no message
...
This was SVN commit r1128.
2004-09-06 03:05:36 +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
Gee
da465ae1dc
Made a little change only to make it compile, hopefully it won't do too much damage until Philip can correct this.
...
This was SVN commit r1126.
2004-09-06 02:22:38 +00:00
Gee
9133042540
GUI: Translates and outputs localised string in Unicode... hooray!
...
This was SVN commit r1125.
2004-09-06 02:21:21 +00:00
3a3a5b6c34
Added getFPS(), so the GUI can draw the FPS counter. Also added getLanguageID(), so it knows what language it's using
...
This was SVN commit r1122.
2004-09-05 11:28:59 +00:00
959600b0d1
Removed FPS display
...
This was SVN commit r1121.
2004-09-05 11:27:23 +00:00
3b15f3f1e4
Text alignment alterations
...
This was SVN commit r1119.
2004-09-04 20:35:12 +00:00
933f51d48b
Made text always be placed at integer positions, to avoid it looking too ugly
...
This was SVN commit r1118.
2004-09-04 19:05:25 +00:00
4da6db92d2
Fixed typo in complex mathematical equation (center = "top+bottom/2.f")
...
This was SVN commit r1117.
2004-09-04 18:30:12 +00:00
3ef7b1b67b
Corrected JS_AddRoot usage (it wants a JSObject**/JSString**/jsval*/etc)
...
This was SVN commit r1116.
2004-09-04 14:43:23 +00:00
51e20e6ef6
Realised that there's no need to store the JSObject* as a void*
...
This was SVN commit r1115.
2004-09-04 14:40:06 +00:00
c164d9b32c
Made buffer-zone consistently a float
...
This was SVN commit r1114.
2004-09-03 21:37:39 +00:00
9b1127d82f
Type checking in dangerous pointer-using code
...
This was SVN commit r1113.
2004-09-03 21:25:39 +00:00
78934b50c1
split up call to _CrtSetDbgFlag
...
This was SVN commit r1112.
2004-09-03 20:21:09 +00:00
c0342b1ff7
JS GUI interface changes to handle floating-point sizes, plus a few fewer bugs
...
This was SVN commit r1111.
2004-09-03 14:12:43 +00:00
348505ee14
Added g_ScriptingHost.[GS]etObjectProperty_Double, as a randomly useful function
...
This was SVN commit r1110.
2004-09-03 14:10:48 +00:00
03ae01c44a
Replaced all CStr16 with CStrW, because its name was too confusing
...
This was SVN commit r1109.
2004-09-03 14:08:12 +00:00
Gee
ec7ace7016
no message
...
This was SVN commit r1108.
2004-09-03 05:49:20 +00:00
Gee
d42de50280
Updated everything that's related to screen position to use floats
...
This was SVN commit r1107.
2004-09-03 05:48:47 +00:00
Gee
ab63c17678
no message
...
This was SVN commit r1106.
2004-09-02 19:35:07 +00:00
f57e5ab737
Localised crash message (try ":loadLanguage("pseudogreek"), crash()" in the console in a non-Debug build)
...
This was SVN commit r1105.
2004-09-02 19:24:29 +00:00
756c89d85d
Removed GUI TEMPmessage
...
This was SVN commit r1104.
2004-09-02 19:18:14 +00:00
Gee
6b384432e0
no message
...
This was SVN commit r1101.
2004-09-02 03:05:16 +00:00
Gee
f2a615f0a3
Updates, mostly about centering text.
...
This was SVN commit r1099.
2004-09-02 03:02:32 +00:00
72e730be3a
minor improvements / commenting
...
This was SVN commit r1098.
2004-09-02 02:47:11 +00:00
71b62dc484
more explanation of auto-init system
...
This was SVN commit r1097.
2004-09-02 02:46:50 +00:00
8a19257cd4
Fixed conversion of non-NULL-terminated strings
...
This was SVN commit r1096.
2004-09-01 19:49:23 +00:00
29e0bfea5b
Added CStr constructor for non-NULL-terminated char*s
...
This was SVN commit r1095.
2004-09-01 19:48:51 +00:00
18fea5478f
Updated i18n code
...
This was SVN commit r1094.
2004-09-01 19:48:03 +00:00
44ddbd201f
Removed an old unused #define
...
This was SVN commit r1092.
2004-09-01 19:23:02 +00:00
Gee
e2a8eb4def
Removed some debug output in log only I need to see.
...
This was SVN commit r1091.
2004-08-31 03:25:36 +00:00
Gee
51b5254a9d
Added a GUI file to load
...
This was SVN commit r1086.
2004-08-31 02:10:40 +00:00
Gee
924b0bf1b4
Major fixes and updates. Let me know if I screwed up resolving conflicts.
...
This was SVN commit r1085.
2004-08-31 02:09:58 +00:00
3b91514dbe
buildTime() function, as a temporary version identifier for distributed builds
...
This was SVN commit r1084.
2004-08-30 11:20:59 +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
b7ceaa0652
fix init segment names (must not be A or Z); see meeting log, 2004-08-28
...
This was SVN commit r1078.
2004-08-28 17:34:06 +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
39a2589e2c
mk_handle -> cast_to_HANDLE (less confusion)
...
This was SVN commit r1076.
2004-08-28 11:14:23 +00:00
5a3c99d506
Removed some debug logging, since the bug seems to have been successfully removed
...
This was SVN commit r1075.
2004-08-27 22:10:25 +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
9280aa15a7
Adjusted error handling minorly
...
This was SVN commit r1073.
2004-08-27 21:14:23 +00:00
b359da4095
Altered point size to match Windows. Fixed bug with alignment of bold text.
...
This was SVN commit r1071.
2004-08-27 20:24:15 +00:00
880b768abd
Noticed "Engine exited successfully on " << __DATE__
...
This was SVN commit r1069.
2004-08-27 18:47:14 +00:00
405d5c476f
Made ThrowError(code) visible
...
This was SVN commit r1068.
2004-08-27 17:43:04 +00:00
97777fe688
LOG_ONCE, to avoid flooding the log with the same message every frame
...
This was SVN commit r1067.
2004-08-27 17:41:02 +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
d607aad4db
had a look at mmap() due to gamedev post. cleaned it up; now bulletproof and armor-plated (I hope :)).
...
This was SVN commit r1064.
2004-08-27 00:29:46 +00:00
9c579eb89d
Executable version of the exception-stuff generator
...
This was SVN commit r1060.
2004-08-26 10:34:09 +00:00
4041b7880e
Made missing textures non-fatal
...
This was SVN commit r1059.
2004-08-26 10:31:34 +00:00
918cb99c7f
now verify glActiveTexture != 0 in GL extension check (in response to bug #18 )
...
This was SVN commit r1055.
2004-08-25 11:44:11 +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
fb0b498de2
pthread_mutex update - now uses CRITICAL_SECTIONs. quite hacky; awaiting word from simon how he'd like it :)
...
This was SVN commit r1049.
2004-08-24 17:27:51 +00:00
49e284ae5e
now uses vfs_load instead of vfs_map (faster, doesn't break if the files are in an archive and compressed)
...
This was SVN commit r1048.
2004-08-24 17:26:35 +00:00
68aa9a81f3
Removed the single-pixel borders between glyphs; most font textures are now half their former size
...
This was SVN commit r1045.
2004-08-24 14:58:50 +00:00
f0e6936b94
Updated
...
This was SVN commit r1044.
2004-08-24 11:42:44 +00:00
d5a5f4c300
Now uses plain English messages when calling translate() before loading a language, rather than crashing
...
This was SVN commit r1043.
2004-08-24 11:32:32 +00:00
83fb95dbde
Removed hard-coded filenames
...
This was SVN commit r1042.
2004-08-24 11:29:40 +00:00
c6d292dc87
Slightly better dictionary handling
...
This was SVN commit r1041.
2004-08-24 11:28:18 +00:00
49b5c5c2b8
Trivial wrapper around vfs_next_dirent, to make some other code a little tidier
...
This was SVN commit r1040.
2004-08-24 11:26:32 +00:00
a684d27654
Error code to exception conversion, via ThrowError(code)
...
This was SVN commit r1039.
2004-08-24 11:09:11 +00:00
9fa5e3b57a
Better Unicode support in the console
...
This was SVN commit r1038.
2004-08-24 11:07:50 +00:00
506b283844
Now actually uses IsInitialised() correctly, to avoid crashing when logging messages before the config DB is loaded
...
This was SVN commit r1037.
2004-08-24 11:05:41 +00:00
003bf13eb0
GCC fixes: things
...
This was SVN commit r1035.
2004-08-21 12:57:10 +00:00
6873de4ed0
GCC fixes: string.c_str() in LOG
...
This was SVN commit r1034.
2004-08-21 12:55:43 +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
d1e29b1d16
GCC fixes: avoid warnings about XP_UNIX
...
This was SVN commit r1031.
2004-08-21 12:52:31 +00:00
a8f64267a2
GCC fixes: evil goto.
...
This was SVN commit r1030.
2004-08-21 12:50:55 +00:00
0e55379b36
Initial i18n integration
...
This was SVN commit r1029.
2004-08-21 11:45:01 +00:00
9e4ee4b8d9
Quadrupled stack size, since we had too many files
...
This was SVN commit r1027.
2004-08-21 11:35:46 +00:00
6e9c7dd532
Fixed minor type-conversion warnings
...
This was SVN commit r1026.
2004-08-20 14:03:49 +00:00
35baf71fe8
Define XP_* globally, for anything that uses SpiderMonkey directly
...
This was SVN commit r1025.
2004-08-20 14:02:53 +00:00
0ac6b7839f
(That last message didn't make much sense at all, and the code was slightly wrong anyway)
...
Check for error definitions in .cpp/.h files inside directories whose
names contain digits.
This was SVN commit r1024.
2004-08-20 12:53:24 +00:00
88ab133c1f
Check for errors in directory names containing digits (e.g. "i18n")
...
This was SVN commit r1023.
2004-08-20 12:41:08 +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
95453aa2c6
add STL_HASH_(MULTI)MAP
...
This was SVN commit r1018.
2004-08-18 02:13:53 +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
ac8cfef8d0
bugfix: was memsetting the memory log /stream/, not buffer. while at it, we just alloc via calloc
...
This was SVN commit r1013.
2004-08-18 01:51:23 +00:00
589106ae1c
increase memory buffer size (due to boundschecker overrun warning)
...
This was SVN commit r1012.
2004-08-18 01:32:05 +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
a8b8471a23
no longer require aiocb to be zeroed (real aio doesn't).
...
removed user-visible pointer in aiocb; cb -> req mapping is now better.
This was SVN commit r1010.
2004-08-17 13:40:55 +00:00
af85086e3b
no longer register atexit call to free mutex in pthread_mutex_initializer - user code should do that.
...
brought to light by simon's network / thread util itself freeing the
mutex, leading to invalid handle atexit.
This was SVN commit r1009.
2004-08-17 13:36:03 +00:00
fdaa535fc2
Removed memory leak
...
This was SVN commit r1008.
2004-08-17 12:34:07 +00:00
16b198b05d
Fixed calling convention for IPv6 function pointers
...
This was SVN commit r1007.
2004-08-16 18:13:22 +00:00
4d9c7684df
w00t! first batch of actual network support!
...
This was SVN commit r1006.
2004-08-16 15:19:17 +00:00
d79dad28d0
Fixed scrolling for windowed mode - stop scrolling when the mouse moves outside the window
...
This was SVN commit r1005.
2004-08-16 14:33:26 +00:00
5575409959
Fix for pthread_create - assumed new thread started before _beginthread returns. Fixed by heap-allocating the parameter to thread_start
...
This was SVN commit r1004.
2004-08-16 14:30:18 +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
d41cdc4dff
Allow NULL categories, and make them very interesting
...
This was SVN commit r996.
2004-08-15 21:10:49 +00:00
9cd4cab693
A few log categories
...
This was SVN commit r994.
2004-08-15 20:57:31 +00:00
0037a0c6c0
Now allows categorised logging with user-configurable interest levels. By default, all errors and warnings are 'interesting' (reported in interestinglog.html and the console), and system.cfg lets you alter your interest in particular categories.
...
This was SVN commit r993.
2004-08-15 20:57:04 +00:00
98a4cea133
IsInitialised() on singletons, for when you need to know whether certain things (e.g. the config database) exist yet
...
This was SVN commit r992.
2004-08-15 20:47:25 +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
00a70deafd
Fixed the console's border
...
This was SVN commit r989.
2004-08-14 11:40:40 +00:00
ed9671e8d7
Fixed JS complaints about missing 'prototype'
...
This was SVN commit r988.
2004-08-14 11:23:38 +00:00
cc9ae228f9
_mem() JS function, for extremely basic VRAM usage information
...
This was SVN commit r987.
2004-08-14 11:21:29 +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
4e7b132bfd
sound/music player now responsible for calling oal_Init, due to delay-loading.
...
This was SVN commit r985.
2004-08-12 17:32:37 +00:00
6637011982
removed winsock dependency (now uses GetFileType)
...
This was SVN commit r984.
2004-08-12 17:32:16 +00:00
c0428d8cee
sound/music player now responsible for calling oal_Init, due to delay-loading.
...
This was SVN commit r983.
2004-08-12 17:20:11 +00:00
d0454100cd
newer DLLs now delay-loaded (reduces startup time by 600ms)
...
This was SVN commit r982.
2004-08-12 17:19:45 +00:00
3459ad5d8f
less MAX_REQS (64 was unnecessarily high)
...
This was SVN commit r981.
2004-08-12 17:19:20 +00:00
cfa6dd3dfe
bugfix: free GLRC before HDC, but BC still complains that there are unfreed GDI objects
...
This was SVN commit r980.
2004-08-12 17:18:54 +00:00
18221110cf
removed debug output from FPS code
...
This was SVN commit r979.
2004-08-12 16:06:47 +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
3dff0dbb90
re-enable warning when ReadDirectoryChanges fails (underlying problem solved)
...
This was SVN commit r976.
2004-08-11 23:25:09 +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
436e45daee
now uses vfs_load.
...
This was SVN commit r970.
2004-08-11 20:18:49 +00:00
6fa44006e8
remove mods/official from pathname (since Unpacker now uses the VFS)
...
This was SVN commit r969.
2004-08-11 20:18:30 +00:00
972596878e
remove mods/official from pathname
...
This was SVN commit r968.
2004-08-11 20:17:13 +00:00
b09896a62b
Documented the console cursor character's magic number (U+FE33)
...
This was SVN commit r966.
2004-08-11 14:48:36 +00:00
4d202beb5b
Less ambiguous cursor in console
...
This was SVN commit r965.
2004-08-10 17:16:46 +00:00
10180a7dba
fat-fingered commit; ignore the previous change (now undone)
...
This was SVN commit r963.
2004-08-10 16:06:17 +00:00
77eb2d7db8
finally removing; it has no function
...
This was SVN commit r962.
2004-08-10 16:04:21 +00:00
56d798d52f
move g_LightEnv here from terrainMain (which is ceasing to exist)
...
This was SVN commit r961.
2004-08-10 16:02:29 +00:00
bd5690def7
Run-time selection of FreeType DLL, to let the user decide whether to enable glyph hinting
...
This was SVN commit r960.
2004-08-10 16:01:18 +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
982b0ffc25
Run-time selection of FreeType DLL, to let the user decide whether to enable glyph hinting
...
This was SVN commit r953.
2004-08-10 15:51:06 +00:00
9aa3be9ae3
Temporary fix for VC6 Testing workspace error
...
This was SVN commit r952.
2004-08-10 11:01:23 +00:00
230731c69d
Allow the standard Windows PrtSc action (i.e. copy to clipboard) if HOTKEY_SCREENSHOT has been redefined
...
This was SVN commit r951.
2004-08-09 20:58:32 +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
1768ccded3
Miscellaneous GCC fixes
...
This was SVN commit r948.
2004-08-09 16:44:08 +00:00
1e6bd8025e
Miscellaneous GCC fixes
...
This was SVN commit r947.
2004-08-09 16:32:01 +00:00
937ce1dcb5
Unbroke GCC
...
This was SVN commit r946.
2004-08-09 16:31:34 +00:00
657b1fee60
Simplified ReportParseError (to make GCC happier)
...
This was SVN commit r945.
2004-08-09 16:29:21 +00:00
65ec0b468d
Added vsnprintf2, a wrapper around vsnprintf to make it more gcc-like (allowing %lld, %1$d, etc)
...
This was SVN commit r944.
2004-08-09 15:44:35 +00:00
5370ed2323
New zlib/libpng libraries
...
This was SVN commit r943.
2004-08-08 23:03:50 +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
ac9bb18ed7
added debug_warns where there were TODO gee: report error comments
...
This was SVN commit r940.
2004-08-08 18:21:58 +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
92ea452096
remove hack, now that h_mgr actually caches
...
This was SVN commit r937.
2004-08-08 16:55:25 +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
c248ae93eb
Vital whitespace alterations
...
This was SVN commit r927.
2004-08-06 15:07:01 +00:00
cd8a6aaea8
Added \n to debug_out messages
...
This was SVN commit r926.
2004-08-06 15:04:47 +00:00
778862f429
Opening a second music file now closes (rather than leaks) the first
...
This was SVN commit r925.
2004-08-06 15:04:16 +00:00
138df056bd
Fixed invalid GL code
...
This was SVN commit r924.
2004-08-06 15:01:23 +00:00
4e517d52f7
oglCheck() function, which blows up when you add invalid OpenGL code
...
This was SVN commit r923.
2004-08-06 14:58:58 +00:00
5390ff46ae
Hopefully fixed the infinitely annoying graphics crashes ( #1 , #3 , #9 , #10 , #14 on the bug tracker)
...
This was SVN commit r922.
2004-08-06 11:26:30 +00:00
1b3887a274
Fixed some warnings
...
This was SVN commit r921.
2004-08-06 11:20:37 +00:00
db344d5f51
add get_executable_path (used by file_rel_chdir)
...
This was SVN commit r920.
2004-08-05 19:21:35 +00:00
fb7e097d24
move some win-specific debug calls here (implements sysdep/debug)
...
This was SVN commit r919.
2004-08-05 19:21:16 +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
5f25030964
previous fix was incorrect; utf16 was new and not yet committed
...
This was SVN commit r917.
2004-08-05 15:07:05 +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
aa1c08f6be
Fixed double negative (#ifndef NDEBUG), to choose debug/release Vorbis libraries correctly
...
This was SVN commit r911.
2004-08-05 13:02:23 +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
146491beed
add too-many-file open warning when opening, too (but the underlying problem is fixed)
...
This was SVN commit r907.
2004-08-05 12:45:27 +00:00
b51314d34a
added flag parameter (default 0). wasn't necessary here, but will allow influencing caching strategy
...
This was SVN commit r906.
2004-08-05 12:44:29 +00:00
7d608e084a
Include the real fam header instead of the one for Windows FAM emulation
...
This was SVN commit r905.
2004-08-05 12:17:06 +00:00
a823a00570
utf16() method for CStr8/W => utf16string conversion
...
This was SVN commit r904.
2004-08-05 12:15:53 +00:00
875ceeb9cf
fix breakage: utf16 -> utf16string and include header
...
or was something else intended? no other occurence of "utf16"
This was SVN commit r903.
2004-08-05 12:15:19 +00:00
b986ff832b
Some Linux wchar_t/jschar stuff.. JS uses UTF-16/UCS-2, so convert wchar strings before handing to JS unicode interfaces.
...
This was SVN commit r902.
2004-08-05 12:04:20 +00:00