mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 19:51:48 +01:00
Revert these files
This commit is contained in:
parent
795a843719
commit
5e2ed42295
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
@ -61,8 +61,6 @@
|
||||
|
||||
#define CD_MAX_TRACKS 100
|
||||
|
||||
typedef struct RFILE RFILE;
|
||||
|
||||
/* CD track */
|
||||
typedef struct
|
||||
{
|
||||
|
1675
core/m68k/m68k.h
1675
core/m68k/m68k.h
File diff suppressed because it is too large
Load Diff
@ -25483,3 +25483,5 @@ static void m68ki_build_opcode_table(void)
|
||||
/* ======================================================================== */
|
||||
/* ============================== END OF FILE ============================= */
|
||||
/* ======================================================================== */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user