Skip to content

Commit

Permalink
release 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed May 6, 2022
2 parents 548f717 + ef41498 commit 9d4fc22
Show file tree
Hide file tree
Showing 23 changed files with 105 additions and 47 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,29 @@ jobs:
- name: Build pfbneo
run: |
mkdir cmake-build-pfbneo && cd cmake-build-pfbneo
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=pfbneo -DCMAKE_BUILD_TYPE=Debug ..
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=pfbneo -DCMAKE_BUILD_TYPE=Release ..
make pfbneo.deps
make pfbneo_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build pgen
run: |
mkdir cmake-build-pgen && cd cmake-build-pgen
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=pgen -DCMAKE_BUILD_TYPE=Debug ..
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=pgen -DCMAKE_BUILD_TYPE=Release ..
make pgen_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build pnes
run: |
mkdir cmake-build-pnes && cd cmake-build-pnes
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=pnes -DCMAKE_BUILD_TYPE=Debug ..
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=pnes -DCMAKE_BUILD_TYPE=Release ..
make pnes_windows_release
mv *.zip $GITHUB_WORKSPACE
- name: Build psnes
run: |
mkdir cmake-build-psnes && cd cmake-build-psnes
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=psnes -DCMAKE_BUILD_TYPE=Debug ..
cmake -G "MSYS Makefiles" -DPLATFORM_WINDOWS=ON -DOPTION_EMU=psnes -DCMAKE_BUILD_TYPE=Release ..
make psnes_windows_release
mv *.zip $GITHUB_WORKSPACE
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake-build*
build*
.idea
ss_dev_id.key
ss_dev_pwd.key
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ add_subdirectory(sscrap)
project(pemu)
set(PROJECT_AUTHOR cpasjuste)
set(VERSION_MAJOR 6)
set(VERSION_MINOR 0)
set(VERSION_MINOR 1)

# pemu (ui)
add_subdirectory(ui)
Expand Down
3 changes: 2 additions & 1 deletion android/app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/build
/release
53 changes: 53 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
plugins {
id 'com.android.application'
}

android {
compileSdk 32

defaultConfig {
applicationId "fr.mydedibox.pemu"
minSdk 26
targetSdk 32
versionCode 1
versionName "1.0"

ndk {
abiFilters 'arm64-v8a'
}

externalNativeBuild {
cmake {
cppFlags '-std=c++17'
arguments "-DPLATFORM_ANDROID=ON", "-DANDROID_ASSETS_PATH=${sourceSets.main.assets.srcDirs[0]}", "-DOPTION_EMU=psnes"
}
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
externalNativeBuild {
cmake {
path file('../../CMakeLists.txt')
version '3.18.1'
}
}
buildFeatures {
viewBinding true
}
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
}
4 changes: 2 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fr.mydedibox.libcross2d_template"
package="fr.mydedibox.pemu"
android:installLocation="auto">

<!-- OpenGL ES 2.0 -->
Expand Down Expand Up @@ -39,7 +39,7 @@
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

<activity
android:name="fr.mydedibox.libcross2d.Main"
android:name="fr.mydedibox.pemu.Main"
android:alwaysRetainTaskState="true"
android:configChanges="layoutDirection|locale|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
android:exported="true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package fr.mydedibox.libcross2d;
package fr.mydedibox.pemu;

import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.MotionEvent;

import java.io.BufferedReader;
import java.io.File;
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">Game</string>
<string name="app_name">pEMU</string>
</resources>
9 changes: 9 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Binary file added data/windows/datadir/libcrypto-1_1-x64.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion libcross2d
Submodule libcross2d updated 30 files
+0 −2 source/platforms/gl2/gl_shaders.cpp
+0 −0 source/platforms/gl2/shaders/c2d-texture.cpp
+0 −36 source/platforms/gl2/shaders/crt-aperture.cpp
+0 −20 source/platforms/gl2/shaders/crt-caligari.cpp
+0 −9 source/platforms/gl2/shaders/crt-cgwg-fast.cpp
+0 −40 source/platforms/gl2/shaders/crt-easymode.cpp
+0 −25 source/platforms/gl2/shaders/crt-fakelottes.cpp
+0 −57 source/platforms/gl2/shaders/crt-geom-flat.cpp
+0 −57 source/platforms/gl2/shaders/crt-geom.cpp
+0 −30 source/platforms/gl2/shaders/crt-hyllian.cpp
+0 −20 source/platforms/gl2/shaders/crt-lottes-fast.cpp
+0 −32 source/platforms/gl2/shaders/crt-lottes.cpp
+0 −7 source/platforms/gl2/shaders/crt-mattias.cpp
+0 −12 source/platforms/gl2/shaders/crt-nes-mini.cpp
+0 −20 source/platforms/gl2/shaders/crt-pi-flat.cpp
+0 −20 source/platforms/gl2/shaders/crt-pi.cpp
+0 −30 source/platforms/gl2/shaders/crt-zfast.cpp
+0 −11 source/platforms/gl2/shaders/handheld-bevel.cpp
+0 −12 source/platforms/gl2/shaders/handheld-dot.cpp
+0 −9 source/platforms/gl2/shaders/handheld-lcd1x.cpp
+0 −10 source/platforms/gl2/shaders/handheld-lcd3x.cpp
+0 −8 source/platforms/gl2/shaders/handheld-retro-v2.cpp
+0 −8 source/platforms/gl2/shaders/handheld-zfast-lcd.cpp
+0 −12 source/platforms/gl2/shaders/interpolation-aann.cpp
+0 −7 source/platforms/gl2/shaders/interpolation-pixellate.cpp
+0 −12 source/platforms/gl2/shaders/interpolation-sharp-bilinear-scanlines.cpp
+0 −10 source/platforms/gl2/shaders/interpolation-sharp-bilinear.cpp
+0 −12 source/platforms/gl2/shaders/scanline-simple.cpp
+3 −1 source/platforms/sdl2/sdl2_audio.cpp
+2 −0 source/skeleton/sfml/Shape.cpp
2 changes: 2 additions & 0 deletions pfbneo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ include(${CMAKE_SOURCE_DIR}/libcross2d/cmake/targets.cmake)

# add common skin data
add_custom_target(${PROJECT_NAME}.data.skin
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
)
Expand Down
2 changes: 2 additions & 0 deletions pgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ include(${CMAKE_SOURCE_DIR}/libcross2d/cmake/targets.cmake)

# add common skin data
add_custom_target(${PROJECT_NAME}.data.skin
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
)
Expand Down
Binary file modified pgen/data/common/title.xcf
Binary file not shown.
Binary file modified pgen/data/ps4/romfs/sce_sys/icon0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pgen/data/switch/icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pgen/data/vita/romfs/sce_sys/icon0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pgen/data/vita/romfs/sce_sys/livearea/contents/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pgen/data/vita/romfs/sce_sys/livearea/contents/startup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion pgen/sources/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ int main(int argc, char **argv) {
// create paths
io->create(io->getDataPath());
io->create(io->getDataPath() + "bios");
io->create(io->getDataPath() + "roms");
io->create(io->getDataPath() + "rams");
io->create(io->getDataPath() + "configs");
io->create(io->getDataPath() + "saves");
io->create(io->getDataPath() + "megadrive");
io->create(io->getDataPath() + "sms");
io->create(io->getDataPath() + "gamegear");
io->create(io->getDataPath() + "megacd");

Vector2f screenSize = cfg->getScreenSize();
ui = new UiMain(screenSize, io, cfg);
Expand Down
23 changes: 2 additions & 21 deletions pnes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ include(${CMAKE_SOURCE_DIR}/libcross2d/cmake/targets.cmake)

# add common skin data
add_custom_target(${PROJECT_NAME}.data.skin
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
)
Expand All @@ -123,24 +125,3 @@ add_custom_target(${PROJECT_NAME}.data.extra
)
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}.data.extra)

#[[
if (PLATFORM_WINDOWS)
# TODO: fix curl/nghttp2 static linking...
add_custom_target(${PROJECT_NAME}.data.extra.win64
DEPENDS ${PROJECT_NAME}.data.extra
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libwinpthread-1.dll" ${CMAKE_CURRENT_BINARY_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libnghttp2-14.dll" ${CMAKE_CURRENT_BINARY_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libunistring-2.dll" ${CMAKE_CURRENT_BINARY_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libstdc++-6.dll" ${CMAKE_CURRENT_BINARY_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libiconv-2.dll" ${CMAKE_CURRENT_BINARY_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libgcc_s_seh-1.dll" ${CMAKE_CURRENT_BINARY_DIR}/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libwinpthread-1.dll" ${CMAKE_CURRENT_BINARY_DIR}/data_read_write/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libnghttp2-14.dll" ${CMAKE_CURRENT_BINARY_DIR}/data_read_write/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libunistring-2.dll" ${CMAKE_CURRENT_BINARY_DIR}/data_read_write/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libstdc++-6.dll" ${CMAKE_CURRENT_BINARY_DIR}/data_read_write/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libiconv-2.dll" ${CMAKE_CURRENT_BINARY_DIR}/data_read_write/
COMMAND ${CMAKE_COMMAND} -E copy "/msys64/mingw64/bin/libgcc_s_seh-1.dll" ${CMAKE_CURRENT_BINARY_DIR}/data_read_write/
)
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}.data.extra.win64)
endif ()
]]
12 changes: 7 additions & 5 deletions psnes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ include(${CMAKE_SOURCE_DIR}/libcross2d/cmake/targets.cmake)

# add common skin data
add_custom_target(${PROJECT_NAME}.data.skin
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
)
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/datadir -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_datadir -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/common/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/../data/${TARGET_PLATFORM}/romfs -D DST=${CMAKE_CURRENT_BINARY_DIR}/data_romfs -P ${CMAKE_CURRENT_LIST_DIR}/../libcross2d/cmake/copy_directory_custom.cmake
)
add_dependencies(${PROJECT_NAME}.data.skin ${PROJECT_NAME}.data)
if (PLATFORM_LINUX)
add_dependencies(${PROJECT_NAME}-romfs ${PROJECT_NAME}.data.skin)
add_dependencies(${PROJECT_NAME}-romfs ${PROJECT_NAME}.data.skin)
else ()
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}.data.skin)
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}.data.skin)
endif ()
21 changes: 14 additions & 7 deletions psnes/sources/uiEmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,15 @@ int PSNESUiEmu::load(const ss_api::Game &game) {
}
printf("Settings.SkipFrames: %i\n", Settings.SkipFrames);
Settings.TurboMode = ui->getConfig()->get(Option::ROM_PSNES_TURBO_MODE, true)->getIndex();
Settings.TurboSkipFrames = ui->getConfig()->get(Option::ROM_PSNES_TURBO_FRAMESKIP, true)->getIndex();
Settings.TurboSkipFrames = ui->getConfig()->get(Option::ROM_PSNES_TURBO_FRAMESKIP,
true)->getIndex();

Settings.CartAName[0] = 0;
Settings.CartBName[0] = 0;

// big boost when SupportHiRes disabled
Settings.SupportHiRes = (bool8) ui->getConfig()->get(Option::ROM_PSNES_HIGH_RES, true)->getIndex();
Settings.SupportHiRes = (bool8) ui->getConfig()->get(Option::ROM_PSNES_HIGH_RES,
true)->getIndex();
printf("Settings.SupportHiRes: %i\n", Settings.SupportHiRes);

CPU.Flags = 0;
Expand Down Expand Up @@ -233,19 +235,22 @@ int PSNESUiEmu::load(const ss_api::Game &game) {
auto v = new PSNESVideo(getUi(), &gfx_video_buffer, nullptr,
Vector2i(SNES_WIDTH * 2, SNES_HEIGHT_EXTENDED * 2));
addVideo(v);
memset(gfx_video_buffer, 0, (size_t) getVideo()->getTexture()->m_pitch * getVideo()->getTextureRect().height);
memset(gfx_video_buffer, 0,
(size_t) getVideo()->getTexture()->m_pitch * getVideo()->getTextureRect().height);
} else {
GFX.Pitch = SNES_WIDTH * 2;
snes9x_game_size = {SNES_WIDTH, SNES_HEIGHT_EXTENDED};
auto v = new PSNESVideo(getUi(), (uint8_t **) &GFX.Screen, (int *) &GFX.Pitch,
Vector2i(SNES_WIDTH, SNES_HEIGHT_EXTENDED));
addVideo(v);
memset(GFX.Screen, 0, (size_t) getVideo()->getTexture()->m_pitch * getVideo()->getTextureRect().height);
memset(GFX.Screen, 0,
(size_t) getVideo()->getTexture()->m_pitch * getVideo()->getTextureRect().height);
}

S9xGraphicsInit();

int samples = Audio::toSamples((int) Settings.SoundPlaybackRate, (float) Memory.ROMFramesPerSecond);
int samples = Audio::toSamples((int) Settings.SoundPlaybackRate,
(float) Memory.ROMFramesPerSecond);
addAudio((int) Settings.SoundPlaybackRate, samples);
audio_buffer = malloc(getAudio()->getSamplesSize() * 2);

Expand Down Expand Up @@ -383,7 +388,8 @@ bool8 S9xDeinitUpdate(int width, int height) {
#ifdef __SOFT_SCALERS__
if (effect == VIDEOMODE_BLOCKY || effect == VIDEOMODE_TV || effect == VIDEOMODE_SMOOTH) {
#endif
if ((width <= SNES_WIDTH) && ((snes9x_prev_width != width) || (snes9x_prev_height != height))) {
if ((width <= SNES_WIDTH) &&
((snes9x_prev_width != width) || (snes9x_prev_height != height))) {
printf("S9xBlitClearDelta\n");
S9xBlitClearDelta();
}
Expand Down Expand Up @@ -439,7 +445,8 @@ bool8 S9xDeinitUpdate(int width, int height) {
blit = S9xBlitPixSimple1x1;
}

blit((uint8 *) GFX.Screen, GFX.Pitch, gfx_video_buffer, video->getTexture()->m_pitch, width, height);
blit((uint8 *) GFX.Screen, GFX.Pitch, gfx_video_buffer, video->getTexture()->m_pitch, width,
height);

if (height < snes9x_prev_height) {
int p = video->getTexture()->m_pitch >> 2;
Expand Down

0 comments on commit 9d4fc22

Please sign in to comment.