code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
# Makefile for genplus DOS
#
# (c) 1999, 2000, 2001, 2002, 2003 Charles MacDonald
# modified by Eke-Eke <eke_eke31@yahoo.fr>
#
# Defines :
# -DLSB_FIRST - Leave undefined for big-endian processors.
# -DDOS - Enable DOS/x86 specific code.
# -DDEBUG - Enable debugging code
# -DX86_ASM - Enable inlin... | zyking1987-genplus-droid | genplusgx/unused/dos/Makefile | Makefile | gpl2 | 3,148 |
/* unzip.c -- IO on .zip files using zlib
Version 0.15 beta, Mar 19th, 1998,
Read unzip.h for more info
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
#ifdef STDC
# include <stddef.h>
# include <string.h>
# include <stdlib.h>
#endif
#if... | zyking1987-genplus-droid | genplusgx/unused/dos/unzip.c | C | gpl2 | 36,877 |
/*
dos.c --
DOS interface code for the emulator
*/
#include "shared.h"
#include "osd.h"
#define FRAMES_PER_SECOND 60
#define MSG_LEN 1024
RGB vdp_palette[3][0x200];
PALETTE gen_pal;
BITMAP *gen_bmp;
volatile int frame_skip = 1;
volatile int frame_count = 0;
volatile int frame... | zyking1987-genplus-droid | genplusgx/unused/dos/dos.c | C | gpl2 | 16,262 |
#ifndef _ERROR_H_
#define _ERROR_H_
/* Global variables */
FILE *error_log;
/* Function prototypes */
void error_init(void);
void error_shutdown(void);
void error(char *format, ...);
#endif /* _ERROR_H_ */
| zyking1987-genplus-droid | genplusgx/unused/dos/error.h | C | gpl2 | 223 |
#ifndef _SEALINTF_H_
#define _SEALINTF_H_
#define MAX_SOUND 4
#define NUMVOICES 16
#define MAX_STREAM_CHANNELS 6
/* Function prototypes */
void osd_update_audio(void);
void osd_set_mastervolume(int _attenuation);
int msdos_init_sound(int *rate, int card);
void msdos_shutdo... | zyking1987-genplus-droid | genplusgx/unused/dos/SEALINTF.H | C | gpl2 | 571 |
/* unzip.h -- IO for uncompress .zip files using zlib
Version 0.15 beta, Mar 19th, 1998,
Copyright (C) 1998 Gilles Vollant
This unzip package allow extract file from .ZIP file, compatible with PKZip 2.04g
WinZip, InfoZip tools and compatible.
Encryption and multi volume ZipFile (span) are not... | zyking1987-genplus-droid | genplusgx/unused/dos/unzip.h | C | gpl2 | 10,294 |
#include "osd.h"
int seal_sample_rate = 44100;
int seal_sound_card = -1;
HAC hVoice[NUMVOICES];
LPAUDIOWAVE lpWave[NUMVOICES];
AUDIOINFO info;
AUDIOCAPS caps;
int c[MAX_STREAM_CHANNELS];
int nominal_sample_rate;
static int attenuation = 0;
static int master_volume = 256;
void osd_update_audio(... | zyking1987-genplus-droid | genplusgx/unused/dos/SEALINTF.C | C | gpl2 | 7,342 |
#ifndef _OSD_H_
#define _OSD_H_
#include <stdio.h>
#include <allegro.h>
#include <string.h>
#include <audio.h>
#include <time.h>
#include <conio.h>
#include "shared.h"
#include "dos.h"
#include "config.h"
#include "sealintf.h"
#include "error.h"
#include "unzip.h"
#include "fileio.h"
volatile int... | zyking1987-genplus-droid | genplusgx/unused/dos/osd.h | C | gpl2 | 359 |
#include "shared.h"
/*
Load a normal file, or ZIP/GZ archive.
Returns NULL if an error occured.
*/
uint8 *load_archive(char *filename, int *file_size)
{
int size = 0;
uint8 *buf = NULL;
if(check_zip(filename))
{
unzFile *fd = NULL;
unz_file_info info;
int... | zyking1987-genplus-droid | genplusgx/unused/dos/fileio.c | C | gpl2 | 3,371 |
#include "osd.h"
t_option option;
t_config config;
void do_config(char *file)
{
extern int __crt0_argc;
extern char **__crt0_argv;
/* Our token list */
int i, argc;
char *argv[TOKEN_LIST_SIZE];
set_option_defaults();
for(i = 0; i < TOKEN_LIST_SIZE; i += 1) argv[i] = NULL... | zyking1987-genplus-droid | genplusgx/unused/dos/config.c | C | gpl2 | 8,417 |
#ifndef _CONFIG_H_
#define _CONFIG_H_
#define PATH_SIZE (0x100)
#define TOKEN_LIST_SIZE (0x20)
typedef struct
{
char *token;
int value;
}t_strint;
typedef struct
{
int video_width;
int video_height;
int video_depth;
int video_driver;
int autores;
int autor... | zyking1987-genplus-droid | genplusgx/unused/dos/config.h | C | gpl2 | 2,087 |
/****************************************************************************
* gx_video.c
*
* Genesis Plus GX video & rendering support
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General ... | zyking1987-genplus-droid | genplusgx/unused/gx/gx_video.c | C | gpl2 | 45,779 |
/****************************************************************************
* gx_video.c
*
* Genesis Plus GX video support
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | zyking1987-genplus-droid | genplusgx/unused/gx/gx_video.h | C | gpl2 | 2,474 |
/****************************************************************************
* gx_input.c
*
* Genesis Plus GX input support
*
* Eke-Eke (2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | zyking1987-genplus-droid | genplusgx/unused/gx/gx_input.c | C | gpl2 | 29,308 |
/****************************************************************************
* gx_audio.c
*
* Genesis Plus GX audio support
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | zyking1987-genplus-droid | genplusgx/unused/gx/gx_audio.c | C | gpl2 | 5,814 |
/****************************************************************************
* main.c
*
* Genesis Plus GX
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by... | zyking1987-genplus-droid | genplusgx/unused/gx/main.c | C | gpl2 | 6,846 |
/****************************************************************************
* gui.c
*
* generic GUI Engine, using GX hardware
*
* Eke-Eke (2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/gui.c | C | gpl2 | 54,713 |
/****************************************************************************
* gui.c
*
* generic GUI engine, using GX hardware
*
* Eke-Eke (2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/gui.h | C | gpl2 | 10,990 |
/****************************************************************************
* menu.c
*
* Genesis Plus GX menus
*
* Eke-Eke (2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/menu.c | C | gpl2 | 86,729 |
/*
* filesel.c
*
* File Selection menu
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the L... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/filesel.c | C | gpl2 | 16,376 |
/*
* filesel.c
*
* File Selection menu
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the L... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/filesel.h | C | gpl2 | 1,400 |
/*****************************************************************************
* font.c
*
* IPL font engine
*
* original font support by Softdev (2006)
* GX rendering by Eke-Eke (2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/font.c | C | gpl2 | 11,324 |
/****************************************************************************
* legal.c
*
* Genesis Plus GX Disclaimer
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/legal.c | C | gpl2 | 7,602 |
<html>
<!-- Mirrored from genplus-gx.googlecode.com/svn/!svn/bc/427/trunk/source/gx/gui/ by HTTrack Website Copier/3.x [XR&CO'2010], Mon, 13 Dec 2010 08:08:08 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<head><title>genplus-gx - Revision ... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/index.html | HTML | gpl2 | 1,424 |
/****************************************************************************
* ggentry.c
*
* Genesis Plus GX Game Genie
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/ggentry.c | C | gpl2 | 8,459 |
/*****************************************************************************
* font.c
*
* IPL Font Engine, powered by GX hardware
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General ... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/font.h | C | gpl2 | 1,758 |
/***********************************************************
* Genesis Plus Save Icon
* Made by Brakken (http://www.tehskeen.com)
*
************************************************************/
unsigned short icon[1024] = {
0xFFFF, 0xFFFF, 0xFBDE, 0xFBDE, 0xFBDE, 0xFBDE, 0xFBDE, 0xEB5A,
0xFBDE, 0xFBDE,... | zyking1987-genplus-droid | genplusgx/unused/gx/gui/saveicon.h | C | gpl2 | 8,816 |
<html>
<!-- Mirrored from genplus-gx.googlecode.com/svn/!svn/bc/427/trunk/source/gx/sounds/ by HTTrack Website Copier/3.x [XR&CO'2010], Mon, 13 Dec 2010 08:09:22 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<head><title>genplus-gx - Revisi... | zyking1987-genplus-droid | genplusgx/unused/gx/sounds/index.html | HTML | gpl2 | 1,087 |
/****************************************************************************
* aram.c
*
* ARAM wrapper for libogc
*
* Softdev (2006)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwar... | zyking1987-genplus-droid | genplusgx/unused/gx/aram.c | C | gpl2 | 1,813 |
/****************************************************************************
* aram.c
*
* ARAM wrapper for libogc
*
* Softdev (2006)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwar... | zyking1987-genplus-droid | genplusgx/unused/gx/aram.h | C | gpl2 | 1,157 |
/****************************************************************************
* vi_encoder.c
*
* Wii Audio/Video Encoder support
*
* Copyright (C) 2009 Hector Martin (marcan)
* Additional code by Eke-Eke
*
* This program is free software; you can redistribute it and/or modify
* it under the term... | zyking1987-genplus-droid | genplusgx/unused/gx/vi_encoder.c | C | gpl2 | 14,066 |
/****************************************************************************
* vi_encoder.c
*
* Wii Audio/Video Encoder support
*
* Copyright (C) 2009 Hector Martin (marcan)
* Additional code by Eke-Eke
*
* This program is free software; you can redistribute it and/or modify
* it under the term... | zyking1987-genplus-droid | genplusgx/unused/gx/vi_encoder.h | C | gpl2 | 1,169 |
/****************************************************************************
* gx_input.c
*
* Genesis Plus GX input support
*
* Eke-Eke (2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | zyking1987-genplus-droid | genplusgx/unused/gx/gx_input.h | C | gpl2 | 1,569 |
/*
* dvd.c
*
* Low-level DVD access
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/dvd.h | C | gpl2 | 1,155 |
/*
* file_dvd.c
*
* ISO9660/Joliet DVD loading support
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/file_dvd.c | C | gpl2 | 11,048 |
/*
* file_mem.c
*
* FAT and Memory Card SRAM/Savestate files managment
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/file_mem.c | C | gpl2 | 18,366 |
/*
* file_fat.c
*
* FAT loading support
*
* Eke-Eke (2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/file_fat.h | C | gpl2 | 1,314 |
/*
* file_mem.c
*
* FAT and Memory Card SRAM/Savestate files managment
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/file_mem.h | C | gpl2 | 1,263 |
/******************************************************************************
*
* unzip.c
*
* Zip Support
*
* Only partial support is included, in that only the first file within the archive
* is considered to be a ROM image.
*
* Softdev (2006)
* Eke-Eke (2007,2008)
*
* This progr... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/unzip.c | C | gpl2 | 5,874 |
/*
* file_dvd.c
*
* ISO9660/Joliet DVD loading support
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/file_dvd.h | C | gpl2 | 1,255 |
/*
* dvd.c
*
* Low-level DVD access
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/dvd.c | C | gpl2 | 4,615 |
/******************************************************************************
*
* unzip.c
*
* Zip Support
*
* Only partial support is included, in that only the first file within the archive
* is considered to be a ROM image.
*
* Softdev (2006)
* Eke-Eke (2007,2008)
*
* This progr... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/unzip.h | C | gpl2 | 1,308 |
/*
* history.c
*
* Generic ROM history list managment
*
* Martin Disibio (6/17/08)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/history.c | C | gpl2 | 3,535 |
/*
* file_fat.c
*
* FAT loading support
*
* Eke-Eke (2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/file_fat.c | C | gpl2 | 8,020 |
<html>
<!-- Mirrored from genplus-gx.googlecode.com/svn/!svn/bc/427/trunk/source/gx/fileio/ by HTTrack Website Copier/3.x [XR&CO'2010], Mon, 13 Dec 2010 08:07:59 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<head><title>genplus-gx - Revisi... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/index.html | HTML | gpl2 | 1,452 |
/*
* history.c
*
* Generic ROM history list managment
*
* Martin Disibio (6/17/08)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... | zyking1987-genplus-droid | genplusgx/unused/gx/fileio/history.h | C | gpl2 | 1,615 |
#ifndef _OSD_H_
#define _OSD_H_
#define NGC 1
#include <gccore.h>
#include <ogcsys.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <sys/dir.h>
#include <asndlib.h>
#include <oggplayer.h>
#ifdef HW_RVL
#include <di/di.h>
#endif
#include "gx_input.h"
... | zyking1987-genplus-droid | genplusgx/unused/gx/osd.h | C | gpl2 | 1,126 |
/****************************************************************************
* gx_audio.c
*
* Genesis Plus GX audio support
*
* Softdev (2006)
* Eke-Eke (2007,2008,2009)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | zyking1987-genplus-droid | genplusgx/unused/gx/gx_audio.h | C | gpl2 | 1,331 |
<html>
<!-- Mirrored from genplus-gx.googlecode.com/svn/!svn/bc/427/trunk/source/gx/ by HTTrack Website Copier/3.x [XR&CO'2010], Mon, 13 Dec 2010 08:07:20 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<head><title>genplus-gx - Revision 427:... | zyking1987-genplus-droid | genplusgx/unused/gx/index.html | HTML | gpl2 | 1,718 |
/****************************************************************************
* config.c
*
* Genesis Plus GX configuration file support
*
* Eke-Eke (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | zyking1987-genplus-droid | genplusgx/unused/gx/config.c | C | gpl2 | 3,452 |
/****************************************************************************
* config.c
*
* Genesis Plus GX configuration file support
*
* Eke-Eke (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | zyking1987-genplus-droid | genplusgx/unused/gx/config.h | C | gpl2 | 2,347 |
<html>
<!-- Mirrored from genplus-gx.googlecode.com/svn/!svn/bc/427/trunk/source/gx/images/ by HTTrack Website Copier/3.x [XR&CO'2010], Mon, 13 Dec 2010 08:08:23 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack -->
<head><title>genplus-gx - Revisi... | zyking1987-genplus-droid | genplusgx/unused/gx/images/index.html | HTML | gpl2 | 6,308 |
#ifndef _FILEIO_H_
#define _FILEIO_H_
/* Global variables */
extern int cart_size;
extern char cart_name[0x100];
/* Function prototypes */
uint8 *load_archive(char *filename, int *file_size);
int load_cart(char *filename);
int check_zip(char *filename);
int gzsize(gzFile *gd);
#endif /* _FILEIO_H_ */
| zyking1987-genplus-droid | genplusgx/unused/win/fileio.h | C | gpl2 | 319 |
/*
error.c --
Error logging
*/
#include "osd.h"
FILE *error_log;
struct {
int enabled;
int verbose;
FILE *log;
} t_error;
void error_init(void)
{
#ifdef LOGERROR
error_log = fopen("error.log","w");
#endif
}
void error_shutdown(void)
{
if(error_log) fclose(error_log);
}
... | zyking1987-genplus-droid | genplusgx/unused/win/error.c | C | gpl2 | 493 |
#include <windows.h>
#include "SDL.h"
#include "SDL_thread.h"
#include "shared.h"
#include "sms_ntsc.h"
#include "md_ntsc.h"
#define SOUND_FREQUENCY 48000
#define SOUND_SAMPLES_SIZE 2048
#define VIDEO_WIDTH 320
#define VIDEO_HEIGHT 240
int joynum = 0;
int log_error = 0;
int debug_on = 0;... | zyking1987-genplus-droid | genplusgx/unused/win/main.c | C | gpl2 | 19,079 |
# Makefile for genplus SDL
#
# (c) 1999, 2000, 2001, 2002, 2003 Charles MacDonald
# modified by Eke-Eke <eke_eke31@yahoo.fr>
#
# Defines :
# -DLSB_FIRST : for little endian systems.
# -DLOGERROR : enable message logging
# -DLOGVDP : enable VDP debug messages
# -DLOGSOUND : enable AUDIO debug messages
NAME = g... | zyking1987-genplus-droid | genplusgx/unused/win/Makefile | Makefile | gpl2 | 2,910 |
/* unzip.c -- IO on .zip files using zlib
Version 0.15 beta, Mar 19th, 1998,
Read unzip.h for more info
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
#ifdef STDC
# include <stddef.h>
# include <string.h>
# include <stdlib.h>
#endif
#if... | zyking1987-genplus-droid | genplusgx/unused/win/unzip.c | C | gpl2 | 36,877 |
#ifndef _ERROR_H_
#define _ERROR_H_
/* Global variables */
FILE *error_log;
/* Function prototypes */
void error_init(void);
void error_shutdown(void);
void error(char *format, ...);
#endif /* _ERROR_H_ */
| zyking1987-genplus-droid | genplusgx/unused/win/error.h | C | gpl2 | 223 |
/* unzip.h -- IO for uncompress .zip files using zlib
Version 0.15 beta, Mar 19th, 1998,
Copyright (C) 1998 Gilles Vollant
This unzip package allow extract file from .ZIP file, compatible with PKZip 2.04g
WinZip, InfoZip tools and compatible.
Encryption and multi volume ZipFile (span) are not... | zyking1987-genplus-droid | genplusgx/unused/win/unzip.h | C | gpl2 | 10,294 |
#ifndef _MAIN_H_
#define _MAIN_H_
#define MAX_INPUTS 8
extern int debug_on;
extern int log_error;
#endif /* _MAIN_H_ */
| zyking1987-genplus-droid | genplusgx/unused/win/main.h | C | gpl2 | 134 |
# Makefile for genplus SDL
#
# (c) 1999, 2000, 2001, 2002, 2003 Charles MacDonald
# modified by Eke-Eke <eke_eke31@yahoo.fr>
#
# Defines :
# LSB_FIRST : for little endian systems.
# X86_ASM : enable x86 assembly optimizations
# LOGERROR
# LOGVDP
# LOGSOUND
NAME = gen_sdl.exe
CC = gcc
CFLAGS = `sdl-con... | zyking1987-genplus-droid | genplusgx/unused/win/Makefilehtml.html | HTML | gpl2 | 2,511 |
#ifndef _OSD_H_
#define _OSD_H_
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <time.h>
#include <conio.h>
#include <SDL.h>
#include <stdlib.h>
#include "shared.h"
#include "main.h"
#include "config.h"
#include "error.h"
#include "unzip.h"
#include "fileio.h"
#define osd_in... | zyking1987-genplus-droid | genplusgx/unused/win/osd.h | C | gpl2 | 541 |
#include "shared.h"
/*
Load a normal file, or ZIP/GZ archive.
Returns NULL if an error occured.
*/
uint8 *load_archive(char *filename, int *file_size)
{
int size = 0;
uint8 *buf = NULL;
if(check_zip(filename))
{
unzFile *fd = NULL;
unz_file_info info;
int... | zyking1987-genplus-droid | genplusgx/unused/win/fileio.c | C | gpl2 | 3,371 |
#include "osd.h"
t_config config;
void set_config_defaults(void)
{
int i;
/* sound options */
config.psg_preamp = 150;
config.fm_preamp = 100;
config.hq_fm = 1;
config.psgBoostNoise = 0;
config.filter = 1;
config.low_freq = 200;
config.high_freq ... | zyking1987-genplus-droid | genplusgx/unused/win/config.c | C | gpl2 | 1,117 |
#ifndef _CONFIG_H_
#define _CONFIG_H_
/****************************************************************************
* Config Option
*
****************************************************************************/
typedef struct
{
uint8 padtype;
} t_input_config;
typedef struct
{
uint8 hq_fm;
... | zyking1987-genplus-droid | genplusgx/unused/win/config.h | C | gpl2 | 942 |
#ifndef Z80_H_
#define Z80_H_
#include "osd_cpu.h"
enum
{
/* line states */
CLEAR_LINE = 0, /* clear (a fired, held or pulsed) line */
ASSERT_LINE, /* assert an interrupt immediately */
HOLD_LINE, /* hold interrupt line until acknowledged */
PULSE_LINE /* pulse interrupt line for one ... | zyking1987-genplus-droid | genplusgx/z80/z80.h | C | gpl2 | 2,268 |
/*******************************************************************************
* *
* Define size independent data types and operations. *
* ... | zyking1987-genplus-droid | genplusgx/z80/osd_cpu.h | C | gpl2 | 3,126 |
/*****************************************************************************
*
* z80.c
* Portable Z80 emulator V3.9
*
* Copyright Juergen Buchmueller, all rights reserved.
*
* - This source code is released as freeware for non-commercial purposes.
* - You are free to use and redistribute thi... | zyking1987-genplus-droid | genplusgx/z80/z80.c | C | gpl2 | 224,383 |
/***************************************************************************************
* Genesis Plus
* Z80 bus controller (MD & MS compatibility modes)
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Eke-Eke (2007-2011), additional code & fixes for the GCN/Wii... | zyking1987-genplus-droid | genplusgx/memz80.c | C | gpl2 | 7,598 |
#include "m68kcpu.h"
#include "m68kCycleAccurate.h"
extern void m68040_fpu_op0(void);
extern void m68040_fpu_op1(void);
/* ======================================================================== */
/* ========================= INSTRUCTION HANDLERS ========================= */
/* =============================... | zyking1987-genplus-droid | genplusgx/m68k/m68kops.c | C | gpl2 | 873,442 |
#ifndef M68K__HEADER
#define M68K__HEADER
/* ======================================================================== */
/* ========================= LICENSING & COPYRIGHT ======================== */
/* ======================================================================== */
/*
* ... | zyking1987-genplus-droid | genplusgx/m68k/m68k.h | C | gpl2 | 15,607 |
#include <stdio.h>
/* ======================================================================== */
/* ========================= LICENSING & COPYRIGHT ======================== */
/* ======================================================================== */
/*
* MUSASHI
* ... | zyking1987-genplus-droid | genplusgx/m68k/m68kcpu.h | C | gpl2 | 69,142 |
/* ======================================================================== */
/* ========================= LICENSING & COPYRIGHT ======================== */
/* ======================================================================== */
/*
* MUSASHI
* ... | zyking1987-genplus-droid | genplusgx/m68k/m68kconf.h | C | gpl2 | 7,605 |
/*
* Compute exact number of CPU cycles taken
* by DIVU and DIVS on a 68000 processor.
*
* Copyright (c) 2005 by Jorge Cwik, pasti@fxatari.com
*
* Added MULU and MULS accurate timings (Eke-Eke)
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pub... | zyking1987-genplus-droid | genplusgx/m68k/m68kCycleAccurate.h | C | gpl2 | 4,196 |
/* ======================================================================== */
/* ========================= LICENSING & COPYRIGHT ======================== */
/* ======================================================================== */
#if 0
static const char copyright_notice[] =
"MUSASHI\n"
"Version 3.32 (200... | zyking1987-genplus-droid | genplusgx/m68k/m68kcpu.c | C | gpl2 | 46,759 |
#ifndef M68KOPS__HEADER
#define M68KOPS__HEADER
/* ======================================================================== */
/* ============================ OPCODE HANDLERS =========================== */
/* ======================================================================== */
#if M68K_EMULATE_010 || M6... | zyking1987-genplus-droid | genplusgx/m68k/m68kops.h | C | gpl2 | 943 |
char GG_ROM[256]; // "/dev_usb000/genplus/cart/ggenie.bin"
char AR_ROM[256]; // "/dev_usb000/genplus/cart/areplay.bin"
char SK_ROM[256]; // "/dev_usb000/genplus/cart/sk.bin"
char SK_UPMEM[256]; // "/dev_usb000/genplus/cart/sk2chip.bin"
| zyking1987-genplus-droid | genplusgx/config.c | C | gpl2 | 258 |
/****************************************************************************
* config.c
*
* Genesis Plus GX configuration file support
*
* Eke-Eke (2008)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | zyking1987-genplus-droid | genplusgx/config.h | C | gpl2 | 3,164 |
/***************************************************************************************
* Genesis Plus
* 68k bus controller
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Eke-Eke (2007,2008,2009), additional code & fixes for the GCN/Wii port
*
* This progr... | zyking1987-genplus-droid | genplusgx/mem68k.h | C | gpl2 | 3,044 |
/***************************************************************************************
* Genesis Plus
* Z80 bank access to 68k bus
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Eke-Eke (2007,2008,2009), additional code & fixes for the GCN/Wii port
*
* Th... | zyking1987-genplus-droid | genplusgx/membnk.c | C | gpl2 | 6,602 |
/***************************************************************************************
* Genesis Plus
* Video Display Processor (Mode 4 & Mode 5 rendering)
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Eke-Eke (2007-2011), additional code & fixes for the GCN/... | zyking1987-genplus-droid | genplusgx/vdp_render.h | C | gpl2 | 2,608 |
#ifndef _SHARED_H_
#define _SHARED_H_
#include <stdio.h>
#include <math.h>
#include <zlib.h>
#include <string.h>
#include "types.h"
#include "macros.h"
#include "config.h" //PS3
#include "m68k/m68k.h"
#include "z80/z80.h"
#include "system.h"
#include "genesis.h"
#include "vdp_ctrl.h"
#include "vdp_ren... | zyking1987-genplus-droid | genplusgx/shared.h | C | gpl2 | 869 |
/***************************************************************************************
* Genesis Plus
* Internal hardware & Bus controllers
*
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Charles Mac Donald (original code)
* Eke-Eke (2007-2011), additional code & fixes for the GCN/Wii port
*
*... | zyking1987-genplus-droid | genplusgx/genesis.h | C | gpl2 | 1,977 |
# fceuDroid Makefile
# - for eclipse to auto build
all:
ndk-build -j8
#V=1
#APP_OPTIM=debug NDK_DEBUG=1
clean:
ndk-build clean
headers:
javah -classpath bin ca.halsafar.genesisdroid.Emulator
mv ca_halsafar_genesisdroid_Emulator.h ./jni/EmulatorBridge.h
install:
adb install GENPlusDroidRelease.apk
unin... | zyking1987-genplus-droid | Makefile | Makefile | gpl2 | 584 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import ca.halsafar.genesisdroid.PreferenceFacade;
import android.app.Activity;
import android.content.Context;
impor... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/EmulatorButtons.java | Java | gpl2 | 7,691 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import android.app.ListActivity;
import android.content.Context;
import android.content.SharedPreferences;
import a... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/KeyboardConfigActivity.java | Java | gpl2 | 8,466 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.E... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/InputPreferences.java | Java | gpl2 | 12,875 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
/**
* MAJOR TODO - remove app specific stuff in PreferenceFacade
*/
/**
* Emulator bridge to native side.
* Al... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/Emulator.java | Java | gpl2 | 3,178 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import android.app.Activity;
import android.content.Context;
import android.graphics.PixelFormat;
import android.gr... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/EmulatorView.java | Java | gpl2 | 21,281 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import java.io.File;
import java.util.Map;
import ca.halsafar.downloader.Decompress;
import ca.halsafar.downloader... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/SettingsActivity.java | Java | gpl2 | 17,770 |
/**
* GENPlusDroid
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClic... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/WelcomeActivity.java | Java | gpl2 | 1,453 |
package ca.halsafar.genesisdroid;
import ca.halsafar.audio.AudioPlayer;
import ca.halsafar.genesisdroid.PreferenceFacade;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.graphics.Rect;
import android... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/PreferenceFacade.java | Java | gpl2 | 16,034 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import java.io.IOException;
import java.io.InputStream;
import ca.halsafar.genesisdroid.R;
import android.app.Acti... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/InputConfigActivity.java | Java | gpl2 | 20,421 |
/**
* GENPlusDroid
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundExcep... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/AboutActivity.java | Java | gpl2 | 2,876 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import ca.halsafar.audio.AudioPlayer;
import ca.halsafar.filechooser.FileChooser;
import ca.halsafar.genesisdroid.E... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/EmulatorActivity.java | Java | gpl2 | 9,489 |
/**
* ANDROID EMUFRAMEWORK
*
* SEE LICENSE FILE FOR LICENSE INFO
*
* Copyright 2011 Stephen Damm (Halsafar)
* All rights reserved.
* shinhalsafar@gmail.com
*/
package ca.halsafar.genesisdroid;
import java.io.File;
import ca.halsafar.audio.AudioPlayer;
import ca.halsafar.filechooser.FileChooser;
import ca.ha... | zyking1987-genplus-droid | src/ca/halsafar/genesisdroid/MainActivity.java | Java | gpl2 | 14,797 |
package ca.halsafar.filechooser;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Stack;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import ca.halsafar.downloader.DecompressListener;
import ca... | zyking1987-genplus-droid | src/ca/halsafar/filechooser/FileChooser.java | Java | gpl2 | 12,545 |
package ca.halsafar.filechooser;
/**
* Based on:
* @author http://www.dreamincode.net/forums/topic/190013-creating-simple-file-chooser/
*
*/
public class Option implements Comparable<Option>{
private String name;
private String data;
private String path;
public Option(String n,String d,S... | zyking1987-genplus-droid | src/ca/halsafar/filechooser/Option.java | Java | gpl2 | 830 |
package ca.halsafar.filechooser;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import ca.halsafar.genesisdroid.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGr... | zyking1987-genplus-droid | src/ca/halsafar/filechooser/FileArrayAdapter.java | Java | gpl2 | 4,205 |
package ca.halsafar.widgets;
import ca.halsafar.genesisdroid.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.preference.DialogPreference;
import android.widget.SeekBar;
import android.widget... | zyking1987-genplus-droid | src/ca/halsafar/widgets/SeekBarPreference.java | Java | gpl2 | 4,772 |