Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture pack support #257

Open
wants to merge 4 commits into
base: gdxsv-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if(CCACHE_PROGRAM)
endif()

set(SENTRY_UPLOAD_URL "" CACHE STRING "Sentry upload URL")
set(GDXSV_TEXTURE_PACK_PASS "" CACHE STRING "Gdxsv texture pack password")

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/shell/cmake")

Expand Down Expand Up @@ -254,6 +255,10 @@ if(NOT "${SENTRY_UPLOAD_URL}" STREQUAL "")
target_compile_definitions(${PROJECT_NAME} PRIVATE SENTRY_UPLOAD="${SENTRY_UPLOAD_URL}")
endif()

if(NOT "${GDXSV_TEXTURE_PACK_PASS}" STREQUAL "")
target_compile_definitions(${PROJECT_NAME} PRIVATE GDXSV_TEXTURE_PACK_PASS="${GDXSV_TEXTURE_PACK_PASS}")
endif()

target_include_directories(${PROJECT_NAME} PRIVATE core core/deps core/deps/stb core/deps/khronos core/deps/json)
if(LIBRETRO)
target_include_directories(${PROJECT_NAME} PRIVATE shell/libretro)
Expand Down Expand Up @@ -2075,8 +2080,8 @@ target_sources(${PROJECT_NAME} PRIVATE
core/gdxsv/gdxsv.h
core/gdxsv/gdxsv.pb.cc
core/gdxsv/gdxsv.pb.h
core/gdxsv/gdxsv_CustomTexture.cpp
core/gdxsv/gdxsv_CustomTexture.h
core/gdxsv/gdxsv_custom_texture_source.cpp
core/gdxsv/gdxsv_custom_texture_source.h
core/gdxsv/gdxsv_backend_replay.cpp
core/gdxsv/gdxsv_backend_replay.h
core/gdxsv/gdxsv_backend_rollback.cpp
Expand Down
1 change: 1 addition & 0 deletions core/cfg/option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ Option<float> ProfilerFrameWarningTime("Profiler.FrameWarningTime", 1.0f / 55.0f
Option<std::string> GdxLobbyServer("server", "zdxsv.net", "gdxsv");
Option<std::string> GdxLoginKey("loginkey", "", "gdxsv");
Option<int> GdxLanguage("language", -1, "gdxsv");
Option<bool> GdxUseTexturePack("UseTexturePack", false, "gdxsv");
Option<int> GdxLocalPort("LocalPort", 0, "gdxsv");
Option<int> GdxMinDelay("MinDelay", 2, "gdxsv");
Option<bool> GdxSaveReplay("SaveReplay", true, "gdxsv");
Expand Down
1 change: 1 addition & 0 deletions core/cfg/option.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ extern Option<float> ProfilerFrameWarningTime;
extern Option<std::string> GdxLobbyServer;
extern Option<std::string> GdxLoginKey;
extern Option<int> GdxLanguage;
extern Option<bool> GdxUseTexturePack;
extern Option<int> GdxLocalPort;
extern Option<int> GdxMinDelay;
extern Option<bool> GdxSaveReplay;
Expand Down
10 changes: 0 additions & 10 deletions core/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <chrono>

#include "gdxsv/gdxsv_emu_hooks.h"
#include "gdxsv/gdxsv_CustomTexture.h"

settings_t settings;
constexpr float WINCE_DEPTH_SCALE = 0.01f;
Expand Down Expand Up @@ -702,9 +701,6 @@ void Emulator::unloadGame()
state = Init;
EventManager::event(Event::Terminate);
}
#if defined(__APPLE__) || defined(_WIN32)
gdx_custom_texture.Terminate();
#endif
}

void Emulator::term()
Expand All @@ -715,9 +711,6 @@ void Emulator::term()
debugger::term();
sh4_cpu.Term();
custom_texture.Terminate(); // lr: avoid deadlock on exit (win32)
#if defined(__APPLE__) || defined(_WIN32)
gdx_custom_texture.Terminate();
#endif
reios_term();
aica::term();
pvr::term();
Expand Down Expand Up @@ -815,9 +808,6 @@ void Emulator::stepRange(u32 from, u32 to)
void dc_loadstate(Deserializer& deser)
{
custom_texture.Terminate();
#if defined(__APPLE__) || defined(_WIN32)
gdx_custom_texture.Terminate();
#endif
#if FEAT_AREC == DYNAREC_JIT
aica::arm::recompiler::flush();
#endif
Expand Down
163 changes: 0 additions & 163 deletions core/gdxsv/gdxsv_CustomTexture.cpp

This file was deleted.

27 changes: 0 additions & 27 deletions core/gdxsv/gdxsv_CustomTexture.h

This file was deleted.

Loading