Cleanup
This commit is contained in:
parent
c4ecfe3d9c
commit
49b7e0682b
|
@ -57,8 +57,7 @@ ArchiveFile* SzArchive::OpenFile(const char* name)
|
||||||
u16 fname[512];
|
u16 fname[512];
|
||||||
for (int i = 0; i < szarchive.NumFiles; i++)
|
for (int i = 0; i < szarchive.NumFiles; i++)
|
||||||
{
|
{
|
||||||
unsigned isDir = SzArEx_IsDir(&szarchive, i);
|
if (SzArEx_IsDir(&szarchive, i))
|
||||||
if (isDir)
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int len = SzArEx_GetFileNameUtf16(&szarchive, i, fname);
|
int len = SzArEx_GetFileNameUtf16(&szarchive, i, fname);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _CRT_SECURE_NO_DEPRECATE (1)
|
#define _CRT_SECURE_NO_DEPRECATE (1)
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include "cfg.h"
|
#include "cfg.h"
|
||||||
#include "ini.h"
|
#include "ini.h"
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
Nothing too interesting here, really
|
Nothing too interesting here, really
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <ctype.h>
|
#include <cctype>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ bool ConfigEntry::get_bool()
|
||||||
bool ConfigSection::has_entry(const std::string& name)
|
bool ConfigSection::has_entry(const std::string& name)
|
||||||
{
|
{
|
||||||
return (this->entries.count(name) == 1);
|
return (this->entries.count(name) == 1);
|
||||||
};
|
}
|
||||||
|
|
||||||
ConfigEntry* ConfigSection::get_entry(const std::string& name)
|
ConfigEntry* ConfigSection::get_entry(const std::string& name)
|
||||||
{
|
{
|
||||||
|
@ -53,13 +53,13 @@ ConfigEntry* ConfigSection::get_entry(const std::string& name)
|
||||||
return &this->entries[name];
|
return &this->entries[name];
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
};
|
}
|
||||||
|
|
||||||
void ConfigSection::set(const std::string& name, const std::string& value)
|
void ConfigSection::set(const std::string& name, const std::string& value)
|
||||||
{
|
{
|
||||||
ConfigEntry new_entry = { value };
|
ConfigEntry new_entry = { value };
|
||||||
this->entries[name] = new_entry;
|
this->entries[name] = new_entry;
|
||||||
};
|
}
|
||||||
|
|
||||||
void ConfigSection::delete_entry(const std::string& name)
|
void ConfigSection::delete_entry(const std::string& name)
|
||||||
{
|
{
|
||||||
|
@ -78,7 +78,7 @@ ConfigSection* ConfigFile::add_section(const std::string& name, bool is_virtual)
|
||||||
}
|
}
|
||||||
this->sections.insert(std::make_pair(name, new_section));
|
this->sections.insert(std::make_pair(name, new_section));
|
||||||
return &this->sections[name];
|
return &this->sections[name];
|
||||||
};
|
}
|
||||||
|
|
||||||
bool ConfigFile::has_section(const std::string& name)
|
bool ConfigFile::has_section(const std::string& name)
|
||||||
{
|
{
|
||||||
|
@ -113,7 +113,7 @@ ConfigSection* ConfigFile::get_section(const std::string& name, bool is_virtual)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
};
|
}
|
||||||
|
|
||||||
ConfigEntry* ConfigFile::get_entry(const std::string& section_name, const std::string& entry_name)
|
ConfigEntry* ConfigFile::get_entry(const std::string& section_name, const std::string& entry_name)
|
||||||
{
|
{
|
||||||
|
@ -179,7 +179,7 @@ void ConfigFile::set(const std::string& section_name, const std::string& entry_n
|
||||||
section = this->add_section(section_name, is_virtual);
|
section = this->add_section(section_name, is_virtual);
|
||||||
}
|
}
|
||||||
section->set(entry_name, value);
|
section->set(entry_name, value);
|
||||||
};
|
}
|
||||||
|
|
||||||
void ConfigFile::set_int(const std::string& section_name, const std::string& entry_name, int value, bool is_virtual)
|
void ConfigFile::set_int(const std::string& section_name, const std::string& entry_name, int value, bool is_virtual)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
#include "rend/TexCache.h"
|
#include "rend/TexCache.h"
|
||||||
#include "rend/rend.h"
|
#include "rend/rend.h"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "aica_if.h"
|
#include "aica_if.h"
|
||||||
#include "sgc_if.h"
|
#include "sgc_if.h"
|
||||||
#include "aica_mem.h"
|
#include "aica_mem.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "hw/holly/holly_intc.h"
|
#include "hw/holly/holly_intc.h"
|
||||||
#include "hw/holly/sb.h"
|
#include "hw/holly/sb.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "oslib/oslib.h"
|
#include "oslib/oslib.h"
|
||||||
#include "assert.h"
|
#include <cassert>
|
||||||
|
|
||||||
#define SCIEB_addr 0x289C
|
#define SCIEB_addr 0x289C
|
||||||
#define SCIPD_addr (0x289C+4)
|
#define SCIPD_addr (0x289C+4)
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include "hw/holly/holly_intc.h"
|
#include "hw/holly/holly_intc.h"
|
||||||
#include "hw/sh4/sh4_sched.h"
|
#include "hw/sh4/sh4_sched.h"
|
||||||
|
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
VArray2 aica_ram;
|
VArray2 aica_ram;
|
||||||
u32 VREG;//video reg =P
|
u32 VREG;//video reg =P
|
||||||
|
@ -75,9 +75,8 @@ void WriteMem_aica_rtc(u32 addr,u32 data,u32 sz)
|
||||||
rtc_EN=data&1;
|
rtc_EN=data&1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 ReadMem_aica_reg(u32 addr,u32 sz)
|
u32 ReadMem_aica_reg(u32 addr,u32 sz)
|
||||||
{
|
{
|
||||||
addr&=0x7FFF;
|
addr&=0x7FFF;
|
||||||
|
|
|
@ -109,9 +109,6 @@ void DecodeInst(u32 *IPtr,_INST *i)
|
||||||
|
|
||||||
const bool SUPPORT_NOFL=false;
|
const bool SUPPORT_NOFL=false;
|
||||||
|
|
||||||
|
|
||||||
#define assert verify
|
|
||||||
|
|
||||||
#pragma warning(disable:4311)
|
#pragma warning(disable:4311)
|
||||||
|
|
||||||
#define DYNBUF 0x10000
|
#define DYNBUF 0x10000
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "dsp.h"
|
#include "dsp.h"
|
||||||
#include "aica_mem.h"
|
#include "aica_mem.h"
|
||||||
#include "hw/aica/aica_if.h"
|
#include "hw/aica/aica_if.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
#undef FAR
|
#undef FAR
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#include "arm_mem.h"
|
#include "arm_mem.h"
|
||||||
#include "virt_arm.h"
|
#include "virt_arm.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
|
|
||||||
#define arm_printf(...) DEBUG_LOG(AICA_ARM, __VA_ARGS__)
|
#define arm_printf(...) DEBUG_LOG(AICA_ARM, __VA_ARGS__)
|
||||||
|
|
||||||
#define CPUReadMemoryQuick(addr) (*(u32*)&aica_ram[addr&ARAM_MASK])
|
#define CPUReadMemoryQuick(addr) (*(u32*)&aica_ram[addr&ARAM_MASK])
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "arm7.h"
|
#include "arm7.h"
|
||||||
#include "arm_mem.h"
|
|
||||||
|
|
||||||
|
|
||||||
//called when plugin is used by emu (you should do first time init here)
|
//called when plugin is used by emu (you should do first time init here)
|
||||||
s32 libARM_Init()
|
s32 libARM_Init()
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
struct MemChip
|
struct MemChip
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
/*
|
#pragma once
|
||||||
** gdrom_if.h
|
|
||||||
*/
|
|
||||||
#ifndef __GDROM_IF_H__
|
|
||||||
#define __GDROM_IF_H__
|
|
||||||
|
|
||||||
#include "types.h"
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
//there were at least 4 gdrom implementations, ZGDROM, HLE, gdromv1 (never worked), gdromv2 (first release)
|
//there were at least 4 gdrom implementations, ZGDROM, HLE, gdromv1 (never worked), gdromv2 (first release)
|
||||||
|
@ -12,12 +7,9 @@
|
||||||
//the code's history :)
|
//the code's history :)
|
||||||
#include "gdromv3.h"
|
#include "gdromv3.h"
|
||||||
|
|
||||||
void gdrom_reg_Init(void);
|
void gdrom_reg_Init();
|
||||||
void gdrom_reg_Term(void);
|
void gdrom_reg_Term();
|
||||||
void gdrom_reg_Reset(bool Manual);
|
void gdrom_reg_Reset(bool Manual);
|
||||||
|
|
||||||
u32 ReadMem_gdrom(u32 Addr, u32 sz);
|
u32 ReadMem_gdrom(u32 Addr, u32 sz);
|
||||||
void WriteMem_gdrom(u32 Addr, u32 data, u32 sz);
|
void WriteMem_gdrom(u32 Addr, u32 data, u32 sz);
|
||||||
void NotifyEvent_gdrom(u32 info,void* param);
|
|
||||||
|
|
||||||
#endif //__GDROM_IF_H__
|
|
||||||
|
|
|
@ -422,7 +422,6 @@ void DYNACALL WriteMem_area0(u32 addr,T data)
|
||||||
{
|
{
|
||||||
libExtDevice_WriteMem_A0_010(addr,data,sz);
|
libExtDevice_WriteMem_A0_010(addr,data,sz);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Init/Res/Term
|
//Init/Res/Term
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#include "hw/naomi/naomi_cart.h"
|
#include "hw/naomi/naomi_cart.h"
|
||||||
#include "hw/pvr/spg.h"
|
#include "hw/pvr/spg.h"
|
||||||
#include "input/gamepad.h"
|
#include "input/gamepad.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <xxhash.h>
|
#include <xxhash.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#include "maple_if.h"
|
#include "maple_if.h"
|
||||||
#include "maple_cfg.h"
|
#include "maple_cfg.h"
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <sys/stat.h> /* For mode constants */
|
#include <sys/stat.h> /* For mode constants */
|
||||||
#include <fcntl.h> /* For O_* constants */
|
#include <fcntl.h> /* For O_* constants */
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
#include <linux/ashmem.h>
|
#include <linux/ashmem.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
#if !defined(_MSC_VER) && (BUILD_COMPILER!=COMPILER_CLANG || !defined(WIN32))
|
#if !defined(_MSC_VER) && (BUILD_COMPILER!=COMPILER_CLANG || !defined(WIN32))
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
#include "net_platform.h"
|
#include "net_platform.h"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#else
|
#else
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/* Borrowed from yabause */
|
/* Borrowed from yabause */
|
||||||
/* Based on mame 315-5881_crypt.cpp and stvprot.cpp */
|
/* Based on mame 315-5881_crypt.cpp and stvprot.cpp */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include "naomi_cart.h"
|
#include "naomi_cart.h"
|
||||||
|
|
||||||
typedef struct sbox_s {
|
typedef struct sbox_s {
|
||||||
|
|
|
@ -46,7 +46,7 @@ bool bios_loaded = false;
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fd_t* RomCacheMap = NULL;
|
fd_t* RomCacheMap = NULL;
|
||||||
|
@ -586,8 +586,6 @@ void naomi_cart_LoadRom(const char* file)
|
||||||
CurrentCartridge = new DecryptedCartridge(RomPtr, RomSize);
|
CurrentCartridge = new DecryptedCartridge(RomPtr, RomSize);
|
||||||
strcpy(naomi_game_id, CurrentCartridge->GetGameId().c_str());
|
strcpy(naomi_game_id, CurrentCartridge->GetGameId().c_str());
|
||||||
NOTICE_LOG(NAOMI, "NAOMI GAME ID [%s]", naomi_game_id);
|
NOTICE_LOG(NAOMI, "NAOMI GAME ID [%s]", naomi_game_id);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void naomi_cart_Close()
|
void naomi_cart_Close()
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
//bleh stupid windoze header
|
//bleh stupid windoze header
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#include "helper_classes.h"
|
#include "helper_classes.h"
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,5 @@ void spg_Reset(bool Manual);
|
||||||
//need to replace 511 with correct value
|
//need to replace 511 with correct value
|
||||||
//#define Line_Cycles (Frame_Cycles/511)
|
//#define Line_Cycles (Frame_Cycles/511)
|
||||||
|
|
||||||
void spgUpdatePvr(u32 cycles);
|
|
||||||
bool spg_Init();
|
|
||||||
void spg_Term();
|
|
||||||
void spg_Reset(bool Manual);
|
|
||||||
void CalculateSync();
|
void CalculateSync();
|
||||||
void read_lightgun_position(int x, int y);
|
void read_lightgun_position(int x, int y);
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include "hw/aica/aica_if.h"
|
#include "hw/aica/aica_if.h"
|
||||||
#include "hw/gdrom/gdrom_if.h"
|
#include "hw/gdrom/gdrom_if.h"
|
||||||
|
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
#include <float.h>
|
#include <cfloat>
|
||||||
|
|
||||||
#include "blockmanager.h"
|
#include "blockmanager.h"
|
||||||
#include "ngen.h"
|
#include "ngen.h"
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "decoder.h"
|
#include "decoder.h"
|
||||||
#include "hw/sh4/modules/mmu.h"
|
#include "hw/sh4/modules/mmu.h"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <float.h>
|
#include <cfloat>
|
||||||
|
|
||||||
|
|
||||||
#include "sh4_opcodes.h"
|
#include "sh4_opcodes.h"
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include "../sh4_core.h"
|
#include "../sh4_core.h"
|
||||||
#include "../modules/ccn.h"
|
#include "../modules/ccn.h"
|
||||||
#include "../sh4_interrupts.h"
|
#include "../sh4_interrupts.h"
|
||||||
#include "../modules/tmu.h"
|
|
||||||
#include "hw/gdrom/gdrom_if.h"
|
#include "hw/gdrom/gdrom_if.h"
|
||||||
|
|
||||||
#include "hw/sh4/sh4_opcode.h"
|
#include "hw/sh4/sh4_opcode.h"
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "../sh4_sched.h"
|
#include "../sh4_sched.h"
|
||||||
#include "tmu.h"
|
|
||||||
#include "hw/sh4/sh4_interrupts.h"
|
#include "hw/sh4/sh4_interrupts.h"
|
||||||
#include "hw/sh4/sh4_mmr.h"
|
#include "hw/sh4/sh4_mmr.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "types.h"
|
|
|
@ -19,10 +19,6 @@
|
||||||
//main system mem
|
//main system mem
|
||||||
VArray2 mem_b;
|
VArray2 mem_b;
|
||||||
|
|
||||||
void _vmem_init();
|
|
||||||
void _vmem_reset();
|
|
||||||
void _vmem_term();
|
|
||||||
|
|
||||||
//MEM MAPPINNGG
|
//MEM MAPPINNGG
|
||||||
|
|
||||||
//AREA 1
|
//AREA 1
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
#include <string.h>
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ struct CHDDisc : Disc
|
||||||
|
|
||||||
~CHDDisc()
|
~CHDDisc()
|
||||||
{
|
{
|
||||||
if (hunk_mem)
|
delete[] hunk_mem;
|
||||||
delete [] hunk_mem;
|
|
||||||
if (chd)
|
if (chd)
|
||||||
chd_close(chd);
|
chd_close(chd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -269,9 +269,7 @@ bool DiscSwap(u32 fileflags)
|
||||||
|
|
||||||
void TermDrive()
|
void TermDrive()
|
||||||
{
|
{
|
||||||
if (disc != NULL)
|
delete disc;
|
||||||
delete disc;
|
|
||||||
|
|
||||||
disc = NULL;
|
disc = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ struct Track
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
void Destroy() { if (file) delete file; file=0; }
|
void Destroy() { delete file; file=0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Disc
|
struct Disc
|
||||||
|
|
|
@ -164,7 +164,3 @@ Disc* gdi_parse(const char* file)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iso_term()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include "gamepad_device.h"
|
#include "gamepad_device.h"
|
||||||
#include "rend/gui.h"
|
#include "rend/gui.h"
|
||||||
#include "oslib/oslib.h"
|
#include "oslib/oslib.h"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "gamepad.h"
|
#include "gamepad.h"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#if defined(SUPPORT_DISPMANX)
|
#if defined(SUPPORT_DISPMANX)
|
||||||
#include "linux-dist/dispmanx.h"
|
#include "dispmanx.h"
|
||||||
#include "linux-dist/main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#include <bcm_host.h>
|
#include <bcm_host.h>
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "linux-dist/joystick.h"
|
#include "joystick.h"
|
||||||
|
|
||||||
#if defined(USE_JOYSTICK)
|
#if defined(USE_JOYSTICK)
|
||||||
#include <linux/joystick.h>
|
#include <linux/joystick.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "linux-dist/main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#define JOYSTICK_DEVICE_STRING "/dev/input/js%d"
|
#define JOYSTICK_DEVICE_STRING "/dev/input/js%d"
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include "hw/sh4/dyna/blockmanager.h"
|
#include "hw/sh4/dyna/blockmanager.h"
|
||||||
|
@ -15,11 +15,11 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#if defined(SUPPORT_DISPMANX)
|
#if defined(SUPPORT_DISPMANX)
|
||||||
#include "linux-dist/dispmanx.h"
|
#include "dispmanx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SUPPORT_X11)
|
#if defined(SUPPORT_X11)
|
||||||
#include "linux-dist/x11.h"
|
#include "x11.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_SDL)
|
#if defined(USE_SDL)
|
||||||
|
@ -31,11 +31,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_EVDEV)
|
#if defined(USE_EVDEV)
|
||||||
#include "linux-dist/evdev.h"
|
#include "evdev.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_JOYSTICK)
|
#if defined(USE_JOYSTICK)
|
||||||
#include "linux-dist/joystick.h"
|
#include "joystick.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TARGET_PANDORA
|
#ifdef TARGET_PANDORA
|
||||||
|
@ -284,12 +284,12 @@ std::vector<string> find_system_config_dirs()
|
||||||
string s = (string)getenv("XDG_CONFIG_DIRS");
|
string s = (string)getenv("XDG_CONFIG_DIRS");
|
||||||
|
|
||||||
string::size_type pos = 0;
|
string::size_type pos = 0;
|
||||||
string::size_type n = s.find(":", pos);
|
string::size_type n = s.find(':', pos);
|
||||||
while(n != std::string::npos)
|
while(n != std::string::npos)
|
||||||
{
|
{
|
||||||
dirs.push_back(s.substr(pos, n-pos) + "/reicast");
|
dirs.push_back(s.substr(pos, n-pos) + "/reicast");
|
||||||
pos = n + 1;
|
pos = n + 1;
|
||||||
n = s.find(":", pos);
|
n = s.find(':', pos);
|
||||||
}
|
}
|
||||||
// Separator not found
|
// Separator not found
|
||||||
dirs.push_back(s.substr(pos) + "/reicast");
|
dirs.push_back(s.substr(pos) + "/reicast");
|
||||||
|
@ -310,12 +310,12 @@ std::vector<string> find_system_data_dirs()
|
||||||
string s = (string)getenv("XDG_DATA_DIRS");
|
string s = (string)getenv("XDG_DATA_DIRS");
|
||||||
|
|
||||||
string::size_type pos = 0;
|
string::size_type pos = 0;
|
||||||
string::size_type n = s.find(":", pos);
|
string::size_type n = s.find(':', pos);
|
||||||
while(n != std::string::npos)
|
while(n != std::string::npos)
|
||||||
{
|
{
|
||||||
dirs.push_back(s.substr(pos, n-pos) + "/reicast");
|
dirs.push_back(s.substr(pos, n-pos) + "/reicast");
|
||||||
pos = n + 1;
|
pos = n + 1;
|
||||||
n = s.find(":", pos);
|
n = s.find(':', pos);
|
||||||
}
|
}
|
||||||
// Separator not found
|
// Separator not found
|
||||||
dirs.push_back(s.substr(pos) + "/reicast");
|
dirs.push_back(s.substr(pos) + "/reicast");
|
||||||
|
@ -341,12 +341,12 @@ int main(int argc, wchar* argv[])
|
||||||
set_user_data_dir(find_user_data_dir());
|
set_user_data_dir(find_user_data_dir());
|
||||||
std::vector<string> dirs;
|
std::vector<string> dirs;
|
||||||
dirs = find_system_config_dirs();
|
dirs = find_system_config_dirs();
|
||||||
for(unsigned int i = 0; i < dirs.size(); i++)
|
for (std::size_t i = 0; i < dirs.size(); i++)
|
||||||
{
|
{
|
||||||
add_system_data_dir(dirs[i]);
|
add_system_data_dir(dirs[i]);
|
||||||
}
|
}
|
||||||
dirs = find_system_data_dirs();
|
dirs = find_system_data_dirs();
|
||||||
for(unsigned int i = 0; i < dirs.size(); i++)
|
for (std::size_t i = 0; i < dirs.size(); i++)
|
||||||
{
|
{
|
||||||
add_system_data_dir(dirs[i]);
|
add_system_data_dir(dirs[i]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
#include "linux-dist/x11.h"
|
#include "x11.h"
|
||||||
#include "linux-dist/main.h"
|
#include "main.h"
|
||||||
#include "rend/gui.h"
|
#include "rend/gui.h"
|
||||||
#include "input/gamepad.h"
|
#include "input/gamepad.h"
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ void* x11_vis;
|
||||||
|
|
||||||
extern bool dump_frame_switch;
|
extern bool dump_frame_switch;
|
||||||
|
|
||||||
void dc_exit(void);
|
void dc_exit();
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#if defined(__linux__) && !defined(__ANDROID__)
|
#if defined(__linux__) && !defined(__ANDROID__)
|
||||||
|
|
|
@ -3,21 +3,16 @@
|
||||||
#if FEAT_HAS_NIXPROF
|
#if FEAT_HAS_NIXPROF
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <cinttypes>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <pthread.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include <signal.h>
|
#include <csignal>
|
||||||
//#include <sys/ucontext.h>
|
//#include <sys/ucontext.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <signal.h>
|
|
||||||
//#include <execinfo.h>
|
//#include <execinfo.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -27,8 +22,7 @@
|
||||||
//#include <curses.h>
|
//#include <curses.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <signal.h>
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
@ -44,9 +38,8 @@
|
||||||
@brief Getting the callstack under Android
|
@brief Getting the callstack under Android
|
||||||
@author Peter Holtwick
|
@author Peter Holtwick
|
||||||
*/
|
*/
|
||||||
#include <unwind.h>
|
#include <unwind.h>
|
||||||
#include <stdio.h>
|
#include <cstring>
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
static int tick_count=0;
|
static int tick_count=0;
|
||||||
static pthread_t proft;
|
static pthread_t proft;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "hw/mem/_vmem.h"
|
#include "hw/mem/_vmem.h"
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
//linux types
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <cstddef>
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <Windows.h>
|
#include <windows.h>
|
||||||
constexpr u32 CODEPAGE_SHIFT_JIS = 932;
|
constexpr u32 CODEPAGE_SHIFT_JIS = 932;
|
||||||
constexpr u32 CODEPAGE_WINDOWS_1252 = 1252;
|
constexpr u32 CODEPAGE_WINDOWS_1252 = 1252;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -988,10 +988,10 @@ static void cleanup_serialize(void *data)
|
||||||
static string get_savestate_file_path()
|
static string get_savestate_file_path()
|
||||||
{
|
{
|
||||||
string state_file = cfgLoadStr("config", "image", "noname.chd");
|
string state_file = cfgLoadStr("config", "image", "noname.chd");
|
||||||
size_t lastindex = state_file.find_last_of("/");
|
size_t lastindex = state_file.find_last_of('/');
|
||||||
if (lastindex != -1)
|
if (lastindex != -1)
|
||||||
state_file = state_file.substr(lastindex + 1);
|
state_file = state_file.substr(lastindex + 1);
|
||||||
lastindex = state_file.find_last_of(".");
|
lastindex = state_file.find_last_of('.');
|
||||||
if (lastindex != -1)
|
if (lastindex != -1)
|
||||||
state_file = state_file.substr(0, lastindex);
|
state_file = state_file.substr(0, lastindex);
|
||||||
state_file = state_file + ".state";
|
state_file = state_file + ".state";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#if USE_ALSA
|
#if USE_ALSA
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
|
@ -18,7 +18,7 @@ static void alsa_init()
|
||||||
string device = cfgLoadStr("alsa", "device", "");
|
string device = cfgLoadStr("alsa", "device", "");
|
||||||
|
|
||||||
int rc = -1;
|
int rc = -1;
|
||||||
if (device == "" || device == "auto")
|
if (device.empty() || device == "auto")
|
||||||
{
|
{
|
||||||
INFO_LOG(AUDIO, "ALSA: trying to determine audio device");
|
INFO_LOG(AUDIO, "ALSA: trying to determine audio device");
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ std::vector<std::string> alsa_get_devicelist()
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
// special value to automatically detect on initialization
|
// special value to automatically detect on initialization
|
||||||
result.push_back("auto");
|
result.emplace_back("auto");
|
||||||
|
|
||||||
char** n = hints;
|
char** n = hints;
|
||||||
while (*n != NULL)
|
while (*n != NULL)
|
||||||
|
@ -214,7 +214,7 @@ std::vector<std::string> alsa_get_devicelist()
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
result.push_back(name);
|
result.emplace_back(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
It does work on my macmini though
|
It does work on my macmini though
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
|
|
||||||
#if HOST_OS == OS_DARWIN
|
#if HOST_OS == OS_DARWIN
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "oslib.h"
|
#include "oslib.h"
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#ifdef USE_LIBAO
|
#ifdef USE_LIBAO
|
||||||
|
|
||||||
#include <ao/ao.h>
|
#include <ao/ao.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#if USE_OMX
|
#if USE_OMX
|
||||||
|
|
||||||
#include <IL/OMX_Broadcom.h>
|
#include <IL/OMX_Broadcom.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#ifdef USE_OSS
|
#ifdef USE_OSS
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#ifdef USE_PULSEAUDIO
|
#ifdef USE_PULSEAUDIO
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#if defined(USE_SDL_AUDIO)
|
#if defined(USE_SDL_AUDIO)
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "oslib/audiostream.h"
|
#include "audiostream.h"
|
||||||
#include "stdclass.h"
|
#include "stdclass.h"
|
||||||
|
|
||||||
static SDL_AudioDeviceID audiodev;
|
static SDL_AudioDeviceID audiodev;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
#include "oslib/oslib.h"
|
#include "oslib.h"
|
||||||
#include "audiostream.h"
|
#include "audiostream.h"
|
||||||
|
|
||||||
struct SoundFrame { s16 l;s16 r; };
|
struct SoundFrame { s16 l;s16 r; };
|
||||||
|
@ -82,7 +82,7 @@ bool RegisterAudioBackend(audiobackend_t *backend)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
audiobackend_t* GetAudioBackend(std::string slug)
|
audiobackend_t* GetAudioBackend(const std::string& slug)
|
||||||
{
|
{
|
||||||
if (slug == "none")
|
if (slug == "none")
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,4 +53,4 @@ extern void TermAudio();
|
||||||
u32 GetAudioBackendCount();
|
u32 GetAudioBackendCount();
|
||||||
void SortAudioBackends();
|
void SortAudioBackends();
|
||||||
audiobackend_t* GetAudioBackend(int num);
|
audiobackend_t* GetAudioBackend(int num);
|
||||||
audiobackend_t* GetAudioBackend(std::string slug);
|
audiobackend_t* GetAudioBackend(const std::string& slug);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Bits and pieces from redream (https://github.com/inolen/redream)
|
Bits and pieces from redream (https://github.com/inolen/redream)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "hw/sh4/sh4_mem.h"
|
#include "hw/sh4/sh4_mem.h"
|
||||||
#include "hw/sh4/sh4_sched.h"
|
#include "hw/sh4/sh4_sched.h"
|
||||||
|
@ -16,6 +16,11 @@
|
||||||
#include "hw/holly/holly_intc.h"
|
#include "hw/holly/holly_intc.h"
|
||||||
#include "reios.h"
|
#include "reios.h"
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#undef min
|
||||||
|
#include <algorithm>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SWAP32(a) ((((a) & 0xff) << 24) | (((a) & 0xff00) << 8) | (((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff))
|
#define SWAP32(a) ((((a) & 0xff) << 24) | (((a) & 0xff00) << 8) | (((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff))
|
||||||
|
|
||||||
#define debugf(...) DEBUG_LOG(REIOS, __VA_ARGS__)
|
#define debugf(...) DEBUG_LOG(REIOS, __VA_ARGS__)
|
||||||
|
@ -93,7 +98,7 @@ static void read_sectors_to(u32 addr, u32 sector, u32 count)
|
||||||
{
|
{
|
||||||
libGDR_ReadSector((u8 *)temp, sector, 1, sizeof(temp));
|
libGDR_ReadSector((u8 *)temp, sector, 1, sizeof(temp));
|
||||||
|
|
||||||
for (int i = 0; i < ARRAY_SIZE(temp); i++)
|
for (std::size_t i = 0; i < ARRAY_SIZE(temp); i++)
|
||||||
{
|
{
|
||||||
if (virtual_addr)
|
if (virtual_addr)
|
||||||
WriteMem32(addr, temp[i]);
|
WriteMem32(addr, temp[i]);
|
||||||
|
@ -394,7 +399,7 @@ static void GD_HLE_Command(u32 cc)
|
||||||
// coded to 0x02 on boot
|
// coded to 0x02 on boot
|
||||||
ver[len - 1] = 0x02;
|
ver[len - 1] = 0x02;
|
||||||
|
|
||||||
for (int i = 0; i < len; i++)
|
for (u32 i = 0; i < len; i++)
|
||||||
WriteMem8(dest++, ver[i]);
|
WriteMem8(dest++, ver[i]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -45,9 +45,9 @@
|
||||||
#define MISC_SETVECTOR 0x01
|
#define MISC_SETVECTOR 0x01
|
||||||
|
|
||||||
#define CTOC_LBA(n) (n)
|
#define CTOC_LBA(n) (n)
|
||||||
#define CTOC_ADR(n) (n<<24)
|
#define CTOC_ADR(n) ((n)<<24)
|
||||||
#define CTOC_CTRL(n) (n<<28)
|
#define CTOC_CTRL(n) ((n)<<28)
|
||||||
#define CTOC_TRACK(n) (n<<16)
|
#define CTOC_TRACK(n) ((n)<<16)
|
||||||
|
|
||||||
void gdrom_hle_op();
|
void gdrom_hle_op();
|
||||||
|
|
||||||
|
|
|
@ -183,11 +183,11 @@ static void reios_sys_system() {
|
||||||
u8 data[24] = {0};
|
u8 data[24] = {0};
|
||||||
|
|
||||||
// read system_id from 0x0001a056
|
// read system_id from 0x0001a056
|
||||||
for (int i = 0; i < 8; i++)
|
for (u32 i = 0; i < 8; i++)
|
||||||
data[i] = flashrom->Read8(0x1a056 + i);
|
data[i] = flashrom->Read8(0x1a056 + i);
|
||||||
|
|
||||||
// read system_props from 0x0001a000
|
// read system_props from 0x0001a000
|
||||||
for (int i = 0; i < 5; i++)
|
for (u32 i = 0; i < 5; i++)
|
||||||
data[8 + i] = flashrom->Read8(0x1a000 + i);
|
data[8 + i] = flashrom->Read8(0x1a000 + i);
|
||||||
|
|
||||||
// system settings
|
// system settings
|
||||||
|
@ -294,7 +294,7 @@ static void reios_sys_flashrom() {
|
||||||
u32 size = r[6];
|
u32 size = r[6];
|
||||||
|
|
||||||
debugf("reios_sys_flashrom: FLASHROM_READ offs %x dest %08x size %x", offset, dest, size);
|
debugf("reios_sys_flashrom: FLASHROM_READ offs %x dest %08x size %x", offset, dest, size);
|
||||||
for (int i = 0; i < size; i++)
|
for (u32 i = 0; i < size; i++)
|
||||||
WriteMem8(dest++, flashrom->Read8(offset + i));
|
WriteMem8(dest++, flashrom->Read8(offset + i));
|
||||||
|
|
||||||
r[0] = size;
|
r[0] = size;
|
||||||
|
@ -318,7 +318,7 @@ static void reios_sys_flashrom() {
|
||||||
|
|
||||||
debugf("reios_sys_flashrom: FLASHROM_WRITE offs %x src %08x size %x", offs, src, size);
|
debugf("reios_sys_flashrom: FLASHROM_WRITE offs %x src %08x size %x", offs, src, size);
|
||||||
|
|
||||||
for (int i = 0; i < size; i++)
|
for (u32 i = 0; i < size; i++)
|
||||||
flashrom->data[offs + i] &= ReadMem8(src + i);
|
flashrom->data[offs + i] &= ReadMem8(src + i);
|
||||||
|
|
||||||
r[0] = size;
|
r[0] = size;
|
||||||
|
@ -610,7 +610,7 @@ static void reios_boot()
|
||||||
//Infinite loop for arm !
|
//Infinite loop for arm !
|
||||||
WriteMem32(0x80800000, 0xEAFFFFFE);
|
WriteMem32(0x80800000, 0xEAFFFFFE);
|
||||||
|
|
||||||
if (settings.reios.ElfFile.size()) {
|
if (!settings.reios.ElfFile.empty()) {
|
||||||
if (!reios_loadElf(settings.reios.ElfFile)) {
|
if (!reios_loadElf(settings.reios.ElfFile)) {
|
||||||
msgboxf("Failed to open %s", MBX_ICONERROR, settings.reios.ElfFile.c_str());
|
msgboxf("Failed to open %s", MBX_ICONERROR, settings.reios.ElfFile.c_str());
|
||||||
}
|
}
|
||||||
|
@ -654,7 +654,7 @@ static void reios_boot()
|
||||||
static std::map<u32, hook_fp*> hooks;
|
static std::map<u32, hook_fp*> hooks;
|
||||||
static std::map<hook_fp*, u32> hooks_rev;
|
static std::map<hook_fp*, u32> hooks_rev;
|
||||||
|
|
||||||
#define SYSCALL_ADDR_MAP(addr) ((addr & 0x1FFFFFFF) | 0x80000000)
|
#define SYSCALL_ADDR_MAP(addr) (((addr) & 0x1FFFFFFF) | 0x80000000)
|
||||||
|
|
||||||
static void register_hook(u32 pc, hook_fp* fn) {
|
static void register_hook(u32 pc, hook_fp* fn) {
|
||||||
hooks[SYSCALL_ADDR_MAP(pc)] = fn;
|
hooks[SYSCALL_ADDR_MAP(pc)] = fn;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Created on: May 26, 2018
|
* Created on: May 26, 2018
|
||||||
* Author: raph
|
* Author: raph
|
||||||
*/
|
*/
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "gl4.h"
|
#include "gl4.h"
|
||||||
#include "rend/gles/glcache.h"
|
#include "rend/gles/glcache.h"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "gl4.h"
|
#include "gl4.h"
|
||||||
#include "rend/gles/glcache.h"
|
#include "rend/gles/glcache.h"
|
||||||
#include "rend/rend.h"
|
#include "rend/rend.h"
|
||||||
|
@ -347,7 +347,7 @@ static void DrawModVols(int first, int count)
|
||||||
glcache.DepthMask(GL_FALSE);
|
glcache.DepthMask(GL_FALSE);
|
||||||
glcache.DepthFunc(Zfunction[4]);
|
glcache.DepthFunc(Zfunction[4]);
|
||||||
|
|
||||||
if(0)
|
if(false)
|
||||||
{
|
{
|
||||||
//simply draw the volumes -- for debugging
|
//simply draw the volumes -- for debugging
|
||||||
SetCull(0);
|
SetCull(0);
|
||||||
|
@ -467,7 +467,7 @@ void gl4DrawStrips(GLuint output_fbo, int width, int height)
|
||||||
glcache.Disable(GL_BLEND);
|
glcache.Disable(GL_BLEND);
|
||||||
glProvokingVertex(GL_LAST_VERTEX_CONVENTION);
|
glProvokingVertex(GL_LAST_VERTEX_CONVENTION);
|
||||||
|
|
||||||
RenderPass previous_pass = {0};
|
RenderPass previous_pass = {};
|
||||||
int render_pass_count = pvrrc.render_passes.used();
|
int render_pass_count = pvrrc.render_passes.used();
|
||||||
|
|
||||||
for (int render_pass = 0; render_pass < render_pass_count; render_pass++)
|
for (int render_pass = 0; render_pass < render_pass_count; render_pass++)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "gl4.h"
|
#include "gl4.h"
|
||||||
#include "rend/gles/glcache.h"
|
#include "rend/gles/glcache.h"
|
||||||
#include "rend/TexCache.h"
|
#include "rend/TexCache.h"
|
||||||
|
|
|
@ -79,7 +79,7 @@ void CustomTexture::LoaderThread()
|
||||||
std::string CustomTexture::GetGameId()
|
std::string CustomTexture::GetGameId()
|
||||||
{
|
{
|
||||||
std::string game_id(ip_meta.product_number, sizeof(ip_meta.product_number));
|
std::string game_id(ip_meta.product_number, sizeof(ip_meta.product_number));
|
||||||
const size_t str_end = game_id.find_last_not_of(" ");
|
const size_t str_end = game_id.find_last_not_of(' ');
|
||||||
if (str_end == std::string::npos)
|
if (str_end == std::string::npos)
|
||||||
return "";
|
return "";
|
||||||
game_id = game_id.substr(0, str_end + 1);
|
game_id = game_id.substr(0, str_end + 1);
|
||||||
|
|
|
@ -1089,7 +1089,7 @@ void DrawStrips()
|
||||||
//We use sampler 0
|
//We use sampler 0
|
||||||
glActiveTexture(GL_TEXTURE0);
|
glActiveTexture(GL_TEXTURE0);
|
||||||
|
|
||||||
RenderPass previous_pass = {0};
|
RenderPass previous_pass = {};
|
||||||
for (int render_pass = 0; render_pass < pvrrc.render_passes.used(); render_pass++) {
|
for (int render_pass = 0; render_pass < pvrrc.render_passes.used(); render_pass++) {
|
||||||
const RenderPass& current_pass = pvrrc.render_passes.head()[render_pass];
|
const RenderPass& current_pass = pvrrc.render_passes.head()[render_pass];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include "glcache.h"
|
#include "glcache.h"
|
||||||
#include "rend/TexCache.h"
|
#include "rend/TexCache.h"
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
|
|
|
@ -464,8 +464,8 @@ bool TextureCacheData::Delete()
|
||||||
if (lock_block)
|
if (lock_block)
|
||||||
libCore_vramlock_Unlock_block(lock_block);
|
libCore_vramlock_Unlock_block(lock_block);
|
||||||
lock_block=0;
|
lock_block=0;
|
||||||
if (custom_image_data != NULL)
|
|
||||||
delete [] custom_image_data;
|
delete[] custom_image_data;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
@ -1388,7 +1388,7 @@ static void add_game_directory(const std::string& path, std::vector<GameMedia>&
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string::size_type dotpos = name.find_last_of(".");
|
std::string::size_type dotpos = name.find_last_of('.');
|
||||||
if (dotpos == std::string::npos || dotpos == name.size() - 1)
|
if (dotpos == std::string::npos || dotpos == name.size() - 1)
|
||||||
continue;
|
continue;
|
||||||
std::string extension = name.substr(dotpos);
|
std::string extension = name.substr(dotpos);
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#define access _access
|
#define access _access
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
#if defined(USE_SDL)
|
#if defined(USE_SDL)
|
||||||
#include <map>
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "cfg/cfg.h"
|
#include "cfg/cfg.h"
|
||||||
#include "linux-dist/main.h"
|
#include "linux-dist/main.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -113,7 +113,7 @@ string get_readonly_data_path(const string& filename)
|
||||||
string get_game_save_prefix()
|
string get_game_save_prefix()
|
||||||
{
|
{
|
||||||
string save_file = cfgLoadStr("config", "image", "");
|
string save_file = cfgLoadStr("config", "image", "");
|
||||||
size_t lastindex = save_file.find_last_of("/");
|
size_t lastindex = save_file.find_last_of('/');
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
size_t lastindex2 = save_file.find_last_of("\\");
|
size_t lastindex2 = save_file.find_last_of("\\");
|
||||||
lastindex = max(lastindex, lastindex2);
|
lastindex = max(lastindex, lastindex2);
|
||||||
|
@ -126,7 +126,7 @@ string get_game_save_prefix()
|
||||||
string get_game_basename()
|
string get_game_basename()
|
||||||
{
|
{
|
||||||
string game_dir = cfgLoadStr("config", "image", "");
|
string game_dir = cfgLoadStr("config", "image", "");
|
||||||
size_t lastindex = game_dir.find_last_of(".");
|
size_t lastindex = game_dir.find_last_of('.');
|
||||||
if (lastindex != -1)
|
if (lastindex != -1)
|
||||||
game_dir = game_dir.substr(0, lastindex);
|
game_dir = game_dir.substr(0, lastindex);
|
||||||
return game_dir;
|
return game_dir;
|
||||||
|
@ -135,7 +135,7 @@ string get_game_basename()
|
||||||
string get_game_dir()
|
string get_game_dir()
|
||||||
{
|
{
|
||||||
string game_dir = cfgLoadStr("config", "image", "");
|
string game_dir = cfgLoadStr("config", "image", "");
|
||||||
size_t lastindex = game_dir.find_last_of("/");
|
size_t lastindex = game_dir.find_last_of('/');
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
size_t lastindex2 = game_dir.find_last_of("\\");
|
size_t lastindex2 = game_dir.find_last_of("\\");
|
||||||
lastindex = max(lastindex, lastindex2);
|
lastindex = max(lastindex, lastindex2);
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
|
@ -67,8 +67,8 @@
|
||||||
#pragma warning( disable : 4100)
|
#pragma warning( disable : 4100)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <stddef.h>
|
#include <cstddef>
|
||||||
|
|
||||||
//basic types
|
//basic types
|
||||||
typedef int8_t s8;
|
typedef int8_t s8;
|
||||||
|
@ -237,8 +237,8 @@ void libCore_CDDA_Sector(s16* sector);
|
||||||
|
|
||||||
|
|
||||||
//includes from CRT
|
//includes from CRT
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#if HOST_OS == OS_DARWIN
|
#if HOST_OS == OS_DARWIN
|
||||||
int darw_printf(const wchar* Text,...);
|
int darw_printf(const wchar* Text,...);
|
||||||
|
|
|
@ -111,7 +111,7 @@ void vmem_platform_reset_mem(void *ptr, unsigned size_bytes) {
|
||||||
|
|
||||||
// Allocates a bunch of memory (page aligned and page-sized)
|
// Allocates a bunch of memory (page aligned and page-sized)
|
||||||
void vmem_platform_ondemand_page(void *address, unsigned size_bytes) {
|
void vmem_platform_ondemand_page(void *address, unsigned size_bytes) {
|
||||||
verify(VirtualAlloc(address, size_bytes, MEM_COMMIT, PAGE_READWRITE));
|
verify(VirtualAlloc(address, size_bytes, MEM_COMMIT, PAGE_READWRITE) != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates mappings to the underlying file including mirroring sections
|
/// Creates mappings to the underlying file including mirroring sections
|
||||||
|
|
|
@ -263,7 +263,6 @@
|
||||||
84967C8E1B8F492C005F1140 /* pngwutil.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pngwutil.c; sourceTree = "<group>"; };
|
84967C8E1B8F492C005F1140 /* pngwutil.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pngwutil.c; sourceTree = "<group>"; };
|
||||||
8497BCBC1A41A0E900EFB9ED /* common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = common.cpp; sourceTree = "<group>"; };
|
8497BCBC1A41A0E900EFB9ED /* common.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = common.cpp; sourceTree = "<group>"; };
|
||||||
8497BCBD1A41A0E900EFB9ED /* nixprof.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = nixprof.cpp; path = nixprof/nixprof.cpp; sourceTree = "<group>"; };
|
8497BCBD1A41A0E900EFB9ED /* nixprof.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = nixprof.cpp; path = nixprof/nixprof.cpp; sourceTree = "<group>"; };
|
||||||
8497BCBE1A41A0E900EFB9ED /* typedefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = typedefs.h; sourceTree = "<group>"; };
|
|
||||||
8497BCCD1A41BFD800EFB9ED /* coreio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = coreio.cpp; sourceTree = "<group>"; };
|
8497BCCD1A41BFD800EFB9ED /* coreio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = coreio.cpp; sourceTree = "<group>"; };
|
||||||
8497BCCE1A41BFD800EFB9ED /* coreio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = coreio.h; sourceTree = "<group>"; };
|
8497BCCE1A41BFD800EFB9ED /* coreio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = coreio.h; sourceTree = "<group>"; };
|
||||||
849C0D601B072C07008BAAA4 /* context.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = context.cpp; sourceTree = "<group>"; };
|
849C0D601B072C07008BAAA4 /* context.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = context.cpp; sourceTree = "<group>"; };
|
||||||
|
@ -553,7 +552,6 @@
|
||||||
9C7A3A4418C806DF0070BB5F /* rtc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = rtc.cpp; sourceTree = "<group>"; };
|
9C7A3A4418C806DF0070BB5F /* rtc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = rtc.cpp; sourceTree = "<group>"; };
|
||||||
9C7A3A4518C806DF0070BB5F /* serial.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = serial.cpp; sourceTree = "<group>"; };
|
9C7A3A4518C806DF0070BB5F /* serial.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = serial.cpp; sourceTree = "<group>"; };
|
||||||
9C7A3A4618C806DF0070BB5F /* tmu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tmu.cpp; sourceTree = "<group>"; };
|
9C7A3A4618C806DF0070BB5F /* tmu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tmu.cpp; sourceTree = "<group>"; };
|
||||||
9C7A3A4718C806DF0070BB5F /* tmu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tmu.h; sourceTree = "<group>"; };
|
|
||||||
9C7A3A4818C806DF0070BB5F /* ubc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ubc.cpp; sourceTree = "<group>"; };
|
9C7A3A4818C806DF0070BB5F /* ubc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ubc.cpp; sourceTree = "<group>"; };
|
||||||
9C7A3A4918C806DF0070BB5F /* sh4_core.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sh4_core.h; sourceTree = "<group>"; };
|
9C7A3A4918C806DF0070BB5F /* sh4_core.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sh4_core.h; sourceTree = "<group>"; };
|
||||||
9C7A3A4A18C806DF0070BB5F /* sh4_core_regs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sh4_core_regs.cpp; sourceTree = "<group>"; };
|
9C7A3A4A18C806DF0070BB5F /* sh4_core_regs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sh4_core_regs.cpp; sourceTree = "<group>"; };
|
||||||
|
@ -659,7 +657,6 @@
|
||||||
849C0D611B072C07008BAAA4 /* context.h */,
|
849C0D611B072C07008BAAA4 /* context.h */,
|
||||||
8497BCBC1A41A0E900EFB9ED /* common.cpp */,
|
8497BCBC1A41A0E900EFB9ED /* common.cpp */,
|
||||||
8497BCBD1A41A0E900EFB9ED /* nixprof.cpp */,
|
8497BCBD1A41A0E900EFB9ED /* nixprof.cpp */,
|
||||||
8497BCBE1A41A0E900EFB9ED /* typedefs.h */,
|
|
||||||
);
|
);
|
||||||
path = linux;
|
path = linux;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -1298,7 +1295,6 @@
|
||||||
9C7A3A4418C806DF0070BB5F /* rtc.cpp */,
|
9C7A3A4418C806DF0070BB5F /* rtc.cpp */,
|
||||||
9C7A3A4518C806DF0070BB5F /* serial.cpp */,
|
9C7A3A4518C806DF0070BB5F /* serial.cpp */,
|
||||||
9C7A3A4618C806DF0070BB5F /* tmu.cpp */,
|
9C7A3A4618C806DF0070BB5F /* tmu.cpp */,
|
||||||
9C7A3A4718C806DF0070BB5F /* tmu.h */,
|
|
||||||
9C7A3A4818C806DF0070BB5F /* ubc.cpp */,
|
9C7A3A4818C806DF0070BB5F /* ubc.cpp */,
|
||||||
);
|
);
|
||||||
path = modules;
|
path = modules;
|
||||||
|
|
|
@ -551,7 +551,6 @@
|
||||||
84B7BE2C1B72720100F9733F /* rtc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = rtc.cpp; sourceTree = "<group>"; };
|
84B7BE2C1B72720100F9733F /* rtc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = rtc.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE2D1B72720100F9733F /* serial.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = serial.cpp; sourceTree = "<group>"; };
|
84B7BE2D1B72720100F9733F /* serial.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = serial.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE2E1B72720100F9733F /* tmu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tmu.cpp; sourceTree = "<group>"; };
|
84B7BE2E1B72720100F9733F /* tmu.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tmu.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE2F1B72720100F9733F /* tmu.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tmu.h; sourceTree = "<group>"; };
|
|
||||||
84B7BE301B72720100F9733F /* ubc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ubc.cpp; sourceTree = "<group>"; };
|
84B7BE301B72720100F9733F /* ubc.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ubc.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE311B72720100F9733F /* sh4_core.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sh4_core.h; sourceTree = "<group>"; };
|
84B7BE311B72720100F9733F /* sh4_core.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sh4_core.h; sourceTree = "<group>"; };
|
||||||
84B7BE321B72720100F9733F /* sh4_core_regs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sh4_core_regs.cpp; sourceTree = "<group>"; };
|
84B7BE321B72720100F9733F /* sh4_core_regs.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sh4_core_regs.cpp; sourceTree = "<group>"; };
|
||||||
|
@ -597,7 +596,6 @@
|
||||||
84B7BE661B72720100F9733F /* context.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = context.cpp; sourceTree = "<group>"; };
|
84B7BE661B72720100F9733F /* context.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = context.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE671B72720100F9733F /* context.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = context.h; sourceTree = "<group>"; };
|
84B7BE671B72720100F9733F /* context.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = context.h; sourceTree = "<group>"; };
|
||||||
84B7BE691B72720100F9733F /* nixprof.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = nixprof.cpp; sourceTree = "<group>"; };
|
84B7BE691B72720100F9733F /* nixprof.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = nixprof.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE6A1B72720100F9733F /* typedefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = typedefs.h; sourceTree = "<group>"; };
|
|
||||||
84B7BE6E1B72720200F9733F /* nullDC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = nullDC.cpp; path = ../../../core/nullDC.cpp; sourceTree = "<group>"; };
|
84B7BE6E1B72720200F9733F /* nullDC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = nullDC.cpp; path = ../../../core/nullDC.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE701B72720200F9733F /* audiobackend_alsa.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = audiobackend_alsa.cpp; sourceTree = "<group>"; };
|
84B7BE701B72720200F9733F /* audiobackend_alsa.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = audiobackend_alsa.cpp; sourceTree = "<group>"; };
|
||||||
84B7BE711B72720200F9733F /* audiobackend_alsa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = audiobackend_alsa.h; sourceTree = "<group>"; };
|
84B7BE711B72720200F9733F /* audiobackend_alsa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = audiobackend_alsa.h; sourceTree = "<group>"; };
|
||||||
|
@ -1502,7 +1500,6 @@
|
||||||
84B7BE2C1B72720100F9733F /* rtc.cpp */,
|
84B7BE2C1B72720100F9733F /* rtc.cpp */,
|
||||||
84B7BE2D1B72720100F9733F /* serial.cpp */,
|
84B7BE2D1B72720100F9733F /* serial.cpp */,
|
||||||
84B7BE2E1B72720100F9733F /* tmu.cpp */,
|
84B7BE2E1B72720100F9733F /* tmu.cpp */,
|
||||||
84B7BE2F1B72720100F9733F /* tmu.h */,
|
|
||||||
84B7BE301B72720100F9733F /* ubc.cpp */,
|
84B7BE301B72720100F9733F /* ubc.cpp */,
|
||||||
);
|
);
|
||||||
path = modules;
|
path = modules;
|
||||||
|
@ -1596,7 +1593,6 @@
|
||||||
84B7BE671B72720100F9733F /* context.h */,
|
84B7BE671B72720100F9733F /* context.h */,
|
||||||
84B7BE681B72720100F9733F /* nixprof */,
|
84B7BE681B72720100F9733F /* nixprof */,
|
||||||
AEF2564722886A2E00348550 /* posix_vmem.cpp */,
|
AEF2564722886A2E00348550 /* posix_vmem.cpp */,
|
||||||
84B7BE6A1B72720100F9733F /* typedefs.h */,
|
|
||||||
);
|
);
|
||||||
name = linux;
|
name = linux;
|
||||||
path = ../../../core/linux;
|
path = ../../../core/linux;
|
||||||
|
|
|
@ -472,7 +472,6 @@
|
||||||
<ClInclude Include="..\core\hw\sh4\modules\mmu.h" />
|
<ClInclude Include="..\core\hw\sh4\modules\mmu.h" />
|
||||||
<ClInclude Include="..\core\hw\sh4\modules\mmu_impl.h" />
|
<ClInclude Include="..\core\hw\sh4\modules\mmu_impl.h" />
|
||||||
<ClInclude Include="..\core\hw\sh4\modules\modules.h" />
|
<ClInclude Include="..\core\hw\sh4\modules\modules.h" />
|
||||||
<ClInclude Include="..\core\hw\sh4\modules\tmu.h" />
|
|
||||||
<ClInclude Include="..\core\hw\sh4\sh4_if.h" />
|
<ClInclude Include="..\core\hw\sh4\sh4_if.h" />
|
||||||
<ClInclude Include="..\core\hw\sh4\sh4_interrupts.h" />
|
<ClInclude Include="..\core\hw\sh4\sh4_interrupts.h" />
|
||||||
<ClInclude Include="..\core\hw\sh4\sh4_mmr.h" />
|
<ClInclude Include="..\core\hw\sh4\sh4_mmr.h" />
|
||||||
|
@ -503,16 +502,6 @@
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Slow|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Slow|x64'">true</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Naomi Debug|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Naomi Debug|x64'">true</ExcludedFromBuild>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\core\linux\typedefs.h">
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Slow|Win32'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Naomi Debug|Win32'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Slow|x64'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Naomi Debug|x64'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Fast|Win32'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Naomi Release|Win32'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Fast|x64'">true</ExcludedFromBuild>
|
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Naomi Release|x64'">true</ExcludedFromBuild>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\core\oslib\audiobackend_directsound.h" />
|
<ClInclude Include="..\core\oslib\audiobackend_directsound.h" />
|
||||||
<ClInclude Include="..\core\oslib\audiostream.h" />
|
<ClInclude Include="..\core\oslib\audiostream.h" />
|
||||||
<ClInclude Include="..\core\oslib\oslib.h" />
|
<ClInclude Include="..\core\oslib\oslib.h" />
|
||||||
|
|
|
@ -1004,9 +1004,6 @@
|
||||||
<ClInclude Include="..\core\hw\sh4\modules\mmu.h">
|
<ClInclude Include="..\core\hw\sh4\modules\mmu.h">
|
||||||
<Filter>hw\sh4\modules</Filter>
|
<Filter>hw\sh4\modules</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\core\hw\sh4\modules\tmu.h">
|
|
||||||
<Filter>hw\sh4\modules</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\core\hw\sh4\dyna\blockmanager.h">
|
<ClInclude Include="..\core\hw\sh4\dyna\blockmanager.h">
|
||||||
<Filter>hw\sh4\dyna</Filter>
|
<Filter>hw\sh4\dyna</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -1067,9 +1064,6 @@
|
||||||
<ClInclude Include="..\core\deps\libelf\elf32.h">
|
<ClInclude Include="..\core\deps\libelf\elf32.h">
|
||||||
<Filter>deps\libelf</Filter>
|
<Filter>deps\libelf</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\core\linux\typedefs.h">
|
|
||||||
<Filter>linux</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\core\deps\chdpsr\cdipsr.h">
|
<ClInclude Include="..\core\deps\chdpsr\cdipsr.h">
|
||||||
<Filter>deps\chdpsr</Filter>
|
<Filter>deps\chdpsr</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
|
Loading…
Reference in New Issue