- rename EMULATOR to Psy-X

- move it's makefile
This commit is contained in:
Ilya Shurumov 2020-11-19 01:14:45 +06:00
parent e4518a104a
commit 0bc848da2c
53 changed files with 28 additions and 29 deletions

View File

@ -266,7 +266,7 @@ static int Emulator_InitialiseSDL(char* windowName, int width, int height, int f
return TRUE; return TRUE;
} }
static int Emulator_InitialiseGLEW() static int Emulator_InitialiseGLExt()
{ {
#if defined(GLEW) #if defined(GLEW)
GLenum err = gladLoadGL(); GLenum err = gladLoadGL();
@ -379,7 +379,7 @@ static int Emulator_InitialiseCore()
void Emulator_Initialise(char* windowName, int width, int height, int fullscreen) 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("VERSION: %d.%d\n", EMULATOR_MAJOR_VERSION, EMULATOR_MINOR_VERSION);
eprintf("Compile Date: %s Time: %s\n", EMULATOR_COMPILE_DATE, EMULATOR_COMPILE_TIME); 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 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(); Emulator_ShutDown();
} }
#endif #endif
if (Emulator_InitialiseCore() == FALSE) if (Emulator_InitialiseCore() == FALSE)
{ {
eprinterr("Failed to Intialise Emulator Core.\n"); eprinterr("Failed to Intialise Psy-X Core.\n");
Emulator_ShutDown(); Emulator_ShutDown();
} }

View File

@ -36,11 +36,11 @@
#if defined(__ANDROID__) #if defined(__ANDROID__)
#include <android/log.h> #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 eprintf(fmt, ...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG_EMU, fmt, ##__VA_ARGS__)
#define eprinterr(fmt, ...) eprintf("[%s] - " fmt, FUNCNAME, ##__VA_ARGS__); #define eprinterr(fmt, ...) eprintf("[%s] - " fmt, FUNCNAME, ##__VA_ARGS__);
#else #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__); #define eprinterr(fmt, ...) eprintf("[%s] - " fmt, FUNCNAME, ##__VA_ARGS__);
#endif #endif

View File

@ -2,7 +2,7 @@
#define EMULATOR_GLOBALS_H #define EMULATOR_GLOBALS_H
#include <SDL_gamecontroller.h> #include <SDL_gamecontroller.h>
#include <EMULATOR.H> #include "EMULATOR.H"
extern TextureID whiteTexture; extern TextureID whiteTexture;
extern TextureID vramTexture; extern TextureID vramTexture;

View File

@ -37,7 +37,7 @@
#if defined(GLEW) #if defined(GLEW)
#define GL_GLEXT_PROTOTYPES 1 #define GL_GLEXT_PROTOTYPES 1
#include <glad.h> #include "glad.h"
#endif #endif
/* /*

View File

@ -2,6 +2,6 @@
#define EMULATOR_SETUP_H #define EMULATOR_SETUP_H
//Disc image filename to load for disc image builds //Disc image filename to load for disc image builds
#define DISC_IMAGE_FILENAME "TOMB5.CUE" #define DISC_IMAGE_FILENAME "IMAGE.CUE"
#endif #endif

View File

@ -6,7 +6,7 @@
/* Emulator version */ /* Emulator version */
#define EMULATOR_MAJOR_VERSION (1) #define EMULATOR_MAJOR_VERSION (1)
#define EMULATOR_MINOR_VERSION (101) #define EMULATOR_MINOR_VERSION (500)
/* Compile date and time */ /* Compile date and time */
#define EMULATOR_COMPILE_DATE (__DATE__) #define EMULATOR_COMPILE_DATE (__DATE__)

View File

@ -8,7 +8,7 @@
#include <stdint.h> #include <stdint.h>
#include <LIBETC.H> #include "LIBETC.H"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,25 +1,21 @@
-- EMULATOR layer -- Psy-X (Psy-Cross) layer
project "PSX" project "Psy-X"
kind "StaticLib" kind "StaticLib"
language "C++" language "C++"
compileas "C++" compileas "C++"
targetdir "bin/%{cfg.buildcfg}" targetdir "bin/%{cfg.buildcfg}"
removeplatforms "psx" removeplatforms "psx"
includedirs {
"EMULATOR"
}
defines { GAME_REGION } defines { GAME_REGION }
files { files {
"EMULATOR/**.h", "**.h",
"EMULATOR/**.H", "**.H",
"EMULATOR/**.c", "**.c",
"EMULATOR/**.C", "**.C",
"EMULATOR/**.cpp", "**.cpp",
"EMULATOR/**.CPP", "**.CPP",
} }
defines { } defines { }

View File

@ -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 premake5 vs2019
pause pause

View File

@ -44,7 +44,7 @@ workspace "REDRIVER2"
end end
if os.target() ~= "psx" then if os.target() ~= "psx" then
dofile("premake_emulator.lua") dofile("PsyX/premake5.lua")
end end
-- TODO: overlays -- TODO: overlays
@ -81,11 +81,11 @@ project "REDRIVER2"
filter "system:Windows or linux" filter "system:Windows or linux"
defines { "OGL", "SIMPLE_SPOOL" } defines { "OGL", "SIMPLE_SPOOL" }
dependson { "PSX" } dependson { "PsyX" }
links { "PSX", "jpeg" } links { "Psy-X", "jpeg" }
includedirs { includedirs {
"EMULATOR" "PsyX"
} }
files { files {

View File

@ -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); redriver2_main(argc, argv);
Emulator_ShutDown(); Emulator_ShutDown();