quanticc / lawena-recording-tool

Simple movie recording tool for Source Engine games
http://lawena.github.io/
GNU General Public License v3.0
80 stars 16 forks source link

Java error when trying to delete movie segments. #64

Closed josegomes123 closed 9 years ago

josegomes123 commented 9 years ago

When I try to click delete movie segments in the recordings folder but there aren't actually any movie segments recorded with lawena, but there are still other kinds of files or tgas there I get the following error 1

This happens because I export my SFM recordings to the same folder as lawena recordings and when I try to click that button after recording with sfm I always get that error.

quanticc commented 9 years ago

This is a bug caused by the file mixup you mention. The program looks for *.wav files with the format: a1_.wav to extract the segment name (before the underscore) to show you a dialog asking for which segments to delete. If there are WAV files but no underscore on the name this error happens.

Pushing a patch soon. The behavior should only delete Lawena segments and never delete files with a broad wildcard, it should not be a "Delete all files in the recording folder" button. If there are no files that match the above naming convention, it will output "There are no segments to delete" to avoid deleting the wrong files.