asarium
88a85e4024
Improve gamesnd modular parsing
...
As requested by jg18, this improves the sound.tbl parser to properly handle +nocreate. If the file name of an entry should not be changed you have to specify <same>.
2015-05-08 08:48:17 +02:00
asarium
9aed627ce7
Replace longjmp with exceptions
...
Also added a EditorConfig file
2015-04-24 15:03:59 +02:00
chief1983
26adf935f7
Globalize various file extension lists littered throughout the code so they can be referenced from other classes as needed, instead of being hardcoded multiple times.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11327 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-23 12:09:18 +10:00
Goober5000
2fe0ec8ef0
Yarn's patch for Mantis #3049 (character remapping in tstrings.tbl)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10894 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-14 19:02:31 +10:00
Echelon9
8d6e82c3bc
Fix Coverity #1093711 Negative array index read in event_music_enemy_arrival()
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10853 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-05 10:38:08 +10:00
niffiwan
3b77e65f5f
Raise MAX_PATH_LEN to 256 so FSO can run in long paths
...
Specifically avoid one issue with running FSO in the default Steam dir
Converted some magic 128/127 numbers to MAX_PATH_LEN
Convert some Int3() into more friendly errors
Stopgap measure until proper fix added with compressed VP support
Fix mantis 3028
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10772 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-09 13:48:52 +10:00
Goober5000
73ebcda173
additional memory management improvements
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9917 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-16 19:46:01 +10:00
niffiwan
b26ec341bd
Coverity: more out-of-bounds errors (& fix mistakes in previous "fixes")
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9879 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:30 +10:00
niffiwan
019c18fab4
Coverity: fix some out-of-bounds access/read/write issues
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9876 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:30 +10:00
Goober5000
138e6b853f
yeesh... a veritable cascade of const-correctness
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9783 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-13 20:18:32 +10:00
Zacam
593be42e66
*drum roll* Pilot Code! Originated by taylor. Additional direct work by: The E, niffiwan, CommanderDJ, Pyro3D, Echelon9 (PVS-Studio), Karajorma and Eli2. (If I missed you, don't kill me.)
...
MASSIVE thanks to Mjn.Mixael and Blue Planet for tireless constant testing.
(It's still not perfect, but it probably wouldn't be where it is at without them)
Spans a lot from initial commit to AP Branch in r6835.
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9561 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:26:06 +10:00
Goober5000
2e2c1afe38
there is actually a way to check for extra sound values per Mantis #2048 , and here it is
2012-12-17 05:54:18 +00:00
Valathil
0dc6c8fcf7
Set the 3D flag in the new sounds.tbl parsing.
2012-12-15 22:11:57 +00:00
Echelon9
c1121a56bb
Fix: Format string is not a string literal (potentially insecure)
2012-10-08 15:17:43 +00:00
niffiwan
adecd7fe12
From m!m: Fix for mantis #0002695
2012-09-11 10:02:59 +00:00
Goober5000
e541cf0180
m!m's modular sounds patch, with minor modifications
2012-07-29 07:35:37 +00:00
IssMneur
d53bf32cb8
From CommanderDJ: - Fully vectorize and stringify mainhall.tbl internals
...
- replaces all arrays with SCP_vectors
- replaces all c-strings with SCP_strings
- depreciates +Misc Anim Handles: and +Misc Anim Flags: because they are just cruft
-- +Misc Anim Handles: has not been hooked up for years
-- +Misc Anim Flags: are dealt with automatically
2011-12-29 06:28:05 +00:00
The_E
b84060a437
Fixing an old mistake I made back in September 2010. Note: Assertions are optimized out of release builds, leaving this necessary skip out.
2011-12-29 00:53:49 +00:00
IssMneur
2eff95c4ea
Allow names in mainhall.tbl sound lists.
...
Allows sound names in addition to sound indexes in the sound lists:
+Intercom sound:
+Misc anim sounds:
+Door sounds:
Extends parse_sound to search in the interface sound table instead of the main sound table.
2011-12-09 06:38:16 +00:00
Echelon9
90601fce4d
Bug fix: This looked to be an accidental copy paste. See further gamesnd_get_by_iface_tbl_index() and gamesnd_get_by_tbl_index()
2011-11-03 14:39:37 +00:00
Echelon9
181fbfed52
From Eli2: patch removes leftovers of the conversion from arrays to Vectors.
2011-11-03 14:32:52 +00:00
Echelon9
648723e2ff
Documentation: cleanup and documentation of gamesnd.h from Eli2
2011-10-22 10:29:48 +00:00
Goober5000
0d96fc1bff
partial revert of 7825... don't remove the sound index
2011-09-29 06:03:30 +00:00
niffiwan
dd66475b75
Reapplying 7790, seems to have been mistakenly swatted by 7802
2011-09-28 11:23:27 +00:00
Zacam
206279c5fd
Sync Drift: Apparently still some lingering ifdefs for OEM/Multiplayer_Beta and non-AP specific things not having made it to trunk for some reason.
2011-09-25 08:26:45 +00:00
The_E
b964c63d6e
From niffiwan: Fix for Mantis 2477
2011-09-24 15:59:00 +00:00
Echelon9
6c55c061c4
Suppress a PVS-Studio false positive
2011-09-03 05:34:08 +00:00
Echelon9
80a027a400
PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
...
For further discussion see, http://www.viva64.com/en/b/0093/
The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.
Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
The_E
7f5c3d343e
Valathil's code cleanup patch.
2011-07-20 18:04:43 +00:00
Echelon9
7b9d36e105
Guarding against array out of bounds error, ahead of conversion to STL type
2010-12-20 03:04:54 +00:00
The_E
1b00dda9dd
Fix for Mantis 2333 (Random crashes caused by snd_get_duration())
2010-11-08 23:04:34 +00:00
The_E
c6fe7ad5a0
Bumping MAX_SPOOLED_MUSIC to 50.
2010-09-30 00:00:49 +00:00
The_E
c28989e121
2010-09-04 13:56:02 +00:00
The_E
a1ecfe158b
Adding the adjust-audio-volume sexp.
2010-08-19 19:45:28 +00:00
chief1983
e691fa8f94
Should allow INT_MAX to be visible on POSIX-compliant systems
2010-07-21 18:50:19 +00:00
chief1983
e9e3333c73
IssMneur's fix for Mantis #2240 , allow gaps after the hardcoded retail sound entries.
2010-07-20 21:59:36 +00:00
The_E
d41fa67715
Don't increase the total number of loaded menu music files if a tbm with +nocreate is loaded.
...
This also neatly fixes the somewhat screwed up music selection list in FRED (remember all those empty lines?), albeit not completely.
2010-06-14 01:59:15 +00:00
taylor
b287ecfef9
new sound code
...
- Mantis #58
- Mantis #1769
- many other fixes and improvements
2010-05-29 15:53:18 +00:00
taylor
1ad8db2238
cycle back to normal music is hostile ships leave without battle (Mantis #1632 )
2010-03-04 05:58:49 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
portej05
8b43ed823c
Fix for Mantis 1938. Has been tested against plain mediavps and blueplanet by Sushi
2009-06-20 07:38:02 +00:00
karajorma
8bdc2c1a9f
Portej05's second set of preFAST fixes.
2009-05-24 21:38:22 +00:00
karajorma
a4e623db23
Portej05's preFAST warning fixes.
2009-05-17 11:50:48 +00:00
taylor
0253d298e9
only load tbls from tables/ (Mantis #1725 )
2008-10-13 06:34:48 +00:00
WMCoolmon
9764ce9ea8
Replace Assert with smooth failure.
2008-08-30 10:52:08 +00:00
taylor
390b00d52f
use strrchr() to be sure that we get the last occurance of any "." (Mantis #1587 )
2008-03-28 02:18:59 +00:00
taylor
ecb1d387af
changing soundtrack via sexp shouldn't require that a soundtrack is currently playing (Mantis #1631 )
2008-03-20 17:50:48 +00:00
karajorma
3176af085d
Fix for Mantis 1150
2008-01-20 17:18:06 +00:00
Goober5000
588605a888
add Wing Commander Saga's fiction viewer
2007-11-21 07:28:50 +00:00