Revert these files

This commit is contained in:
twinaphex 2017-07-25 14:08:22 +02:00
parent 795a843719
commit 5e2ed42295
5 changed files with 1344 additions and 369 deletions

View File

@ -191,6 +191,7 @@
#include "shared.h"
#define u32 unsigned int
/*#define USE_DEBUGGER*/
@ -1015,13 +1016,13 @@ static void debug_dump_mem(void)
static void debug_dump2file(const char *fname, void *mem, int len)
{
RFILE *f = filestream_open(fname, RFILE_MODE_WRITE, -1);
FILE *f = fopen(fname, "wb");
unsigned short *p = mem;
int i;
if (f) {
for (i = 0; i < len/2; i++) p[i] = (p[i]<<8) | (p[i]>>8);
filestream_write(f, mem, len);
filestream_close(f);
fwrite(mem, 1, len, f);
fclose(f);
for (i = 0; i < len/2; i++) p[i] = (p[i]<<8) | (p[i]>>8);
printf("dumped to %s\n", fname);
}

View File

@ -129,31 +129,6 @@ static const unsigned char waveHeader[28] =
0x02,0x00,0x44,0xac,0x00,0x00,0x10,0xb1,0x02,0x00,0x04,0x00,0x10,0x00
};
/* vorbis file callbacks to use RFILEs*/
#if defined(USE_LIBTREMOR) || defined(USE_LIBVORBIS)
size_t fs_vorbis_read(void *ptr, size_t size, size_t nmemb, void *datasource)
{
return filestream_read(datasource, ptr, size*nmemb);
}
int fs_vorbis_seek(void *datasource, ogg_int64_t offset, int whence)
{
return filestream_seek(datasource, offset, whence);
}
int fs_vorbis_close (void *datasource)
{
return filestream_close(datasource);
}
long fs_vorbis_tell(void *datasource)
{
return filestream_tell(datasource);
}
ov_callbacks fs_ov_callbacks = { filestream_read, fs_vorbis_seek, fs_vorbis_close, fs_vorbis_tell };
#endif
/* supported WAVE file extensions */
static const char extensions[SUPPORTED_EXT][16] =
{
@ -1290,7 +1265,7 @@ static void cdd_read_subcode(void)
void cdd_update(void)
{
#ifdef LOG_CDD
error("LBA = %d (track n°%d)(latency=%d)\n", cdd.lba, cdd.index, cdd.latency);
error("LBA = %d (track n?%d)(latency=%d)\n", cdd.lba, cdd.index, cdd.latency);
#endif
/* seeking disc */

View File

@ -61,8 +61,6 @@
#define CD_MAX_TRACKS 100
typedef struct RFILE RFILE;
/* CD track */
typedef struct
{

File diff suppressed because it is too large Load Diff

View File

@ -25483,3 +25483,5 @@ static void m68ki_build_opcode_table(void)
/* ======================================================================== */
/* ============================== END OF FILE ============================= */
/* ======================================================================== */