Kp
dc3924c076
Precompute MVE tables
2014-06-24 03:08:42 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
073f00974a
Eliminate uses of the typedef struct X { ... } X; pattern
...
C++ does not require this pattern.
import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
m = to.match(line)
if m:
osn = m.group(1)
print 'struct %s\n{' % osn
continue
if osn:
m = tc.match(line)
if m:
csn = m.group(2)
if osn == csn:
print '}%s;' % m.group(1)
osn = None
continue
else:
osn = None
print line,
2013-12-28 22:48:07 +00:00
Kp
a3d66a3b37
Add typedef palette_array_t for palette data
2013-12-22 00:05:13 +00:00
Kp
cf49fd0c98
Fix memory leak in audio conversion
2013-12-20 03:24:09 +00:00
Kp
75c229c6bf
Normalize con_printf newline usage
2013-12-07 21:13:37 +00:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
ff9c15b51f
Move d2x-rebirth/libmve/mveplay.c -> d2x-rebirth/libmve/mveplay.cpp
2013-12-02 00:11:33 +00:00
Kp
22f3f78ac5
Move d2x-rebirth/libmve/mvelib.c -> d2x-rebirth/libmve/mvelib.cpp
2013-12-01 23:57:00 +00:00
Kp
59e4a8f1ba
Move d2x-rebirth/libmve/mve_audio.c -> d2x-rebirth/libmve/mve_audio.cpp
2013-12-01 23:57:00 +00:00
Kp
20a9c83182
Move d2x-rebirth/libmve/decoder8.c -> d2x-rebirth/libmve/decoder8.cpp
2013-12-01 23:57:00 +00:00
Kp
f65d7e8d5c
Move d2x-rebirth/libmve/decoder16.c -> d2x-rebirth/libmve/decoder16.cpp
2013-12-01 23:57:00 +00:00
Kp
acb664ae40
Use proper type for mve backbuffers
2013-11-28 02:10:58 +00:00
Kp
69c507c5a7
Add cast for mve play cvt malloc
2013-11-28 02:10:39 +00:00
Kp
83fc5bc7f7
Skip counting unhandled mve segments
2013-11-24 23:52:00 +00:00
Kp
2714679284
Mark private functions static
2013-11-02 04:23:55 +00:00
Kp
005ba16ff9
Include mve_audio.h in mve_audio.c
2013-10-29 03:24:43 +00:00
Kp
4a2a1bb96c
Add definition guard for struct timespec
2013-10-29 03:24:41 +00:00
Kp
dcaad9a687
Always include <time.h> in mveplay.c
2013-10-29 03:24:41 +00:00
Kp
4577dd3977
Merge branch 'd2x-rebirth/master' into unification/master
2013-07-21 21:34:46 +00:00
Kp
7cda97cc74
Move d2x-rebirth source into subdirectory d2x-rebirth
2013-02-19 00:34:46 +00:00