2582 Commits

Author SHA1 Message Date
Meep-Eep ace60da23b Handle paths of the form "d:foo/bar" on platforms which don't have a current working directory per drive.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3057 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-30 18:25:41 +00:00
gewlitys e663bc4564 Some includes added to avoid calling functions w/o prototypes.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3056 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-30 14:08:02 +00:00
Meep-Eep 9ea6346e3b Some defines for Symbian compilers. From Gwl.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3047 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-23 11:00:16 +00:00
avolkov 079526298c Define THREADLIB_SDL for the project
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3046 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-23 00:44:29 +00:00
Meep-Eep eea348180a Support drive letters and UNC paths on some non-Windows platforms.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3045 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-22 20:50:38 +00:00
Meep-Eep ad25f17f1e No UNC paths on Symbian.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3044 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-22 20:04:48 +00:00
Meep-Eep 5ed92e6942 Support drive letters and UNC paths on some non-Windows platforms.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3043 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-22 19:57:35 +00:00
Meep-Eep 3ec51c7c0f Replace alloca() by the more portable malloc().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3042 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-22 19:04:26 +00:00
Meep-Eep aa02a78da5 Pthread support from Gwl.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3041 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-21 20:03:54 +00:00
gewlitys f0d9b3b143 Loading voices now works properly also when ogg support is disabled.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3036 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-16 22:46:41 +00:00
Meep-Eep 27e0dd8258 Bug fix. (Would only be triggered if QUEUE_TABLE is undefined)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3035 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-15 08:16:45 +00:00
Meep-Eep 7372224df5 Function to give the player all devices.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3034 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-11 21:34:37 +00:00
Meep-Eep c6a6f630fb Make it compile.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3032 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-09 20:26:40 +00:00
Meep-Eep 61d0e0e93a Added dumpStrings() to help debugging incongruities between the source file gamestr.h and the content file gamestrings.txt.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3031 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-08-07 22:02:24 +00:00
Meep-Eep c109ac33c7 Fix some declarations.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3029 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-06-23 11:01:01 +00:00
Meep-Eep feee84315f Fix declarations.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3028 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-06-23 10:54:04 +00:00
Meep-Eep 4827b9743d Fix for a type error. (Harmless if the compiler is stupid enough. Otherwise
it just won't compile.)



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3027 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-06-22 23:30:20 +00:00
mcmartin e8ba104f3a Normalized the names of the BINTAB resources.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3026 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-06-17 01:15:01 +00:00
mcmartin bab2323019 Relegation of integer-based resources to history.
Documentation has been updated and header files have been re-sorted as a 
result of this.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3024 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-06-06 13:08:47 +00:00
Meep-Eep dbf34f4042 A few comments.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3011 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-30 22:56:40 +00:00
Meep-Eep c32b3bb15e Little bit of documentation.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3001 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-30 22:09:56 +00:00
Meep-Eep 4372e7b7e2 Fix file properties.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2992 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-30 21:32:49 +00:00
Meep-Eep 034926bcac Fix -- the sequel.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2983 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-19 21:46:48 +00:00
Meep-Eep 0200015e5e Fix variable initialisation not at the start of the block.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2982 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-19 21:36:16 +00:00
Meep-Eep 8b581600a6 Fix use of unitialised variable.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2981 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-19 21:34:49 +00:00
avolkov 23f3c84c79 Fixed a couple signedness warnings
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2980 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-19 21:34:09 +00:00
avolkov 3a5ffa0a11 Removed defines that are only used inside uio context and cause redefinition warnings (let uio define them)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2979 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-19 21:31:34 +00:00
mcmartin 536d0cb676 Voiceove clip abstraction.
This is two simultaneous changes: CONVERSATION resources are made of 
three paths instead of one (phrases, clip directory, timestamps), and 
the synthetic, always-loaded '3dovoice' addon controls the use of them.

The intent is to eventually move uqm-0.x.0-voice.zip out of the core 
packages and into the addons with 3domusic.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2978 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-18 13:57:22 +00:00
mcmartin 82b1aa60b4 Fixed copy-paste error in GetStringTimeStamp.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2977 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-18 13:17:38 +00:00
Meep-Eep c952996ad7 Replaced stricmp() by strcasecmp().
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2976 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-17 10:54:10 +00:00
mcmartin b2a268e2d7 Put all declarations at top of function, as ANSI C demands
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2975 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-16 04:25:04 +00:00
mcmartin ded11e540e Split STRTAB further into STRTAB and CONVERSATION
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2974 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-15 07:17:32 +00:00
mcmartin 38b00505d5 Made the INT32 and BOOLEAN resource types more type-sane.
This has required reworking the way load methods work slightly.



git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2973 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-15 03:15:27 +00:00
mcmartin f183008374 Basic, non-typesafe implementation of primitive resource types.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2972 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-14 22:34:06 +00:00
mcmartin 47a7575e97 Full support for "zero-file" resources UNKNOWNRES and SHIP.
The CODE resource file type has been retired, replaced by SHIP.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2971 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-14 06:05:58 +00:00
mcmartin 2ddc969faf Resource loader now descriptor-based, not filestream-based.
This will allow for non-file resources, and eventual merging of
configuration and other data into the resource system.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2970 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-14 03:15:29 +00:00
mcmartin ffd50ee6fd Fold the ResourceHandlers vtable into the ResourceDesc directly.
The vtables themselves are stored in the main resource map under
the "sys." branch instead of in their own side array.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2969 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-11 03:29:14 +00:00
mcmartin 245cbce1a0 Split STRTAB into two resource types instead of differentiating on suffix
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2968 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-08 07:30:22 +00:00
mcmartin fa346b9d6d Refactored the ResourceIndex type to fit UQM's standard for opaque types
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2967 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-05-07 01:07:13 +00:00
avolkov aed8e93d6a Updated project file with latest res-sys changes
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2966 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-10 23:28:00 +00:00
avolkov fe995a2f7f _M_AMD64 is deprecated in favor of _M_X64; newer includes may need it later
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2965 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-10 22:55:55 +00:00
mcmartin 0ea5d1c361 Removed the defunct KEY_CONFIG and RES_INDEX resource types.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2964 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-09 18:51:33 +00:00
mcmartin 4e1d971af5 Ancillary files
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2963 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-09 06:34:01 +00:00
mcmartin 7cead51fb3 Major revamp of the resource system. Only RMP files remain.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2962 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-09 05:54:22 +00:00
mcmartin 206bebd6bd New header file for cons_res.c, mistakenly not committed
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2961 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-06 10:33:12 +00:00
mcmartin 37f0bcf5e6 Moved all resource ID construction into its own file for easy replacement
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2960 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-06 07:53:42 +00:00
mcmartin 7f65c19044 Fixed intermittent crash if conversing with music disabled
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2959 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-06 07:50:42 +00:00
mcmartin 32940bb214 Moved code resources into starcon.ls2 as well.
SetResourceIndex is no longer used after main program init,
and RES_INDEX is for all practical purposes defunct.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2958 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-06 00:52:14 +00:00
mcmartin 356a2106e9 Moved all non-CODE resources to starcon.ls2.
At this point, only loading ships ever changes the resource index.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2957 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-05 10:16:22 +00:00
mcmartin 9a526084ec Fixed errors and warnings when compiling without HAVE_JOYSTICK
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2956 8092fc87-c524-0410-9efc-e669fe64eaf9
2008-04-05 07:59:26 +00:00