mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-21 18:02:43 +01:00
- rename EMULATOR to Psy-X
- move it's makefile
This commit is contained in:
parent
e4518a104a
commit
0bc848da2c
@ -266,7 +266,7 @@ static int Emulator_InitialiseSDL(char* windowName, int width, int height, int f
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static int Emulator_InitialiseGLEW()
|
||||
static int Emulator_InitialiseGLExt()
|
||||
{
|
||||
#if defined(GLEW)
|
||||
GLenum err = gladLoadGL();
|
||||
@ -379,7 +379,7 @@ static int Emulator_InitialiseCore()
|
||||
|
||||
void Emulator_Initialise(char* windowName, int width, int height, int fullscreen)
|
||||
{
|
||||
eprintf("Initialising Emulator.\n");
|
||||
eprintf("Initialising Psy-X (Psy-Cross).\n");
|
||||
eprintf("VERSION: %d.%d\n", EMULATOR_MAJOR_VERSION, EMULATOR_MINOR_VERSION);
|
||||
eprintf("Compile Date: %s Time: %s\n", EMULATOR_COMPILE_DATE, EMULATOR_COMPILE_TIME);
|
||||
|
||||
@ -390,16 +390,16 @@ void Emulator_Initialise(char* windowName, int width, int height, int fullscreen
|
||||
}
|
||||
|
||||
#if defined(GLEW)
|
||||
if (Emulator_InitialiseGLEW() == FALSE)
|
||||
if (Emulator_InitialiseGLExt() == FALSE)
|
||||
{
|
||||
eprinterr("Failed to Intialise GLEW\n");
|
||||
eprinterr("Failed to Intialise GL extensions\n");
|
||||
Emulator_ShutDown();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (Emulator_InitialiseCore() == FALSE)
|
||||
{
|
||||
eprinterr("Failed to Intialise Emulator Core.\n");
|
||||
eprinterr("Failed to Intialise Psy-X Core.\n");
|
||||
Emulator_ShutDown();
|
||||
}
|
||||
|
@ -36,11 +36,11 @@
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#include <android/log.h>
|
||||
#define LOG_TAG_EMU "[EMU] "
|
||||
#define LOG_TAG_EMU "[PsyX] "
|
||||
#define eprintf(fmt, ...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG_EMU, fmt, ##__VA_ARGS__)
|
||||
#define eprinterr(fmt, ...) eprintf("[%s] - " fmt, FUNCNAME, ##__VA_ARGS__);
|
||||
#else
|
||||
#define eprintf(fmt, ...) printf("[EMU] " fmt, ##__VA_ARGS__)
|
||||
#define eprintf(fmt, ...) printf("[Psy-X] " fmt, ##__VA_ARGS__)
|
||||
#define eprinterr(fmt, ...) eprintf("[%s] - " fmt, FUNCNAME, ##__VA_ARGS__);
|
||||
#endif
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define EMULATOR_GLOBALS_H
|
||||
|
||||
#include <SDL_gamecontroller.h>
|
||||
#include <EMULATOR.H>
|
||||
#include "EMULATOR.H"
|
||||
|
||||
extern TextureID whiteTexture;
|
||||
extern TextureID vramTexture;
|
@ -37,7 +37,7 @@
|
||||
|
||||
#if defined(GLEW)
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
#include <glad.h>
|
||||
#include "glad.h"
|
||||
#endif
|
||||
|
||||
/*
|
@ -2,6 +2,6 @@
|
||||
#define EMULATOR_SETUP_H
|
||||
|
||||
//Disc image filename to load for disc image builds
|
||||
#define DISC_IMAGE_FILENAME "TOMB5.CUE"
|
||||
#define DISC_IMAGE_FILENAME "IMAGE.CUE"
|
||||
|
||||
#endif
|
@ -6,7 +6,7 @@
|
||||
|
||||
/* Emulator version */
|
||||
#define EMULATOR_MAJOR_VERSION (1)
|
||||
#define EMULATOR_MINOR_VERSION (101)
|
||||
#define EMULATOR_MINOR_VERSION (500)
|
||||
|
||||
/* Compile date and time */
|
||||
#define EMULATOR_COMPILE_DATE (__DATE__)
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <LIBETC.H>
|
||||
#include "LIBETC.H"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
@ -1,25 +1,21 @@
|
||||
|
||||
-- EMULATOR layer
|
||||
project "PSX"
|
||||
-- Psy-X (Psy-Cross) layer
|
||||
project "Psy-X"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
compileas "C++"
|
||||
targetdir "bin/%{cfg.buildcfg}"
|
||||
removeplatforms "psx"
|
||||
|
||||
includedirs {
|
||||
"EMULATOR"
|
||||
}
|
||||
|
||||
defines { GAME_REGION }
|
||||
|
||||
files {
|
||||
"EMULATOR/**.h",
|
||||
"EMULATOR/**.H",
|
||||
"EMULATOR/**.c",
|
||||
"EMULATOR/**.C",
|
||||
"EMULATOR/**.cpp",
|
||||
"EMULATOR/**.CPP",
|
||||
"**.h",
|
||||
"**.H",
|
||||
"**.c",
|
||||
"**.C",
|
||||
"**.cpp",
|
||||
"**.CPP",
|
||||
}
|
||||
|
||||
defines { }
|
@ -1,2 +1,5 @@
|
||||
set SDL2_DIR=%cd%\dependencies\SDL2
|
||||
set OPENAL_DIR=%cd%\dependencies\openal-soft
|
||||
set JPEG_DIR=%cd%\dependencies\jpeg
|
||||
premake5 vs2019
|
||||
pause
|
@ -44,7 +44,7 @@ workspace "REDRIVER2"
|
||||
end
|
||||
|
||||
if os.target() ~= "psx" then
|
||||
dofile("premake_emulator.lua")
|
||||
dofile("PsyX/premake5.lua")
|
||||
end
|
||||
|
||||
-- TODO: overlays
|
||||
@ -81,11 +81,11 @@ project "REDRIVER2"
|
||||
|
||||
filter "system:Windows or linux"
|
||||
defines { "OGL", "SIMPLE_SPOOL" }
|
||||
dependson { "PSX" }
|
||||
links { "PSX", "jpeg" }
|
||||
dependson { "PsyX" }
|
||||
links { "Psy-X", "jpeg" }
|
||||
|
||||
includedirs {
|
||||
"EMULATOR"
|
||||
"PsyX"
|
||||
}
|
||||
|
||||
files {
|
||||
|
@ -478,7 +478,7 @@ int main(int argc, char** argv)
|
||||
|
||||
|
||||
|
||||
Emulator_Initialise("DRIVER2", windowWidth, windowHeight, fullScreen);
|
||||
Emulator_Initialise("REDRIVER2", windowWidth, windowHeight, fullScreen);
|
||||
redriver2_main(argc, argv);
|
||||
|
||||
Emulator_ShutDown();
|
||||
|
Loading…
Reference in New Issue
Block a user