Skip to content

Manic EMU is an all-in-one retro game emulator for iOS. It packs powerful features while keeping a clean, sleek UI and delivering buttery-smooth gameplay.

Swift

Add Shaders

Daiuno899b7c195493
diff --git a/BlankSlate/Sources/Internal/View.swift b/BlankSlate/Sources/Internal/View.swift
index 77968810..bf6edada 100644
--- a/BlankSlate/Sources/Internal/View.swift
+++ b/BlankSlate/Sources/Internal/View.swift
@@ -268,17 +268,17 @@ extension BlankSlate {
NSLayoutConstraint.activate(constraints)
}
- override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
- guard let hitView = super.hitTest(point, with: event) else { return nil }
- if hitView is UIControl {
- return hitView // Return any UIControl instance such as buttons, segmented controls, switches, etc.
- }
-
- if hitView.isEqual(contentView) || hitView.isEqual(elements[.custom]?.view) {
- return hitView // Return either the contentView or customView
- }
- return nil // Touch allowed to pass through
- }
+// override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
+// guard let hitView = super.hitTest(point, with: event) else { return nil }
+// if hitView is UIControl {
+// return hitView // Return any UIControl instance such as buttons, segmented controls, switches, etc.
+// }
+//
+// if hitView.isEqual(contentView) || hitView.isEqual(elements[.custom]?.view) {
+// return hitView // Return either the contentView or customView
+// }
+// return nil // Touch allowed to pass through
+// }
// MARK: - UIGestureRecognizerDelegate
override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
diff --git a/Cores/Citra/Core/core/hle/service/cfg/cfg_defaults.cpp b/Cores/Citra/Core/core/hle/service/cfg/cfg_defaults.cpp
index 41d7cc9d..81a6dad4 100644
--- a/Cores/Citra/Core/core/hle/service/cfg/cfg_defaults.cpp
+++ b/Cores/Citra/Core/core/hle/service/cfg/cfg_defaults.cpp
@@ -38,7 +38,7 @@ constexpr u8 DEFAULT_SOUND_OUTPUT_MODE = SOUND_STEREO;
// constants.
constexpr u64_le DEFAULT_CONSOLE_ID = 0;
constexpr u32_le DEFAULT_CONSOLE_RANDOM_NUMBER = 0;
-constexpr UsernameBlock DEFAULT_USERNAME{{u"CYTRUS"}, 0, 0};
+constexpr UsernameBlock DEFAULT_USERNAME{{u"MANICEMU"}, 0, 0};
constexpr BirthdayBlock DEFAULT_BIRTHDAY{3, 25}; // March 25th, 2014
constexpr u8 DEFAULT_LANGUAGE = LANGUAGE_EN;
constexpr ConsoleCountryInfo DEFAULT_COUNTRY_INFO{
diff --git a/Cores/DeltaCore/DeltaCore/Model/ControllerSkin.swift b/Cores/DeltaCore/DeltaCore/Model/ControllerSkin.swift
index 8030d4c8..d3154351 100644
--- a/Cores/DeltaCore/DeltaCore/Model/ControllerSkin.swift
+++ b/Cores/DeltaCore/DeltaCore/Model/ControllerSkin.swift
@@ -73,6 +73,7 @@ public struct ControllerSkin: ControllerSkinBase
private let imageCache = NSCache<NSString, UIImage>()
public var isSwapScreen: Bool = false
+ public var isPlayCase: Bool = false
let archive: Archive
diff --git a/Cores/Libretro/camera/camera_driver.c b/Cores/Libretro/camera/camera_driver.c
index e09d0111..9fff641f 100644
--- a/Cores/Libretro/camera/camera_driver.c
+++ b/Cores/Libretro/camera/camera_driver.c
@@ -126,6 +126,26 @@ void driver_camera_stop(void)
camera_st->driver->stop(camera_st->data);
}
+#ifdef HAVE_AVF
+/* Forward declaration for AVFoundation camera switch */
+bool avfoundation_switch_camera(void *data, bool use_front_camera);
+#endif
+
+bool driver_camera_switch(bool use_front_camera)
+{
+ camera_driver_state_t *camera_st = &camera_driver_st;
+ if (!camera_st || !camera_st->data || !camera_st->driver)
+ return false;
+
+#ifdef HAVE_AVF
+ if (strcmp(camera_st->driver->ident, "avfoundation") == 0)
+ return avfoundation_switch_camera(camera_st->data, use_front_camera);
+#endif
+
+ /* Other drivers don't support camera switching */
+ return false;
+}
+
bool camera_driver_find_driver(const char *prefix,
bool verbosity_enabled)
{
diff --git a/Cores/Libretro/camera/camera_driver.h b/Cores/Libretro/camera/camera_driver.h
index 02be8313..6a850919 100644
--- a/Cores/Libretro/camera/camera_driver.h
+++ b/Cores/Libretro/camera/camera_driver.h
@@ -1,95 +1,105 @@
-/* RetroArch - A frontend for libretro.
- * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
- * Copyright (C) 2011-2021 - Daniel De Matteis
- *
- * RetroArch is free software: you can redistribute it and/or modify it under the terms
- * of the GNU General Public License as published by the Free Software Found-
- * ation, either version 3 of the License, or (at your option) any later version.
- *
- * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with RetroArch.
- * If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef _CAMERA_DRIVER_H
-#define _CAMERA_DRIVER_H
-
-#include <stdint.h>
-
-#include <boolean.h>
-#include <retro_common_api.h>
-
-#ifdef HAVE_CONFIG_H
-#include "../config.h"
-#endif /* HAVE_CONFIG_H */
-
-RETRO_BEGIN_DECLS
-
-struct string_list;
-
-typedef struct camera_driver
-{
- /* FIXME: params for initialization - queries for resolution,
- * framerate, color format which might or might not be honored. */
- void *(*init)(const char *device, uint64_t buffer_types,
- unsigned width, unsigned height);
-
- void (*free)(void *data);
-
- bool (*start)(void *data);
- void (*stop)(void *data);
-
- /* Polls the camera driver.
- * Will call the appropriate callback if a new frame is ready.
- * Returns true if a new frame was handled. */
- bool (*poll)(void *data,
- retro_camera_frame_raw_framebuffer_t frame_raw_cb,
- retro_camera_frame_opengl_texture_t frame_gl_cb);
-
- const char *ident;
-} camera_driver_t;
-
-typedef struct
-{
- struct retro_camera_callback cb; /* uint64_t alignment */
- const camera_driver_t *driver;
- void *data;
- bool active;
-} camera_driver_state_t;
-
-extern const camera_driver_t *camera_drivers[];
-
-
-extern camera_driver_t camera_v4l2;
-extern camera_driver_t camera_pipewire;
-extern camera_driver_t camera_android;
-extern camera_driver_t camera_rwebcam;
-extern camera_driver_t camera_avfoundation;
-extern camera_driver_t camera_ffmpeg;
-
-/**
- * config_get_camera_driver_options:
- *
- * Get an enumerated list of all camera driver names,
- * separated by '|'.
- *
- * Returns: string listing of all camera driver names,
- * separated by '|'.
- **/
-const char* config_get_camera_driver_options(void);
-
-bool driver_camera_start(void);
-
-void driver_camera_stop(void);
-
-bool camera_driver_find_driver(const char *prefix,
- bool verbosity_enabled);
-
-camera_driver_state_t *camera_state_get_ptr(void);
-
-RETRO_END_DECLS
-
-#endif
+/* RetroArch - A frontend for libretro.
+ * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
+ * Copyright (C) 2011-2021 - Daniel De Matteis
+ *
+ * RetroArch is free software: you can redistribute it and/or modify it under the terms
+ * of the GNU General Public License as published by the Free Software Found-
+ * ation, either version 3 of the License, or (at your option) any later version.
+ *
+ * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with RetroArch.
+ * If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _CAMERA_DRIVER_H
+#define _CAMERA_DRIVER_H
+
+#include <stdint.h>
+
+#include <boolean.h>
+#include <retro_common_api.h>
+
+#ifdef HAVE_CONFIG_H
+#include "../config.h"
+#endif /* HAVE_CONFIG_H */
+
+RETRO_BEGIN_DECLS
+
+struct string_list;
+
+typedef struct camera_driver
+{
+ /* FIXME: params for initialization - queries for resolution,
+ * framerate, color format which might or might not be honored. */
+ void *(*init)(const char *device, uint64_t buffer_types,
+ unsigned width, unsigned height);
+
+ void (*free)(void *data);
+
+ bool (*start)(void *data);
+ void (*stop)(void *data);
+
+ /* Polls the camera driver.
+ * Will call the appropriate callback if a new frame is ready.
+ * Returns true if a new frame was handled. */
+ bool (*poll)(void *data,
+ retro_camera_frame_raw_framebuffer_t frame_raw_cb,
+ retro_camera_frame_opengl_texture_t frame_gl_cb);
+
+ const char *ident;
+} camera_driver_t;
+
+typedef struct
+{
+ struct retro_camera_callback cb; /* uint64_t alignment */
+ const camera_driver_t *driver;
+ void *data;
+ bool active;
+} camera_driver_state_t;
+
+extern const camera_driver_t *camera_drivers[];
+
+
+extern camera_driver_t camera_v4l2;
+extern camera_driver_t camera_pipewire;
+extern camera_driver_t camera_android;
+extern camera_driver_t camera_rwebcam;
+extern camera_driver_t camera_avfoundation;
+extern camera_driver_t camera_ffmpeg;
+
+/**
+ * config_get_camera_driver_options:
+ *
+ * Get an enumerated list of all camera driver names,
+ * separated by '|'.
+ *
+ * Returns: string listing of all camera driver names,
+ * separated by '|'.
+ **/
+const char* config_get_camera_driver_options(void);
+
+bool driver_camera_start(void);
+
+void driver_camera_stop(void);
+
+/**
+ * driver_camera_switch:
+ * @use_front_camera: If true, switch to front camera; if false, switch to back camera.
+ *
+ * Switches between front and back cameras if supported by the driver.
+ *
+ * Returns: true if the switch was successful, false otherwise.
+ **/
+bool driver_camera_switch(bool use_front_camera);
+
+bool camera_driver_find_driver(const char *prefix,
+ bool verbosity_enabled);
+
+camera_driver_state_t *camera_state_get_ptr(void);
+
+RETRO_END_DECLS
+
+#endif
diff --git a/Cores/Libretro/camera/drivers/avfoundation.m b/Cores/Libretro/camera/drivers/avfoundation.m
index 05f03043..e10f48a9 100644
--- a/Cores/Libretro/camera/drivers/avfoundation.m
+++ b/Cores/Libretro/camera/drivers/avfoundation.m
@@ -39,11 +39,20 @@
@property (strong, nonatomic) AVCaptureSession *session;
@property (strong, nonatomic) AVCaptureDeviceInput *input;
@property (strong, nonatomic) AVCaptureVideoDataOutput *output;
+@property (strong, nonatomic) dispatch_queue_t sessionQueue; // Background queue for session operations
+@property (strong, nonatomic) dispatch_queue_t outputQueue; // Queue for frame processing
@property (assign) uint32_t *frameBuffer;
@property (assign) size_t width;
@property (assign) size_t height;
+@property (assign) BOOL preferFrontCamera;
+@property (assign) BOOL cameraPreferenceSet; // Track if preference was explicitly set
+@property (assign) BOOL enableFrontCameraMirrored;
+@property (assign) BOOL fixFrontCameraRotation;
- (bool)setupCameraSession;
+- (bool)switchCamera:(BOOL)useFrontCamera;
+- (void)startSession;
+- (void)stopSession;
@end
@implementation AVCameraManager
@@ -53,10 +62,41 @@
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
instance = [[AVCameraManager alloc] init];
+ // Create dedicated queues for camera operations
+ instance.sessionQueue = dispatch_queue_create("com.retroarch.camera.session", DISPATCH_QUEUE_SERIAL);
+ instance.outputQueue = dispatch_queue_create("com.retroarch.camera.output", DISPATCH_QUEUE_SERIAL);
});
return instance;
}
+- (void)startSession {
+ // Use dispatch_async to ensure session is started before returning
+ // This is safe because we're on the main thread and sessionQueue is a serial queue
+ dispatch_async(self.sessionQueue, ^{
+ if (!self.session.isRunning) {
+ AVCaptureConnection * connection = [self.output connectionWithMediaType:AVMediaTypeVideo];
+ if (connection) {
+ connection.videoOrientation = AVCaptureVideoOrientationPortrait;
+ if (connection.isVideoMirroringSupported) {
+ BOOL preferFront = self.cameraPreferenceSet ? self.preferFrontCamera : CAMERA_PREFER_FRONTFACING;
+ connection.videoMirrored = self.enableFrontCameraMirrored ? (preferFront ? YES : NO) : NO;
+ }
+ }
+ [self.session startRunning];
+ RARCH_LOG("[Camera]: Camera session started on background thread\n");
+ }
+ });
+}
+
+- (void)stopSession {
+ dispatch_async(self.sessionQueue, ^{
+ if (self.session.isRunning) {
+ [self.session stopRunning];
+ RARCH_LOG("[Camera]: Camera session stopped on background thread\n");
+ }
+ });
+}
+
- (void)requestCameraAuthorizationWithCompletion:(void (^)(BOOL granted))completion {
RARCH_LOG("[Camera]: Checking camera authorization status\n");
@@ -119,9 +159,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
size_t sourceHeight = CVPixelBufferGetHeight(imageBuffer);
OSType pixelFormat = CVPixelBufferGetPixelFormatType(imageBuffer);
-#ifdef DEBUG
- RARCH_LOG("[Camera]: Processing frame %zux%zu format: %u\n", sourceWidth, sourceHeight, (unsigned int)pixelFormat);
-#endif
+ BOOL isFrontCam = (self.input.device.position == AVCaptureDevicePositionFront);
// Create intermediate buffer for full-size converted image
uint32_t *intermediateBuffer = (uint32_t*)malloc(sourceWidth * sourceHeight * 4);
if (!intermediateBuffer) {
@@ -145,7 +183,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
dstBuffer.height = self.height;
dstBuffer.rowBytes = self.width * 4;
- // Convert source format to RGBA
+ // Process based on pixel format
switch (pixelFormat) {
case kCVPixelFormatType_32BGRA: {
srcBuffer.data = CVPixelBufferGetBaseAddress(imageBuffer);
@@ -153,8 +191,39 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
srcBuffer.height = sourceHeight;
srcBuffer.rowBytes = CVPixelBufferGetBytesPerRow(imageBuffer);
- uint8_t permuteMap[4] = {2, 1, 0, 3}; // BGRA -> RGBA
- err = vImagePermuteChannels_ARGB8888(&srcBuffer, &intermediateVBuffer, permuteMap, kvImageNoFlags);
+ if (isFrontCam) {
+ // Front camera: Swap R and B channels to fix color
+ // BGRA: [B, G, R, A] -> [R, G, B, A] (swap B and R)
+ uint8_t *srcData = (uint8_t *)srcBuffer.data;
+ uint8_t *dstData = (uint8_t *)intermediateVBuffer.data;
+
+ for (size_t y = 0; y < sourceHeight; y++) {
+ for (size_t x = 0; x < sourceWidth; x++) {
+ size_t srcOffset = y * srcBuffer.rowBytes + x * 4;
+ size_t dstOffset = y * intermediateVBuffer.rowBytes + x * 4;
+
+ // Swap B and R, keep G and A
+ dstData[dstOffset + 0] = srcData[srcOffset + 2]; // B <- R
+ dstData[dstOffset + 1] = srcData[srcOffset + 1]; // G <- G
+ dstData[dstOffset + 2] = srcData[srcOffset + 0]; // R <- B
+ dstData[dstOffset + 3] = srcData[srcOffset + 3]; // A <- A
+ }
+ }
+ err = kvImageNoError;
+ } else {
+ // Back camera: Keep BGRA format - just copy directly
+ if (srcBuffer.rowBytes == intermediateVBuffer.rowBytes) {
+ memcpy(intermediateVBuffer.data, srcBuffer.data, sourceHeight * srcBuffer.rowBytes);
+ err = kvImageNoError;
+ } else {
+ for (size_t y = 0; y < sourceHeight; y++) {
+ memcpy((uint8_t*)intermediateVBuffer.data + y * intermediateVBuffer.rowBytes,
+ (uint8_t*)srcBuffer.data + y * srcBuffer.rowBytes,
+ sourceWidth * 4);
+ }
+ err = kvImageNoError;
+ }
+ }
break;
}
@@ -176,8 +245,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
vImage_YpCbCrToARGB info;
vImage_YpCbCrPixelRange pixelRange =
(pixelFormat == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange) ?
- (vImage_YpCbCrPixelRange){16, 128, 235, 240} : // Video range
- (vImage_YpCbCrPixelRange){0, 128, 255, 255}; // Full range
+ (vImage_YpCbCrPixelRange){16, 128, 235, 240} :
+ (vImage_YpCbCrPixelRange){0, 128, 255, 255};
err = vImageConvert_YpCbCrToARGB_GenerateConversion(kvImage_YpCbCrToARGBMatrix_ITU_R_601_4,
&pixelRange,
@@ -187,13 +256,30 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
kvImageNoFlags);
if (err == kvImageNoError) {
+ vImage_Buffer argbBuffer = {};
+ argbBuffer.data = malloc(sourceWidth * sourceHeight * 4);
+ if (!argbBuffer.data) {
+ err = kvImageMemoryAllocationError;
+ break;
+ }
+ argbBuffer.width = sourceWidth;
+ argbBuffer.height = sourceHeight;
+ argbBuffer.rowBytes = sourceWidth * 4;
+
err = vImageConvert_420Yp8_CbCr8ToARGB8888(&srcY,
&srcCbCr,
- &intermediateVBuffer,
+ &argbBuffer,
&info,
NULL,
255,
kvImageNoFlags);
+
+ if (err == kvImageNoError) {
+ // Convert ARGB to BGRA: [A, R, G, B] -> [B, G, R, A]
+ uint8_t permuteMap[4] = {3, 2, 1, 0};
+ err = vImagePermuteChannels_ARGB8888(&argbBuffer, &intermediateVBuffer, permuteMap, kvImageNoFlags);
+ }
+ free(argbBuffer.data);
}
break;
}
@@ -214,25 +300,28 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
// Determine rotation based on platform and camera type
#if TARGET_OS_OSX
- int rotationDegrees = 0; // Default 180-degree rotation for most cases
- bool shouldMirror = true;
+ int rotationDegrees = 0;
#else
- int rotationDegrees = 180; // Default 180-degree rotation for most cases
- bool shouldMirror = false;
+ int rotationDegrees = 0;
- /// For camera rotation detection
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
- if (orientation == UIDeviceOrientationPortrait ||
- orientation == UIDeviceOrientationPortraitUpsideDown) {
- // In portrait mode, adjust rotation based on camera type
- if (self.input.device.position == AVCaptureDevicePositionFront) {
- rotationDegrees = 270;
- #if CAMERA_MIRROR_FRONT_CAMERA
- // TODO: Add an API to retroarch to allow for mirroring of front camera
- shouldMirror = true; // Mirror front camera
- #endif
- RARCH_LOG("[Camera]: Using 270-degree rotation with mirroring for front camera in portrait mode\n");
- }
+ BOOL preferFront = self.cameraPreferenceSet ? self.preferFrontCamera : CAMERA_PREFER_FRONTFACING;
+ switch (orientation) {
+ case UIDeviceOrientationPortrait:
+ rotationDegrees = 0;
+ break;
+ case UIDeviceOrientationPortraitUpsideDown:
+ rotationDegrees = 0;
+ break;
+ case UIDeviceOrientationLandscapeLeft:
+ rotationDegrees = self.fixFrontCameraRotation && preferFront ? 270 : 90;
+ break;
+ case UIDeviceOrientationLandscapeRight:
+ rotationDegrees = self.fixFrontCameraRotation && preferFront ? 90 : 270;
+ break;
+ default:
+ rotationDegrees = 0;
+ break;
}
#endif
@@ -273,32 +362,33 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
}
// Mirror the image if needed
- if (shouldMirror) {
- vImage_Buffer mirroredBuffer = {};
- mirroredBuffer.data = malloc(rotatedBuffer.height * rotatedBuffer.rowBytes);
- if (!mirroredBuffer.data) {
- RARCH_ERR("[Camera]: Failed to allocate mirror buffer\n");
- free(rotatedBuffer.data);
- free(intermediateBuffer);
- CVPixelBufferUnlockBaseAddress(imageBuffer, 0);
- return;
- }
-
- mirroredBuffer.width = rotatedBuffer.width;
- mirroredBuffer.height = rotatedBuffer.height;
- mirroredBuffer.rowBytes = rotatedBuffer.rowBytes;
-
- err = vImageHorizontalReflect_ARGB8888(&rotatedBuffer, &mirroredBuffer, kvImageNoFlags);
-
- if (err == kvImageNoError) {
- // Free rotated buffer and use mirrored buffer for scaling
- free(rotatedBuffer.data);
- rotatedBuffer = mirroredBuffer;
- } else {
- RARCH_ERR("[Camera]: Error mirroring image: %ld\n", err);
- free(mirroredBuffer.data);
- }
- }
+ //Mirroring messes up the front camera's colors, and I have no idea how to fix it. Let's just turn off mirroring.
+// if (shouldMirror) {
+// vImage_Buffer mirroredBuffer = {};
+// mirroredBuffer.data = malloc(rotatedBuffer.height * rotatedBuffer.rowBytes);
+// if (!mirroredBuffer.data) {
+// RARCH_ERR("[Camera]: Failed to allocate mirror buffer\n");
+// free(rotatedBuffer.data);
+// free(intermediateBuffer);
+// CVPixelBufferUnlockBaseAddress(imageBuffer, 0);
+// return;
+// }
+//
+// mirroredBuffer.width = rotatedBuffer.width;
+// mirroredBuffer.height = rotatedBuffer.height;
+// mirroredBuffer.rowBytes = rotatedBuffer.rowBytes;
+//
+// err = vImageHorizontalReflect_ARGB8888(&rotatedBuffer, &mirroredBuffer, kvImageNoFlags);
+//
+// if (err == kvImageNoError) {
+// // Free rotated buffer and use mirrored buffer for scaling
+// free(rotatedBuffer.data);
+// rotatedBuffer = mirroredBuffer;
+// } else {
+// RARCH_ERR("[Camera]: Error mirroring image: %ld\n", err);
+// free(mirroredBuffer.data);
+// }
+// }
// Calculate aspect fill scaling
float sourceAspect = (float)rotatedBuffer.width / rotatedBuffer.height;
@@ -317,9 +407,6 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
scaledHeight = (size_t)(self.width / sourceAspect);
}
- RARCH_LOG("[Camera]: Aspect fill scaling from %zux%zu to %zux%zu\n",
- rotatedBuffer.width, rotatedBuffer.height, scaledWidth, scaledHeight);
-
scaledBuffer.data = malloc(scaledWidth * scaledHeight * 4);
if (!scaledBuffer.data) {
RARCH_ERR("[Camera]: Failed to allocate scaled buffer\n");
@@ -333,7 +420,6 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
scaledBuffer.height = scaledHeight;
scaledBuffer.rowBytes = scaledWidth * 4;
- // Scale maintaining aspect ratio
err = vImageScale_ARGB8888(&rotatedBuffer, &scaledBuffer, NULL, kvImageHighQualityResampling);
if (err != kvImageNoError) {
@@ -349,13 +435,12 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
size_t xOffset = (scaledWidth > self.width) ? (scaledWidth - self.width) / 2 : 0;
size_t yOffset = (scaledHeight > self.height) ? (scaledHeight - self.height) / 2 : 0;
- // Copy the centered portion to the destination buffer
- uint32_t *srcPtr = (uint32_t *)scaledBuffer.data;
+ uint32_t *scaledPtr = (uint32_t *)scaledBuffer.data;
uint32_t *dstPtr = (uint32_t *)self.frameBuffer;
for (size_t y = 0; y < self.height; y++) {
memcpy(dstPtr + y * self.width,
- srcPtr + (y + yOffset) * scaledWidth + xOffset,
+ scaledPtr + (y + yOffset) * scaledWidth + xOffset,
self.width * 4);
}
@@ -433,11 +518,14 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
return devices.firstObject;
}
+ // Use preferFrontCamera property if explicitly set, otherwise use default
+ BOOL preferFront = self.cameraPreferenceSet ? self.preferFrontCamera : CAMERA_PREFER_FRONTFACING;
+
// Try to match by name for built-in cameras
for (AVCaptureDevice *device in devices) {
BOOL isFrontFacing = [device.localizedName containsString:@"FaceTime"] ||
[device.localizedName containsString:@"Front"];
- if (CAMERA_PREFER_FRONTFACING == isFrontFacing) {
+ if (preferFront == isFrontFacing) {
RARCH_LOG("[Camera]: Selected macOS camera: %s\n",
[device.localizedName UTF8String]);
return device;
@@ -445,14 +533,17 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
}
#else
// iOS: Use position property
- AVCaptureDevicePosition preferredPosition = CAMERA_PREFER_FRONTFACING ?
+ // Use preferFrontCamera property if explicitly set, otherwise use default
+ BOOL preferFront = self.cameraPreferenceSet ? self.preferFrontCamera : CAMERA_PREFER_FRONTFACING;
+
+ AVCaptureDevicePosition preferredPosition = preferFront ?
AVCaptureDevicePositionFront : AVCaptureDevicePositionBack;
// Try to find preferred camera
for (AVCaptureDevice *device in devices) {
if (device.position == preferredPosition) {
- RARCH_LOG("[Camera]: Selected iOS camera position: %d\n",
- (int)preferredPosition);
+ RARCH_LOG("[Camera]: Selected iOS camera position: %d (preferFront: %d)\n",
+ (int)preferredPosition, preferFront);
return device;
}
}
@@ -494,7 +585,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
self.output.videoSettings = @{
(NSString*)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32BGRA)
};
- [self.output setSampleBufferDelegate:self queue:dispatch_get_main_queue()];
+ // Use dedicated output queue instead of main queue for frame processing
+ [self.output setSampleBufferDelegate:self queue:self.outputQueue];
if ([self.session canAddOutput:self.output]) {
[self.session addOutput:self.output];
@@ -504,6 +596,117 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
return true;
}
+- (bool)switchCamera:(BOOL)useFrontCamera {
+ if (!self.session) {
+ RARCH_ERR("[Camera]: Cannot switch camera - session not initialized\n");
+ return false;
+ }
+
+ // Update preference
+ self.preferFrontCamera = useFrontCamera;
+ self.cameraPreferenceSet = YES;
+
+ // Perform camera switch on session queue to avoid blocking main thread
+ dispatch_async(self.sessionQueue, ^{
+ BOOL wasRunning = self.session.isRunning;
+ if (wasRunning) {
+ [self.session stopRunning];
+ }
+
+ // Remove current input
+ if (self.input) {
+ [self.session removeInput:self.input];
+ }
+
+ // Find and add new camera
+ NSArray<AVCaptureDevice *> *devices;
+#if TARGET_OS_OSX
+ devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
+#else
+ NSArray<AVCaptureDeviceType> *deviceTypes;
+ if (@available(iOS 17.0, *)) {
+ deviceTypes = @[
+ AVCaptureDeviceTypeExternal,
+ AVCaptureDeviceTypeBuiltInWideAngleCamera,
+ ];
+ } else {
+ deviceTypes = @[
+ AVCaptureDeviceTypeBuiltInWideAngleCamera,
+ ];
+ }
+ AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
+ discoverySessionWithDeviceTypes:deviceTypes
+ mediaType:AVMediaTypeVideo
+ position:AVCaptureDevicePositionUnspecified];
+ devices = discoverySession.devices;
+#endif
+
+ AVCaptureDevice *newDevice = nil;
+#if TARGET_OS_OSX
+ for (AVCaptureDevice *device in devices) {
+ BOOL isFront = [device.localizedName containsString:@"FaceTime"] ||
+ [device.localizedName containsString:@"Front"];
+ if (isFront == useFrontCamera) {
+ newDevice = device;
+ break;
+ }
+ }
+#else
+ AVCaptureDevicePosition targetPosition = useFrontCamera ?
+ AVCaptureDevicePositionFront : AVCaptureDevicePositionBack;
+ for (AVCaptureDevice *device in devices) {
+ if (device.position == targetPosition) {
+ newDevice = device;
+ break;
+ }
+ }
+#endif
+
+ if (!newDevice && devices.count > 0) {
+ newDevice = devices.firstObject;
+ }
+
+ if (!newDevice) {
+ RARCH_ERR("[Camera]: No camera device found for switch\n");
+ return;
+ }
+
+ NSError *error = nil;
+ self.input = [AVCaptureDeviceInput deviceInputWithDevice:newDevice error:&error];
+ if (error) {
+ RARCH_ERR("[Camera]: Failed to create device input: %s\n",
+ [error.localizedDescription UTF8String]);
+ return;
+ }
+
+ // Begin configuration to make atomic changes
+ [self.session beginConfiguration];
+
+ if ([self.session canAddInput:self.input]) {
+ [self.session addInput:self.input];
+ RARCH_LOG("[Camera]: Switched to camera: %s (front: %d)\n",
+ [newDevice.localizedName UTF8String], useFrontCamera);
+ }
+
+ // Re-apply video output settings to ensure consistent pixel format
+ if (self.output) {
+ self.output.videoSettings = @{
+ (NSString*)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32BGRA)
+ };
+ RARCH_LOG("[Camera]: Re-applied BGRA pixel format after camera switch\n");
+ }
+
+ // Commit configuration
+ [self.session commitConfiguration];
+
+ if (wasRunning) {
+ [self.session startRunning];
+ }
+ });
+
+ return true;
+}
+
@end
typedef struct
@@ -513,27 +716,6 @@ typedef struct
unsigned height;
} avfoundation_t;
-static void generateColorBars(uint32_t *buffer, size_t width, size_t height) {
- const uint32_t colors[] = {
- 0xFFFFFFFF, // White
- 0xFFFFFF00, // Yellow
- 0xFF00FFFF, // Cyan
- 0xFF00FF00, // Green
- 0xFFFF00FF, // Magenta
- 0xFFFF0000, // Red
- 0xFF0000FF, // Blue
- 0xFF000000 // Black
- };
-
- size_t barWidth = width / 8;
- for (size_t y = 0; y < height; y++) {
- for (size_t x = 0; x < width; x++) {
- size_t colorIndex = x / barWidth;
- buffer[y * width + x] = colors[colorIndex];
- }
- }
-}
-
static void *avfoundation_init(const char *device, uint64_t caps,
unsigned width, unsigned height)
{
@@ -546,6 +728,8 @@ static void *avfoundation_init(const char *device, uint64_t caps,
}
avf->manager = [AVCameraManager sharedInstance];
+ avf->manager.enableFrontCameraMirrored = YES;
+ avf->manager.preferFrontCamera = YES;
avf->width = width;
avf->height = height;
avf->manager.width = width;
@@ -586,27 +770,11 @@ static void *avfoundation_init(const char *device, uint64_t caps,
return NULL;
}
- // Initialize capture session on main thread
+ // Initialize capture session - setup can be done on any thread
__block bool setupSuccess = false;
- if ([NSThread isMainThread]) {
- @autoreleasepool {
- setupSuccess = [avf->manager setupCameraSession];
- if (setupSuccess) {
- [avf->manager.session startRunning];
- RARCH_LOG("[Camera]: Started camera session\n");
- }
- }
- } else {
- dispatch_sync(dispatch_get_main_queue(), ^{
- @autoreleasepool {
- setupSuccess = [avf->manager setupCameraSession];
- if (setupSuccess) {
- [avf->manager.session startRunning];
- RARCH_LOG("[Camera]: Started camera session\n");
- }
- }
- });
+ @autoreleasepool {
+ setupSuccess = [avf->manager setupCameraSession];
}
if (!setupSuccess) {
@@ -616,15 +784,11 @@ static void *avfoundation_init(const char *device, uint64_t caps,
return NULL;
}
- // Add a check to verify the session is actually running
- if (!avf->manager.session.isRunning) {
- RARCH_ERR("[Camera]: Failed to start camera session\n");
- free(avf->manager.frameBuffer);
- free(avf);
- return NULL;
- }
+ // Don't start camera session here - wait for avfoundation_start() to be called
+ // This allows cores to control when the camera actually starts capturing
+ // which saves battery and resources when camera is not needed
- RARCH_LOG("[Camera]: AVFoundation camera initialized and started successfully\n");
+ RARCH_LOG("[Camera]: AVFoundation camera initialized (not started yet)\n");
return avf;
}
@@ -637,7 +801,10 @@ static void avfoundation_free(void *data)
RARCH_LOG("[Camera]: Freeing AVFoundation camera\n");
if (avf->manager.session) {
- [avf->manager.session stopRunning];
+ // Stop session on background queue
+ [avf->manager stopSession];
+ // Wait a bit for session to stop
+ usleep(50000); // 50ms
}
if (avf->manager.frameBuffer) {
@@ -659,11 +826,9 @@ static bool avfoundation_start(void *data)
RARCH_LOG("[Camera]: Starting AVFoundation camera\n");
- dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
- [avf->manager.session startRunning];
- RARCH_LOG("[Camera]: Camera session started on background thread\n");
- });
-
+ // Start session synchronously on background queue
+ [avf->manager startSession];
+
// Give the session a moment to start
usleep(100000); // 100ms
@@ -680,10 +845,8 @@ static void avfoundation_stop(void *data)
RARCH_LOG("[Camera]: Stopping AVFoundation camera\n");
- dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
- [avf->manager.session stopRunning];
- RARCH_LOG("[Camera]: Camera session stopped on background thread\n");
- });
+ // Stop session on dedicated background queue
+ [avf->manager stopSession];
}
static bool avfoundation_poll(void *data,
@@ -692,27 +855,30 @@ static bool avfoundation_poll(void *data,
{
avfoundation_t *avf = (avfoundation_t*)data;
if (!avf || !frame_raw_cb) {
- RARCH_ERR("[Camera]: Cannot poll - invalid data or callback\n");
return false;
}
- if (!avf->manager.session.isRunning) {
- RARCH_LOG("[Camera]: Camera not running, generating color bars\n");
- uint32_t *tempBuffer = (uint32_t*)calloc(avf->width * avf->height, sizeof(uint32_t));
- if (tempBuffer) {
- generateColorBars(tempBuffer, avf->width, avf->height);
- frame_raw_cb(tempBuffer, avf->width, avf->height, avf->width * 4);
- free(tempBuffer);
- return true;
- }
+ // Always provide the frame buffer - it will contain:
+ // - Actual camera data if session is running
+ // - Black/empty frame if session hasn't started yet
+ // This avoids log spam and unnecessary allocations
+ frame_raw_cb(avf->manager.frameBuffer, avf->width, avf->height, avf->width * 4);
+ return true;
+}
+
+bool avfoundation_switch_camera(void *data, bool use_front_camera)
+{
+ avfoundation_t *avf = (avfoundation_t*)data;
+ if (!avf || !avf->manager) {
+ RARCH_ERR("[Camera]: Cannot switch camera - invalid data\n");
return false;
}
-#ifdef DEBUG
- RARCH_LOG("[Camera]: Delivering camera frame\n");
-#endif
- frame_raw_cb(avf->manager.frameBuffer, avf->width, avf->height, avf->width * 4);
- return true;
+ avf->manager.enableFrontCameraMirrored = NO;
+ avf->manager.fixFrontCameraRotation = YES;
+
+ RARCH_LOG("[Camera]: Switching camera to %s\n", use_front_camera ? "front" : "back");
+ return [avf->manager switchCamera:use_front_camera];
}
camera_driver_t camera_avfoundation = {
diff --git a/Cores/Libretro/libretro-common/include/libretro.h b/Cores/Libretro/libretro-common/include/libretro.h
index 099b681b..5bfe4632 100644
--- a/Cores/Libretro/libretro-common/include/libretro.h
+++ b/Cores/Libretro/libretro-common/include/libretro.h
@@ -1219,6 +1219,17 @@ enum retro_mod
*/
#define RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE (26 | RETRO_ENVIRONMENT_EXPERIMENTAL)
+/**
+ * Switches the active camera device.
+ *
+ * @param[in] data <tt>bool *</tt>.
+ * Pointer to a boolean value indicating which camera to use.
+ * If true, switch to front camera; if false, switch to back camera.
+ * @returns \c true if the switch was successful.
+ * @note This is a custom extension, not part of the standard libretro API.
+ */
+#define RETRO_ENVIRONMENT_SET_CAMERA_DEVICE (80 | RETRO_ENVIRONMENT_EXPERIMENTAL)
+
/**
* Gets an interface that the core can use for cross-platform logging.
* Certain platforms don't have a console or <tt>stderr</tt>,
diff --git a/Cores/Libretro/runloop.c b/Cores/Libretro/runloop.c
index 6670852a..3a152142 100644
--- a/Cores/Libretro/runloop.c
+++ b/Cores/Libretro/runloop.c
@@ -2613,6 +2613,13 @@ bool runloop_environment_cb(unsigned cmd, void *data)
break;
}
+ case RETRO_ENVIRONMENT_SET_CAMERA_DEVICE:
+ {
+ bool *use_front = (bool*)data;
+ RARCH_LOG("[Environ]: SET_CAMERA_DEVICE (front: %d).\n", *use_front);
+ return driver_camera_switch(*use_front);
+ }
+
case RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE:
{
struct retro_location_callback *cb =
diff --git a/Cores/Libretro/ui/drivers/LibretroCore.m b/Cores/Libretro/ui/drivers/LibretroCore.m
index 3c7da36f..0e4aa889 100644
--- a/Cores/Libretro/ui/drivers/LibretroCore.m
+++ b/Cores/Libretro/ui/drivers/LibretroCore.m
@@ -120,6 +120,8 @@ NSString * const MAMEGameFileMissingNotification = @"MAMEGameFileMissingNotifica
shutdown_register_callback(NULL);
wfc_status_register_callback(NULL);
log_register_callback(NULL);
+ g_enableMonitorLibretroLog = NO;
+ [self registerAzaharKeyboard:nil];
[[self getRetroArch] stop];
}
@@ -202,8 +204,22 @@ NSString * const MAMEGameFileMissingNotification = @"MAMEGameFileMissingNotifica
[[self getRetroArch] updateLibretroConfigs:configs];
}
-- (void)setShader:(NSString *_Nullable)path {
- [[self getRetroArch] setShader:path];
+- (BOOL)setShader:(NSString *_Nullable)path {
+ return [[self getRetroArch] setShaderWith:path];
+}
+
+- (NSArray<ShaderParameter *> *_Nullable)loadParameters {
+ return [[self getRetroArch] loadParameters];
+}
+
+- (void)updateParameterWith:(NSString *_Nonnull)identifier
+ value:(float)value
+ changingPath:(NSString *_Nonnull)changingPath {
+ [[self getRetroArch] updateParameterWith:identifier value:value changingPath:changingPath];
+}
+
+- (void)appendShader:(NSString *_Nonnull)path prepend:(BOOL)prepend {
+ [[self getRetroArch] appendShader:path prepend:prepend];
}
- (void)addCheatCode:(NSString *_Nonnull)code index:(unsigned)index enable:(BOOL)enable {
@@ -609,4 +625,137 @@ static void libretroLogCallback(enum retro_log_level level, const char *fmt, va_
[[self getRetroArch] setFastforwardFrameSkip:frameSkip];
}
+- (void)loadAmiibo:(NSString *_Nonnull)path {
+ [[self getRetroArch] loadAmiibo:path];
+}
+
+- (BOOL)isSearchingAmiibo {
+ return [[self getRetroArch] isSearchingAmiibo];
+}
+
+#pragma mark - Azahar Keyboard Support
+
+// Structure matching retro_keyboard_config from libretro.h
+struct retro_keyboard_config_local {
+ int button_config;
+ int accept_mode;
+ bool multiline_mode;
+ int max_text_length;
+ int max_digits;
+ const char* _Nullable hint_text;
+ const char*_Nonnull* _Nullable button_text;
+ int button_text_count;
+ bool prevent_digit;
+ bool prevent_at;
+ bool prevent_percent;
+ bool prevent_backslash;
+ bool prevent_profanity;
+ bool enable_callback;
+};
+
+// Static storage for the keyboard callback
+static void (^_Nullable s_azahar_keyboard_callback)(AzaharKeyboardConfig * _Nullable config) = nil;
+
+// C callback that will be called by the Azahar core
+static void azahar_keyboard_request_callback(const struct retro_keyboard_config_local* _Nullable config) {
+ if (!s_azahar_keyboard_callback || !config) {
+ return;
+ }
+
+ AzaharKeyboardConfig *objcConfig = [[AzaharKeyboardConfig alloc] init];
+ objcConfig.buttonConfig = (AzaharButtonConfig)config->button_config;
+ objcConfig.acceptedInput = (AzaharAcceptedInput)config->accept_mode;
+ objcConfig.multilineMode = config->multiline_mode;
+ objcConfig.maxTextLength = config->max_text_length;
+ objcConfig.maxDigits = config->max_digits;
+ objcConfig.hintText = config->hint_text ? [NSString stringWithUTF8String:config->hint_text] : nil;
+
+ // Convert button text array
+ if (config->button_text && config->button_text_count > 0) {
+ NSMutableArray<NSString *> *buttonTexts = [NSMutableArray arrayWithCapacity:config->button_text_count];
+ for (int i = 0; i < config->button_text_count; i++) {
+ if (config->button_text[i]) {
+ [buttonTexts addObject:[NSString stringWithUTF8String:config->button_text[i]]];
+ } else {
+ [buttonTexts addObject:@""];
+ }
+ }
+ objcConfig.buttonText = buttonTexts;
+ }
+
+ // Set filters
+ objcConfig.preventDigit = config->prevent_digit;
+ objcConfig.preventAt = config->prevent_at;
+ objcConfig.preventPercent = config->prevent_percent;
+ objcConfig.preventBackslash = config->prevent_backslash;
+ objcConfig.preventProfanity = config->prevent_profanity;
+ objcConfig.enableCallback = config->enable_callback;
+
+ s_azahar_keyboard_callback(objcConfig);
+}
+
+- (void)registerAzaharKeyboard:(void(^ _Nullable)(AzaharKeyboardConfig *_Nonnull config))callback {
+#ifdef HAVE_DYNAMIC
+ runloop_state_t *runloop_st = runloop_state_get_ptr();
+ if (!runloop_st || !runloop_st->lib_handle) {
+ return;
+ }
+
+ // Store the callback
+ s_azahar_keyboard_callback = [callback copy];
+
+ // Get the retro_set_keyboard_callback function from the core
+ typedef void (*retro_set_keyboard_callback_t)(void (*)(const struct retro_keyboard_config_local*));
+ retro_set_keyboard_callback_t set_callback = (retro_set_keyboard_callback_t)dylib_proc(runloop_st->lib_handle, "retro_set_keyboard_callback");
+
+ if (set_callback) {
+ if (callback) {
+ set_callback(azahar_keyboard_request_callback);
+ } else {
+ set_callback(NULL);
+ }
+ }
+#endif
+}
+
+- (void)inputAzaharKeyboard:(NSString *_Nullable)text buttonType:(AzaharButtonType)buttonType {
+#ifdef HAVE_DYNAMIC
+ runloop_state_t *runloop_st = runloop_state_get_ptr();
+ if (!runloop_st || !runloop_st->lib_handle) {
+ return;
+ }
+
+ // Get the retro_keyboard_input function from the core
+ typedef void (*retro_keyboard_input_t)(const char*, int);
+ retro_keyboard_input_t keyboard_input = (retro_keyboard_input_t)dylib_proc(runloop_st->lib_handle, "retro_keyboard_input");
+
+ if (keyboard_input) {
+ const char* text_cstr = text ? [text UTF8String] : NULL;
+ int button = 0;
+
+ // Map AzaharButtonType to button index
+ // For Single: 0=Ok
+ // For Dual: 0=Cancel, 1=Ok
+ // For Triple: 0=Cancel, 1=Forgot, 2=Ok
+ switch (buttonType) {
+ case AzaharButtonTypeOk:
+ button = 2; // Ok is always the highest index for Triple, adjusted in core
+ break;
+ case AzaharButtonTypeCancel:
+ button = 0;
+ break;
+ case AzaharButtonTypeForgot:
+ button = 1;
+ break;
+ case AzaharButtonTypeNoButton:
+ default:
+ button = 0;
+ break;
+ }
+
+ keyboard_input(text_cstr, button);
+ }
+#endif
+}
+
@end
diff --git a/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h b/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h
index 1868b99a..19af00d4 100644
--- a/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h
+++ b/Cores/Libretro/ui/drivers/cocoa/LibretroCore.h
@@ -9,6 +9,8 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CheevosBridge.h"
+#import "AzaharKeyboardConfig.h"
+#import "LibretroShaders.h"
NS_ASSUME_NONNULL_BEGIN
@@ -64,7 +66,12 @@ extern NSString * const RetroAchievementsNotification;
- (void)updateRunningCoreConfigs:(NSDictionary<NSString*, NSString*> *_Nullable)configs flush:(BOOL)flush;
- (void)updateLibretroConfig:(NSString *_Nonnull)key value:(NSString *_Nonnull)value;
- (void)updateLibretroConfigs:(NSDictionary<NSString*, NSString*> *_Nullable)configs;
-- (void)setShader:(NSString *_Nullable)path;
+- (BOOL)setShader:(NSString *_Nullable)path;
+- (NSArray<ShaderParameter *> *_Nullable)loadParameters;
+- (void)updateParameterWith:(NSString *_Nonnull)identifier
+ value:(float)value
+ changingPath:(NSString *_Nonnull)changingPath;
+- (void)appendShader:(NSString *_Nonnull)path prepend:(BOOL)prepend;
- (void)addCheatCode:(NSString *_Nonnull)code index:(unsigned)index enable:(BOOL)enable;
- (void)resetCheatCode;
+ (BOOL)JITAvailable;
@@ -92,6 +99,10 @@ extern NSString * const RetroAchievementsNotification;
- (void)setFastforwardFrameSkip:(BOOL)frameSkip;
- (void)set3DSCustomLayout:(NSString *_Nullable)layout;
- (void)setLibretroLogMonitor:(BOOL)enable;
+- (void)loadAmiibo:(NSString *_Nonnull)path;
+- (BOOL)isSearchingAmiibo;
+- (void)registerAzaharKeyboard:(void(^ _Nullable)(AzaharKeyboardConfig *_Nonnull config))callback;
+- (void)inputAzaharKeyboard:(NSString *_Nullable)text buttonType:(AzaharButtonType)buttonType;
@end
diff --git a/Cores/Libretro/ui/drivers/cocoa/apple_platform.h b/Cores/Libretro/ui/drivers/cocoa/apple_platform.h
index e2ead665..d0ffe4b3 100644
--- a/Cores/Libretro/ui/drivers/cocoa/apple_platform.h
+++ b/Cores/Libretro/ui/drivers/cocoa/apple_platform.h
@@ -129,7 +129,12 @@ UINavigationControllerDelegate> {
- (void)updateRunningCoreConfigs:(NSDictionary<NSString*, NSString*> *_Nullable)configs flush:(BOOL)flush;
- (void)updateLibretroConfig:(NSString *_Nonnull)key value:(NSString *_Nonnull)value;
- (void)updateLibretroConfigs:(NSDictionary<NSString*, NSString*> *_Nullable)configs;
-- (void)setShader:(NSString *_Nullable)path;
+- (BOOL)setShaderWith:(NSString *_Nullable)path;
+- (void)appendShader:(NSString *_Nonnull)path prepend:(BOOL)prepend;
+- (id _Nullable)loadParameters;
+- (void)updateParameterWith:(NSString *_Nonnull)identifier
+ value:(float)value
+ changingPath:(NSString *_Nonnull)changingPath;
- (void)addCheatCode:(NSString *_Nonnull)code index:(unsigned)index enable:(BOOL)enable;
- (void)resetCheatCode;
- (void)setRespectSilentMode:(BOOL)respect;
@@ -150,6 +155,8 @@ UINavigationControllerDelegate> {
- (NSString *_Nullable)getCoreConfigs:(NSString *_Nonnull)coreName;
- (void)updateFBNeoCheatCode:(NSArray<NSString *> *_Nonnull)keys enable:(BOOL)enable;
- (void)setFastforwardFrameSkip:(BOOL)frameSkip;
+- (void)loadAmiibo:(NSString *_Nonnull)path;
+- (BOOL)isSearchingAmiibo;
@end
#else
diff --git a/Cores/Libretro/ui/drivers/ui_cocoatouch.m b/Cores/Libretro/ui/drivers/ui_cocoatouch.m
index 757ee0de..fc29e8d7 100644
--- a/Cores/Libretro/ui/drivers/ui_cocoatouch.m
+++ b/Cores/Libretro/ui/drivers/ui_cocoatouch.m
@@ -41,12 +41,21 @@
#include "../../verbosity.h"
#include "../../cheevos/cheevos.h"
#include "../../gfx/video_driver.h"
+#include "../../gfx/video_shader_parse.h"
#include "../../runloop.h"
#ifdef HAVE_MENU
#include "../../menu/menu_setting.h"
#endif
+#ifdef HAVE_COCOA_METAL
+#import <Metal/Metal.h>
+#import <simd/simd.h>
+#include "../../gfx/video_shader_parse.h"
+#include "../../gfx/drivers_shader/slang_process.h"
+#include <formats/image.h>
+#endif
+
#import <AVFoundation/AVFoundation.h>
#import <CoreFoundation/CoreFoundation.h>
@@ -1898,34 +1907,35 @@ static NSString *_Nullable needToLoadStatePath = nil;
return nil;
}
-- (void)setShader:(NSString *_Nullable)path {
+- (BOOL)setShaderWith:(NSString *_Nullable)path {
settings_t *settings = config_get_ptr();
if (!settings) {
- return;
+ return NO;
}
if (path && [[NSFileManager defaultManager] fileExistsAtPath:path]) {
settings->bools.video_shader_enable = true;
video_shader_toggle(settings, true);
- set_shader_preset(path.UTF8String);
+ return set_shader_preset(path.UTF8String);
} else {
settings->bools.video_shader_enable = false;
video_shader_toggle(settings, true);
+ return NO;
}
}
-void set_shader_preset(const char * _Nullable preset_path)
+bool set_shader_preset(const char * _Nullable preset_path)
{
settings_t *settings = config_get_ptr();
video_driver_state_t *video_st = video_state_get_ptr();
runloop_state_t *runloop_st = runloop_state_get_ptr();
if (!video_st || !video_st->current_video || !video_st->current_video->set_shader)
- return;
+ return false;
// 获取 shader 类型
enum rarch_shader_type type = video_shader_parse_type(preset_path);
if (type == RARCH_SHADER_NONE)
- return;
+ return false;
// 设置 shader
if (video_st->current_video->set_shader(video_st->data, type, preset_path))
@@ -1953,9 +1963,113 @@ void set_shader_preset(const char * _Nullable preset_path)
{
runloop_st->runtime_shader_preset_path[0] = '\0';
}
+ return true;
+ } else {
+ return false;
+ }
+}
+
+- (void)appendShader:(NSString *_Nonnull)path prepend:(BOOL)prepend {
+ if (!path || ![[NSFileManager defaultManager] fileExistsAtPath:path]) {
+ RARCH_ERR("[Shader] Append shader failed: file does not exist");
+ return;
+ }
+
+ settings_t *settings = config_get_ptr();
+ if (!settings) return;
+
+ // 获取当前shader
+ struct video_shader *current_shader = menu_shader_get();
+ if (!current_shader) {
+ RARCH_ERR("[Shader] No current shader to append to");
+ return;
+ }
+
+ menu_shader_manager_append_preset(current_shader, path.UTF8String, prepend);
+}
+
+- (NSArray<ShaderParameter *> *_Nullable)loadParameters {
+ // 获取当前shader
+ struct video_shader *shader = menu_shader_get();
+ if (!shader || shader->num_parameters == 0) {
+ RARCH_LOG("[Shader] No shader parameters found");
+ return @[];
+ }
+
+ NSMutableArray<ShaderParameter *> *parameters = [NSMutableArray arrayWithCapacity:shader->num_parameters];
+
+ // 遍历所有参数
+ for (unsigned i = 0; i < shader->num_parameters; i++) {
+ struct video_shader_parameter *param = &shader->parameters[i];
+
+ ShaderParameter *shaderParam = [[ShaderParameter alloc] init];
+ shaderParam.identifier = [NSString stringWithUTF8String:param->id];
+ shaderParam.desc = [NSString stringWithUTF8String:param->desc];
+ shaderParam.current = param->current;
+ shaderParam.minimum = param->minimum;
+ shaderParam.maximum = param->maximum;
+ shaderParam.step = param->step;
+ shaderParam.pass = param->pass;
+
+ [parameters addObject:shaderParam];
+
+ RARCH_LOG("[Shader] Loaded parameter: %s (%.3f) - %s",
+ param->id, param->current, param->desc);
+ }
+
+ RARCH_LOG("[Shader] Loaded %lu shader parameters", (unsigned long)parameters.count);
+ return parameters;
+}
+
+- (void)updateParameterWith:(NSString *_Nonnull)identifier
+ value:(float)value
+ changingPath:(NSString *_Nonnull)changingPath {
+ if (!identifier || identifier.length == 0) {
+ RARCH_ERR("[Shader] Update parameter failed: invalid identifier");
+ return;
+ }
+
+ // 获取当前shader
+ struct video_shader *shader = menu_shader_get();
+ if (!shader || shader->num_parameters == 0) {
+ RARCH_ERR("[Shader] No shader parameters found to update");
+ return;
+ }
+
+ // 查找匹配的参数
+ struct video_shader_parameter *target_param = NULL;
+ for (unsigned i = 0; i < shader->num_parameters; i++) {
+ if (strcmp(shader->parameters[i].id, identifier.UTF8String) == 0) {
+ target_param = &shader->parameters[i];
+ break;
+ }
}
+
+ if (!target_param) {
+ RARCH_ERR("[Shader] Parameter not found: %s", identifier.UTF8String);
+ return;
+ }
+
+ // 验证并修正值范围
+ float clamped_value = value;
+ if (clamped_value < target_param->minimum) {
+ clamped_value = target_param->minimum;
+ RARCH_LOG("[Shader] Parameter value clamped to minimum: %.3f", clamped_value);
+ } else if (clamped_value > target_param->maximum) {
+ clamped_value = target_param->maximum;
+ RARCH_LOG("[Shader] Parameter value clamped to maximum: %.3f", clamped_value);
+ }
+
+ // 更新参数值
+ target_param->current = clamped_value;
+
+ // 标记shader为已修改
+ shader->flags |= SHDR_FLAG_MODIFIED;
+
+ video_shader_write_preset(changingPath.UTF8String, shader, true);
}
+
- (void)addCheatCode:(NSString *_Nonnull)code index:(unsigned)index enable:(BOOL)enable {
runloop_state_t *runloop_st = runloop_state_get_ptr();
if (runloop_st && runloop_st->current_core.retro_cheat_set) {
@@ -2153,6 +2267,37 @@ static NSString * _Nullable g_customSaveExtension = nil;
settings->bools.fastforward_frameskip = frameSkip;
}
+- (void)loadAmiibo:(NSString *_Nonnull)path {
+#ifdef HAVE_DYNAMIC
+ runloop_state_t *runloop_st = runloop_state_get_ptr();
+ if (!runloop_st || !runloop_st->lib_handle) {
+ return;
+ }
+
+ typedef bool (*retro_load_amiibo_t)(const char*);
+ retro_load_amiibo_t load_amiibo = (retro_load_amiibo_t)dylib_proc(runloop_st->lib_handle, "retro_load_amiibo");
+ if (load_amiibo) {
+ load_amiibo([path UTF8String]);
+ }
+#endif
+}
+
+- (BOOL)isSearchingAmiibo {
+#ifdef HAVE_DYNAMIC
+ runloop_state_t *runloop_st = runloop_state_get_ptr();
+ if (!runloop_st || !runloop_st->lib_handle) {
+ return NO;
+ }
+
+ typedef bool (*retro_is_searching_amiibo_t)(void);
+ retro_is_searching_amiibo_t is_searching = (retro_is_searching_amiibo_t)dylib_proc(runloop_st->lib_handle, "retro_is_searching_amiibo");
+ if (is_searching) {
+ return is_searching() ? YES : NO;
+ }
+#endif
+ return NO;
+}
+
@end
ui_companion_driver_t ui_companion_cocoatouch = {
diff --git a/Cores/azahar.libretro.framework/azahar.libretro b/Cores/azahar.libretro.framework/azahar.libretro
index 12e8bff6..1123f8a7 100755
--- a/Cores/azahar.libretro.framework/azahar.libretro
+++ b/Cores/azahar.libretro.framework/azahar.libretro
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0a326e86c443e0020621ced5ca8db7b7524b2a32bde3f18366f88b3228e6fa9c
-size 27144960
+oid sha256:b6bd47ead6175f8a0bb884dba0334cedb54e49f348e26164f9ff19a2c5c4df43
+size 27202016
diff --git a/ManicEmu/Libretro/AzaharKeyboardConfig.h b/ManicEmu/Libretro/AzaharKeyboardConfig.h
new file mode 100644
index 00000000..0af58e12
--- /dev/null
+++ b/ManicEmu/Libretro/AzaharKeyboardConfig.h
@@ -0,0 +1,54 @@
+//
+// AzaharKeyboardConfig.h
+// Libretro
+//
+// Created by Daiuno on 2025/12/11.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSUInteger, AzaharButtonConfig) {
+ AzaharButtonConfigSingle,
+ AzaharButtonConfigDual,
+ AzaharButtonConfigTriple,
+ AzaharButtonConfigNone,
+};
+
+typedef NS_ENUM(NSUInteger, AzaharAcceptedInput) {
+ AzaharAcceptedInputAnything,
+ AzaharAcceptedInputNotEmpty,
+ AzaharAcceptedInputNotEmptyAndNotBlank,
+ AzaharAcceptedInputNotBlank,
+ AzaharAcceptedInputFixedLength,
+};
+
+typedef NS_ENUM(NSUInteger, AzaharButtonType) {
+ AzaharButtonTypeOk,
+ AzaharButtonTypeCancel,
+ AzaharButtonTypeForgot,
+ AzaharButtonTypeNoButton,
+};
+
+@interface AzaharKeyboardConfig : NSObject
+
+@property (nonatomic, assign) AzaharButtonConfig buttonConfig;
+@property (nonatomic, assign) AzaharAcceptedInput acceptedInput;
+@property (nonatomic, assign) BOOL multilineMode;
+@property (nonatomic, assign) NSInteger maxTextLength;
+@property (nonatomic, assign) NSInteger maxDigits;
+@property (nonatomic, copy) NSString *_Nullable hintText;
+@property (nonatomic, copy) NSArray<NSString *> *_Nullable buttonText;
+@property (nonatomic, assign) BOOL preventDigit;
+@property (nonatomic, assign) BOOL preventAt;
+@property (nonatomic, assign) BOOL preventPercent;
+@property (nonatomic, assign) BOOL preventBackslash;
+@property (nonatomic, assign) BOOL preventProfanity;
+@property (nonatomic, assign) BOOL enableCallback;
+
+
+@end
+
+NS_ASSUME_NONNULL_END
diff --git a/ManicEmu/Libretro/AzaharKeyboardConfig.m b/ManicEmu/Libretro/AzaharKeyboardConfig.m
new file mode 100644
index 00000000..c6ee46bf
--- /dev/null
+++ b/ManicEmu/Libretro/AzaharKeyboardConfig.m
@@ -0,0 +1,13 @@
+//
+// AzaharKeyboardConfig.m
+// Libretro
+//
+// Created by Daiuno on 2025/12/11.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+#import "AzaharKeyboardConfig.h"
+
+@implementation AzaharKeyboardConfig
+
+@end
diff --git a/ManicEmu/Libretro/LibretroConfig.xcconfig b/ManicEmu/Libretro/LibretroConfig.xcconfig
index c5dcd768..3ccc606c 100644
--- a/ManicEmu/Libretro/LibretroConfig.xcconfig
+++ b/ManicEmu/Libretro/LibretroConfig.xcconfig
@@ -118,7 +118,7 @@ OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DHAVE_ONLINE_UPDATER
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DHAVE_OPENGLES
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DHAVE_OPENGLES3
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DIOS
-OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DPACKAGE_VERSION=\"1.8.0\"
+OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DPACKAGE_VERSION=\"1.8.1\"
OTHER_CFLAGS_IOS_TVOS_SHARE = $(inherited) -DRARCH_MOBILE
OTHER_CFLAGS[sdk=iphoneos*] = $(inherited) $(OTHER_CFLAGS_IOS_TVOS_SHARE)
diff --git a/ManicEmu/Libretro/LibretroShaders.h b/ManicEmu/Libretro/LibretroShaders.h
new file mode 100644
index 00000000..cc7f8b63
--- /dev/null
+++ b/ManicEmu/Libretro/LibretroShaders.h
@@ -0,0 +1,25 @@
+//
+// LibretroShaders.h
+// Libretro
+//
+// Created by Daiuno on 2025/12/13.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Shader参数
+@interface ShaderParameter : NSObject
+@property (nonatomic, copy) NSString *identifier; // 参数标识符
+@property (nonatomic, copy) NSString *desc; // 参数描述
+@property (nonatomic, assign) float current; // 当前值
+@property (nonatomic, assign) float minimum; // 最小值
+@property (nonatomic, assign) float maximum; // 最大值
+@property (nonatomic, assign) float step; // 步长
+@property (nonatomic, assign) unsigned pass; // 所属pass
+@end
+
+NS_ASSUME_NONNULL_END
+
diff --git a/ManicEmu/Libretro/LibretroShaders.m b/ManicEmu/Libretro/LibretroShaders.m
new file mode 100644
index 00000000..3893a156
--- /dev/null
+++ b/ManicEmu/Libretro/LibretroShaders.m
@@ -0,0 +1,13 @@
+//
+// LibretroShaders.m
+// Libretro
+//
+// Created by Daiuno on 2025/12/13.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+#import "LibretroShaders.h"
+
+@implementation ShaderParameter
+
+@end
diff --git a/ManicEmu/ManicEmu.xcodeproj/project.pbxproj b/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
index 371ee1c3..054c403d 100644
--- a/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
+++ b/ManicEmu/ManicEmu.xcodeproj/project.pbxproj
@@ -13,11 +13,7 @@
57047A162D8571D600C62FF6 /* PriceItemCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57047A152D8571D500C62FF6 /* PriceItemCollectionCell.swift */; };
57047A1D2D85BB2200C62FF6 /* PurchaseButtonReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57047A1C2D85BB2000C62FF6 /* PurchaseButtonReusableView.swift */; };
57047A1F2D85C95900C62FF6 /* PurchaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57047A1E2D85C95500C62FF6 /* PurchaseViewController.swift */; };
- 570622E22D7B32F3004F09E7 /* FilterSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570622E12D7B32E6004F09E7 /* FilterSelectionViewController.swift */; };
- 570622E62D7B334E004F09E7 /* FilterSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570622E52D7B3345004F09E7 /* FilterSelectionView.swift */; };
- 570622EC2D7BD2FE004F09E7 /* FilterManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570622EB2D7BD2F6004F09E7 /* FilterManager.swift */; };
- 5706236A2D7BDCD9004F09E7 /* FilterCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570623692D7BDCD0004F09E7 /* FilterCollectionViewCell.swift */; };
- 5706236C2D7BDFE1004F09E7 /* CIFilterExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5706236B2D7BDFDC004F09E7 /* CIFilterExtensions.swift */; };
+ 570622EC2D7BD2FE004F09E7 /* ShaderManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570622EB2D7BD2F6004F09E7 /* ShaderManager.swift */; };
5706AFBD2DF7D8AF0066122E /* BIOSSelectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5706AFBC2DF7D8A40066122E /* BIOSSelectionViewController.swift */; };
5706AFC22DF7D94F0066122E /* BIOSSelectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5706AFC12DF7D9460066122E /* BIOSSelectionView.swift */; };
5706AFC62DF7DABD0066122E /* BIOSCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5706AFC52DF7DAA20066122E /* BIOSCollectionViewCell.swift */; };
@@ -33,6 +29,9 @@
5706B0FD2DFFED170066122E /* menu_pipeline.metal in Sources */ = {isa = PBXBuildFile; fileRef = 57BFBE4C2DD3326400AABF98 /* menu_pipeline.metal */; };
5708351C2D3216980079D410 /* Log.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5708351B2D3216930079D410 /* Log.swift */; };
570A28002DCF03CF001249C6 /* PLzmaSDK in Frameworks */ = {isa = PBXBuildFile; productRef = 570A27FF2DCF03CF001249C6 /* PLzmaSDK */; };
+ 570CF8352EEA58DE00696C1B /* AzaharKeyboardConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = 570CF8332EEA58DE00696C1B /* AzaharKeyboardConfig.m */; };
+ 570CF8872EEB0AD200696C1B /* ShadersListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570CF8842EEB0AC500696C1B /* ShadersListViewController.swift */; };
+ 570CF88C2EEB0AE000696C1B /* ShadersListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570CF88A2EEB0ADB00696C1B /* ShadersListView.swift */; };
570F590C2DC5B838007BFD92 /* ThemeSettingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570F590B2DC5B82F007BFD92 /* ThemeSettingView.swift */; };
570F590E2DC5BAEE007BFD92 /* DesktopIconCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570F590D2DC5BAE1007BFD92 /* DesktopIconCollectionViewCell.swift */; };
570F59102DC5BB03007BFD92 /* ThemeColorCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 570F590F2DC5BAF4007BFD92 /* ThemeColorCollectionViewCell.swift */; };
@@ -590,6 +589,18 @@
5771C20A2E6569BE0062EDE0 /* LeaderboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5771C2092E6569B60062EDE0 /* LeaderboardView.swift */; };
5771C28B2E6986C00062EDE0 /* DC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5771C28A2E6986BE0062EDE0 /* DC.swift */; };
5771C2922E699C930062EDE0 /* flycast.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5771C2902E699C880062EDE0 /* flycast.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 5781F4572EECF7CF00916D8B /* LibretroShaders.m in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4552EECF7CF00916D8B /* LibretroShaders.m */; };
+ 5781F4612EED62E200916D8B /* ShadersListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F45F2EED62DA00916D8B /* ShadersListCell.swift */; };
+ 5781F4652EED639F00916D8B /* ShadersListBlankSlateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4642EED639C00916D8B /* ShadersListBlankSlateView.swift */; };
+ 5781F46F2EED6DC100916D8B /* Shader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F46D2EED6DBC00916D8B /* Shader.swift */; };
+ 5781F47E2EEE572A00916D8B /* ShaderInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F47A2EEE572500916D8B /* ShaderInfoView.swift */; };
+ 5781F4842EEE586000916D8B /* ShaderInfoInputCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4822EEE585400916D8B /* ShaderInfoInputCell.swift */; };
+ 5781F4892EEE591500916D8B /* ShaderInfoAppendCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4872EEE590800916D8B /* ShaderInfoAppendCell.swift */; };
+ 5781F48E2EEE5C7A00916D8B /* ShaderInfoParameterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F48C2EEE5C6F00916D8B /* ShaderInfoParameterCell.swift */; };
+ 5781F4992EEE71B500916D8B /* ShaderOrderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4972EEE71A800916D8B /* ShaderOrderView.swift */; };
+ 5781F49E2EEE957200916D8B /* ShaderOrderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F49C2EEE956900916D8B /* ShaderOrderCell.swift */; };
+ 5781F4EB2EEFE44F00916D8B /* NumbersExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F4E92EEFE44800916D8B /* NumbersExtensions.swift */; };
+ 5781F5462EF1384500916D8B /* MelonNXKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5781F5442EF1383F00916D8B /* MelonNXKit.swift */; };
579076E32D8A990700ED90FB /* FunctionButtonContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579076E22D8A98FC00ED90FB /* FunctionButtonContainerView.swift */; };
579076F02D8AAC2900ED90FB /* TransparentHoleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 579076EF2D8AAC2800ED90FB /* TransparentHoleView.swift */; };
57913AF52D5D89CF004D51AA /* TouchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57913AF42D5D89CC004D51AA /* TouchController.swift */; };
@@ -610,7 +621,6 @@
57A481542E7A8B84001D4598 /* bsnes-jg.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57A481532E7A8B76001D4598 /* bsnes-jg.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
57A481682E7F05AB001D4598 /* melondsds.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57A481672E7F059D001D4598 /* melondsds.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
57A4816A2E7F05D2001D4598 /* NDS.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57A481692E7F05CD001D4598 /* NDS.swift */; };
- 57A482012E83E0D4001D4598 /* OriginFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57A482002E83E0D4001D4598 /* OriginFilter.swift */; };
57AD35EA2D7DEB9D0092FD03 /* WebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57AD35E92D7DEB900092FD03 /* WebViewController.swift */; };
57AD35EC2D7DEF360092FD03 /* SheerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57AD35EB2D7DEF2E0092FD03 /* SheerExtensions.swift */; };
57B5E3142ECC625E00DE17E9 /* Arcade.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57B5E3122ECC625600DE17E9 /* Arcade.swift */; };
@@ -768,8 +778,6 @@
57EED0362EC8D9C4003971BD /* JITSettingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0342EC8D9BB003971BD /* JITSettingView.swift */; };
57EED0772ECB817C003971BD /* IconView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0752ECB8172003971BD /* IconView.swift */; };
57EED08A2ECB8AAE003971BD /* DynamicShadow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57EED0882ECB8A9C003971BD /* DynamicShadow.swift */; };
- 57F0D7F22DE1634E00760F57 /* LibretroPreViewFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D7F12DE1634400760F57 /* LibretroPreViewFilter.swift */; };
- 57F0D7F52DE1750A00760F57 /* FilterNameOnlyCollectionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D7F42DE174F800760F57 /* FilterNameOnlyCollectionCell.swift */; };
57F0D81A2DE1C2D700760F57 /* GameListStyleCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D8192DE1C2C200760F57 /* GameListStyleCollectionViewCell.swift */; };
57F0D83E2DE2C5AE00760F57 /* nestopia.libretro.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 57F0D83C2DE2C59900760F57 /* nestopia.libretro.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
57F0D8422DE2CD8D00760F57 /* NES.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57F0D8412DE2CD8B00760F57 /* NES.swift */; };
@@ -903,11 +911,7 @@
57047A152D8571D500C62FF6 /* PriceItemCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PriceItemCollectionCell.swift; sourceTree = "<group>"; };
57047A1C2D85BB2000C62FF6 /* PurchaseButtonReusableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PurchaseButtonReusableView.swift; sourceTree = "<group>"; };
57047A1E2D85C95500C62FF6 /* PurchaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PurchaseViewController.swift; sourceTree = "<group>"; };
- 570622E12D7B32E6004F09E7 /* FilterSelectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterSelectionViewController.swift; sourceTree = "<group>"; };
- 570622E52D7B3345004F09E7 /* FilterSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterSelectionView.swift; sourceTree = "<group>"; };
- 570622EB2D7BD2F6004F09E7 /* FilterManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterManager.swift; sourceTree = "<group>"; };
- 570623692D7BDCD0004F09E7 /* FilterCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterCollectionViewCell.swift; sourceTree = "<group>"; };
- 5706236B2D7BDFDC004F09E7 /* CIFilterExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CIFilterExtensions.swift; sourceTree = "<group>"; };
+ 570622EB2D7BD2F6004F09E7 /* ShaderManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderManager.swift; sourceTree = "<group>"; };
5706AFBC2DF7D8A40066122E /* BIOSSelectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BIOSSelectionViewController.swift; sourceTree = "<group>"; };
5706AFC12DF7D9460066122E /* BIOSSelectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BIOSSelectionView.swift; sourceTree = "<group>"; };
5706AFC52DF7DAA20066122E /* BIOSCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BIOSCollectionViewCell.swift; sourceTree = "<group>"; };
@@ -919,6 +923,10 @@
5706B0482DFBF8350066122E /* 32X.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = 32X.swift; sourceTree = "<group>"; };
5706B0592DFC0F7A0066122E /* SS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SS.swift; sourceTree = "<group>"; };
5708351B2D3216930079D410 /* Log.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Log.swift; sourceTree = "<group>"; };
+ 570CF8322EEA58DE00696C1B /* AzaharKeyboardConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AzaharKeyboardConfig.h; sourceTree = "<group>"; };
+ 570CF8332EEA58DE00696C1B /* AzaharKeyboardConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AzaharKeyboardConfig.m; sourceTree = "<group>"; };
+ 570CF8842EEB0AC500696C1B /* ShadersListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShadersListViewController.swift; sourceTree = "<group>"; };
+ 570CF88A2EEB0ADB00696C1B /* ShadersListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShadersListView.swift; sourceTree = "<group>"; };
570F590B2DC5B82F007BFD92 /* ThemeSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThemeSettingView.swift; sourceTree = "<group>"; };
570F590D2DC5BAE1007BFD92 /* DesktopIconCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DesktopIconCollectionViewCell.swift; sourceTree = "<group>"; };
570F590F2DC5BAF4007BFD92 /* ThemeColorCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThemeColorCollectionViewCell.swift; sourceTree = "<group>"; };
@@ -1656,6 +1664,19 @@
5780E8382D95914C005130D5 /* hr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hr; path = hr.lproj/Localizable.strings; sourceTree = "<group>"; };
5780E83F2D959168005130D5 /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/InfoPlist.strings; sourceTree = "<group>"; };
5780E8402D959168005130D5 /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/Localizable.strings; sourceTree = "<group>"; };
+ 5781F4542EECF7CF00916D8B /* LibretroShaders.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LibretroShaders.h; sourceTree = "<group>"; };
+ 5781F4552EECF7CF00916D8B /* LibretroShaders.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LibretroShaders.m; sourceTree = "<group>"; };
+ 5781F45F2EED62DA00916D8B /* ShadersListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShadersListCell.swift; sourceTree = "<group>"; };
+ 5781F4642EED639C00916D8B /* ShadersListBlankSlateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShadersListBlankSlateView.swift; sourceTree = "<group>"; };
+ 5781F46D2EED6DBC00916D8B /* Shader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Shader.swift; sourceTree = "<group>"; };
+ 5781F47A2EEE572500916D8B /* ShaderInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderInfoView.swift; sourceTree = "<group>"; };
+ 5781F4822EEE585400916D8B /* ShaderInfoInputCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderInfoInputCell.swift; sourceTree = "<group>"; };
+ 5781F4872EEE590800916D8B /* ShaderInfoAppendCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderInfoAppendCell.swift; sourceTree = "<group>"; };
+ 5781F48C2EEE5C6F00916D8B /* ShaderInfoParameterCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderInfoParameterCell.swift; sourceTree = "<group>"; };
+ 5781F4972EEE71A800916D8B /* ShaderOrderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderOrderView.swift; sourceTree = "<group>"; };
+ 5781F49C2EEE956900916D8B /* ShaderOrderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShaderOrderCell.swift; sourceTree = "<group>"; };
+ 5781F4E92EEFE44800916D8B /* NumbersExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NumbersExtensions.swift; sourceTree = "<group>"; };
+ 5781F5442EF1383F00916D8B /* MelonNXKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MelonNXKit.swift; sourceTree = "<group>"; };
579076E22D8A98FC00ED90FB /* FunctionButtonContainerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FunctionButtonContainerView.swift; sourceTree = "<group>"; };
579076EF2D8AAC2800ED90FB /* TransparentHoleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransparentHoleView.swift; sourceTree = "<group>"; };
57913AF42D5D89CC004D51AA /* TouchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TouchController.swift; sourceTree = "<group>"; };
@@ -1677,7 +1698,6 @@
57A481532E7A8B76001D4598 /* bsnes-jg.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "bsnes-jg.libretro.framework"; path = "../Cores/bsnes-jg.libretro.framework"; sourceTree = SOURCE_ROOT; };
57A481672E7F059D001D4598 /* melondsds.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = melondsds.libretro.framework; path = ../Cores/melondsds.libretro.framework; sourceTree = SOURCE_ROOT; };
57A481692E7F05CD001D4598 /* NDS.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NDS.swift; sourceTree = "<group>"; };
- 57A482002E83E0D4001D4598 /* OriginFilter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OriginFilter.swift; sourceTree = "<group>"; };
57AD35E92D7DEB900092FD03 /* WebViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = "<group>"; };
57AD35EB2D7DEF2E0092FD03 /* SheerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheerExtensions.swift; sourceTree = "<group>"; };
57ADFED92D94F52500502E5C /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = "<group>"; };
@@ -1829,8 +1849,6 @@
57EED0342EC8D9BB003971BD /* JITSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JITSettingView.swift; sourceTree = "<group>"; };
57EED0752ECB8172003971BD /* IconView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IconView.swift; sourceTree = "<group>"; };
57EED0882ECB8A9C003971BD /* DynamicShadow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DynamicShadow.swift; sourceTree = "<group>"; };
- 57F0D7F12DE1634400760F57 /* LibretroPreViewFilter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LibretroPreViewFilter.swift; sourceTree = "<group>"; };
- 57F0D7F42DE174F800760F57 /* FilterNameOnlyCollectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterNameOnlyCollectionCell.swift; sourceTree = "<group>"; };
57F0D8192DE1C2C200760F57 /* GameListStyleCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GameListStyleCollectionViewCell.swift; sourceTree = "<group>"; };
57F0D83C2DE2C59900760F57 /* nestopia.libretro.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = nestopia.libretro.framework; path = ../Cores/nestopia.libretro.framework; sourceTree = SOURCE_ROOT; };
57F0D8412DE2CD8B00760F57 /* NES.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NES.swift; sourceTree = "<group>"; };
@@ -2037,52 +2055,49 @@
path = Views;
sourceTree = "<group>";
};
- 570622DF2D7B32C5004F09E7 /* Filter */ = {
+ 570834312D2E23A80079D410 /* ThirdParty */ = {
isa = PBXGroup;
children = (
- 570622E42D7B333F004F09E7 /* Views */,
- 570622E32D7B32F9004F09E7 /* Models */,
- 570622E02D7B32D9004F09E7 /* ViewControllers */,
+ 57DCE7E62E0D9F170079E3AA /* QuickTableViewController */,
+ 574789B82D4F8760006F0D99 /* SectionIndexView */,
);
- path = Filter;
+ path = ThirdParty;
sourceTree = "<group>";
};
- 570622E02D7B32D9004F09E7 /* ViewControllers */ = {
+ 570CF87D2EEB092B00696C1B /* Shaders */ = {
isa = PBXGroup;
children = (
- 570622E12D7B32E6004F09E7 /* FilterSelectionViewController.swift */,
+ 5781F46B2EED6DB600916D8B /* Models */,
+ 570CF8832EEB0AB800696C1B /* Views */,
+ 570CF8812EEB0AB000696C1B /* ViewControllers */,
);
- path = ViewControllers;
+ path = Shaders;
sourceTree = "<group>";
};
- 570622E32D7B32F9004F09E7 /* Models */ = {
+ 570CF8812EEB0AB000696C1B /* ViewControllers */ = {
isa = PBXGroup;
children = (
- 57F0D7F12DE1634400760F57 /* LibretroPreViewFilter.swift */,
- 57A482002E83E0D4001D4598 /* OriginFilter.swift */,
+ 570CF8842EEB0AC500696C1B /* ShadersListViewController.swift */,
);
- path = Models;
+ path = ViewControllers;
sourceTree = "<group>";
};
- 570622E42D7B333F004F09E7 /* Views */ = {
+ 570CF8832EEB0AB800696C1B /* Views */ = {
isa = PBXGroup;
children = (
- 57F0D7F42DE174F800760F57 /* FilterNameOnlyCollectionCell.swift */,
- 570623692D7BDCD0004F09E7 /* FilterCollectionViewCell.swift */,
- 570622E52D7B3345004F09E7 /* FilterSelectionView.swift */,
+ 5781F49C2EEE956900916D8B /* ShaderOrderCell.swift */,
+ 5781F4972EEE71A800916D8B /* ShaderOrderView.swift */,
+ 5781F48C2EEE5C6F00916D8B /* ShaderInfoParameterCell.swift */,
+ 5781F4872EEE590800916D8B /* ShaderInfoAppendCell.swift */,
+ 5781F4822EEE585400916D8B /* ShaderInfoInputCell.swift */,
+ 5781F47A2EEE572500916D8B /* ShaderInfoView.swift */,
+ 5781F4642EED639C00916D8B /* ShadersListBlankSlateView.swift */,
+ 5781F45F2EED62DA00916D8B /* ShadersListCell.swift */,
+ 570CF88A2EEB0ADB00696C1B /* ShadersListView.swift */,
);
path = Views;
sourceTree = "<group>";
};
- 570834312D2E23A80079D410 /* ThirdParty */ = {
- isa = PBXGroup;
- children = (
- 57DCE7E62E0D9F170079E3AA /* QuickTableViewController */,
- 574789B82D4F8760006F0D99 /* SectionIndexView */,
- );
- path = ThirdParty;
- sourceTree = "<group>";
- };
5720E7702E54103100EC0DA5 /* RetroAchievements */ = {
isa = PBXGroup;
children = (
@@ -3720,6 +3735,14 @@
path = ViewControllers;
sourceTree = "<group>";
};
+ 5781F46B2EED6DB600916D8B /* Models */ = {
+ isa = PBXGroup;
+ children = (
+ 5781F46D2EED6DBC00916D8B /* Shader.swift */,
+ );
+ path = Models;
+ sourceTree = "<group>";
+ };
57913AF62D5D8D70004D51AA /* Controllers */ = {
isa = PBXGroup;
children = (
@@ -3844,6 +3867,10 @@
57BFBE5E2DD332DA00AABF98 /* LibretroCore.m */,
5720E7A12E541BE900EC0DA5 /* CheevosBridge.h */,
5720E7A22E541BF500EC0DA5 /* CheevosBridge.m */,
+ 570CF8322EEA58DE00696C1B /* AzaharKeyboardConfig.h */,
+ 570CF8332EEA58DE00696C1B /* AzaharKeyboardConfig.m */,
+ 5781F4542EECF7CF00916D8B /* LibretroShaders.h */,
+ 5781F4552EECF7CF00916D8B /* LibretroShaders.m */,
57BFBE642DD3330900AABF98 /* keyboard_event_apple.h */,
57BFBE622DD332FF00AABF98 /* input_keymaps.h */,
575F03A62DD59AED00950399 /* manic_joypad.m */,
@@ -4247,7 +4274,6 @@
57913AF62D5D8D70004D51AA /* Controllers */,
57E962ED2D69F4830022914C /* History */,
57DE0FF52D5F44D100CDD82A /* CheatCode */,
- 570622DF2D7B32C5004F09E7 /* Filter */,
577005422D3C918900762E8F /* Play */,
5770069F2D44CB6900762E8F /* Skin */,
57605FF32D20F1C300A98B0C /* Import */,
@@ -4256,6 +4282,7 @@
57047A062D85215400C62FF6 /* Purchase */,
5720E7702E54103100EC0DA5 /* RetroAchievements */,
57D7CF292EA5DB7B00F41540 /* TriggerPro */,
+ 570CF87D2EEB092B00696C1B /* Shaders */,
);
path = Business;
sourceTree = "<group>";
@@ -4340,6 +4367,7 @@
A5A69BA9256E56FF00D51C09 /* Others */ = {
isa = PBXGroup;
children = (
+ 5781F5442EF1383F00916D8B /* MelonNXKit.swift */,
57B5E3222ECCCD0100DE17E9 /* MAMEKit.swift */,
5771C1A72E6207650062EDE0 /* MobyGamesKit.swift */,
5744C6CE2E360AD50088081A /* UIControllerKit.swift */,
@@ -4352,7 +4380,7 @@
57E38E9A2D8C74F9001616D3 /* PermissionKit.swift */,
57EC6AC72D8119D8002920F0 /* SyncManager.swift */,
570F59DB2DC9D528007BFD92 /* ThemeManager.swift */,
- 570622EB2D7BD2F6004F09E7 /* FilterManager.swift */,
+ 570622EB2D7BD2F6004F09E7 /* ShaderManager.swift */,
5726FED72D71B63A00041AD5 /* CacheManager.swift */,
57F6328A2D6EB837007270E8 /* DownloadManager.swift */,
57CCB3CC2D6774F50036476B /* Database.swift */,
@@ -4403,6 +4431,7 @@
A5DE1F73256BDE140099425B /* Extensions */ = {
isa = PBXGroup;
children = (
+ 5781F4E92EEFE44800916D8B /* NumbersExtensions.swift */,
A3A0437F2E9BF57A006442C2 /* UIScrollViewExtensions.swift */,
5720E7C92E5446F700EC0DA5 /* ArrayExtensions.swift */,
57BA59B42E3F13C900110849 /* LibretroCoreExtensions.swift */,
@@ -4416,7 +4445,6 @@
57DA89312D8328420074052A /* CKAccountStatusExtensions.swift */,
57AD35EB2D7DEF2E0092FD03 /* SheerExtensions.swift */,
57F1A9242D7D36CD00D0CC93 /* GameViewExtensions.swift */,
- 5706236B2D7BDFDC004F09E7 /* CIFilterExtensions.swift */,
57B6ECCC2D798419002E619C /* CheatTypeExtensions.swift */,
57B6EBF22D769905002E619C /* ProHUDExtentions.swift */,
57F633032D718C45007270E8 /* LocaleExtensions.swift */,
@@ -5117,12 +5145,14 @@
buildActionMask = 2147483647;
files = (
57BFBE6B2DD3331A00AABF98 /* griffin_glslang.cpp in Sources */,
+ 5781F4572EECF7CF00916D8B /* LibretroShaders.m in Sources */,
57BFBE6C2DD3331A00AABF98 /* griffin_cpp.cpp in Sources */,
57BFBE6E2DD3331A00AABF98 /* griffin_objc.m in Sources */,
57BFBE5F2DD332DA00AABF98 /* LibretroCore.m in Sources */,
57BFBE6D2DD3331A00AABF98 /* griffin.c in Sources */,
5720E7A32E541BF500EC0DA5 /* CheevosBridge.m in Sources */,
57BFBE522DD3328500AABF98 /* JITSupport.m in Sources */,
+ 570CF8352EEA58DE00696C1B /* AzaharKeyboardConfig.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -5149,10 +5179,11 @@
57F633042D718C4E007270E8 /* LocaleExtensions.swift in Sources */,
5706B03B2DFBEC240066122E /* GG.swift in Sources */,
57EC6A6D2D7FC1E4002920F0 /* GameSettingSortCollectionReusableView.swift in Sources */,
+ 5781F48E2EEE5C7A00916D8B /* ShaderInfoParameterCell.swift in Sources */,
5770068B2D438F7400762E8F /* PlayHistoryView.swift in Sources */,
57F1A9342D7D6D7D00D0CC93 /* ExternalSceneDelegate.swift in Sources */,
+ 5781F4652EED639F00916D8B /* ShadersListBlankSlateView.swift in Sources */,
57DFBE8C2E71BC7A008C2161 /* CheevosPopupView.swift in Sources */,
- 5706236C2D7BDFE1004F09E7 /* CIFilterExtensions.swift in Sources */,
57AD35EA2D7DEB9D0092FD03 /* WebViewController.swift in Sources */,
579076F02D8AAC2900ED90FB /* TransparentHoleView.swift in Sources */,
577006832D438E2A00762E8F /* GamesViewController.swift in Sources */,
@@ -5173,6 +5204,7 @@
57605FFE2D20F29000A98B0C /* SettingsViewController.swift in Sources */,
573BECBD2D1D3F6B008AD18D /* HomeTabBar.swift in Sources */,
57EED0772ECB817C003971BD /* IconView.swift in Sources */,
+ 5781F46F2EED6DC100916D8B /* Shader.swift in Sources */,
5720E8462E5C4AA900EC0DA5 /* AchievementsUser.swift in Sources */,
5720E7882E5410D000EC0DA5 /* RetroAchievementsDetailView.swift in Sources */,
A52C1D86257F91550029B15B /* BaseViewController.swift in Sources */,
@@ -5195,12 +5227,10 @@
57913B422D5ED722004D51AA /* GameInfoCoverView.swift in Sources */,
577005582D3CC30A00762E8F /* FileType.swift in Sources */,
575A39D02DCD2B3E00B28FC2 /* UIImageViewExtensions.swift in Sources */,
- 57A482012E83E0D4001D4598 /* OriginFilter.swift in Sources */,
57F6328B2D6EB84A007270E8 /* DownloadManager.swift in Sources */,
57DF849C2D630E5800AA0AAB /* CGSizeExtenstions.swift in Sources */,
5771C28B2E6986C00062EDE0 /* DC.swift in Sources */,
57EC6AB02D80321B002920F0 /* CheatCodeBlankSlateView.swift in Sources */,
- 57F0D7F22DE1634E00760F57 /* LibretroPreViewFilter.swift in Sources */,
A58C3F4F248E44AF0099E068 /* UIDeviceExtensions.swift in Sources */,
5720E7E72E5461CA00EC0DA5 /* RetroAchievementsProfileCell.swift in Sources */,
5720CACC2DB555990090C0F6 /* ThreeDSKeyboardView.swift in Sources */,
@@ -5208,6 +5238,7 @@
57A4816A2E7F05D2001D4598 /* NDS.swift in Sources */,
57F1A9182D7D25B900D0CC93 /* GameInfoView.swift in Sources */,
5754D8882E274AA5001EA5ED /* OnlinePlaySettingViewController.swift in Sources */,
+ 5781F4612EED62E200916D8B /* ShadersListCell.swift in Sources */,
5770069C2D44BDEA00762E8F /* GameCollectionViewCell.swift in Sources */,
577005782D3D60B700762E8F /* GameCheat.swift in Sources */,
574ABEBC2E609FE60045F76E /* GBA.swift in Sources */,
@@ -5244,7 +5275,6 @@
574789BE2D4F8769006F0D99 /* SectionIndexViewItem.swift in Sources */,
57F1A9392D7D704300D0CC93 /* AirPlayViewController.swift in Sources */,
57D0BC0A2E1AD2BE008C3049 /* N64.swift in Sources */,
- 570622E22D7B32F3004F09E7 /* FilterSelectionViewController.swift in Sources */,
57B6EC672D77F9A1002E619C /* SettingCellItem.swift in Sources */,
57E962FA2D6AB4790022914C /* PlayHistoryFavouriteCollectionCell.swift in Sources */,
576F0E152D88209000D2A1BA /* SettingsMembershipGiftView.swift in Sources */,
@@ -5270,6 +5300,7 @@
5726FF812D74AC9D00041AD5 /* RoundAndBorderView.swift in Sources */,
574789912D4CD185006F0D99 /* GameEditToolBar.swift in Sources */,
57CCB35D2D65DB200036476B /* GameSaveEmptyCollectionViewCell.swift in Sources */,
+ 5781F4992EEE71B500916D8B /* ShaderOrderView.swift in Sources */,
577005612D3CD3AC00762E8F /* UTTypeExtensions.swift in Sources */,
57D7CF952EA8E7EE00F41540 /* TriggerProView.swift in Sources */,
5706B0372DFBEC1E0066122E /* SG1000.swift in Sources */,
@@ -5287,7 +5318,6 @@
57F632AB2D6FEC0F007270E8 /* SMBServiceProvider.swift in Sources */,
576F0E172D8820AB00D2A1BA /* MembershipInfoView.swift in Sources */,
57DCE8562E0FC9BC0079E3AA /* CoreSelectionView.swift in Sources */,
- 57F0D7F52DE1750A00760F57 /* FilterNameOnlyCollectionCell.swift in Sources */,
57E9632C2D6B06320022914C /* ImportFooterCollectionReusableView.swift in Sources */,
57B6ECCB2D797CB8002E619C /* AddCheatCodeContentCell.swift in Sources */,
57B6EC632D77F234002E619C /* GameSettingView.swift in Sources */,
@@ -5325,6 +5355,7 @@
57DCE80F2E0D9F300079E3AA /* TapActionCell.swift in Sources */,
57F0D81A2DE1C2D700760F57 /* GameListStyleCollectionViewCell.swift in Sources */,
5706AFBD2DF7D8AF0066122E /* BIOSSelectionViewController.swift in Sources */,
+ 570CF8872EEB0AD200696C1B /* ShadersListViewController.swift in Sources */,
5770064F2D40E45F00762E8F /* CloudDriveBrowserViewController.swift in Sources */,
5739D1BE2DA79D2A0090409D /* DataExtension.swift in Sources */,
57BFBE792DD336FC00AABF98 /* Application.swift in Sources */,
@@ -5346,7 +5377,7 @@
57478A712D52037F006F0D99 /* RandomGameCollectionReusableView.swift in Sources */,
5720E8112E559EE600EC0DA5 /* RetroAchievementCountView.swift in Sources */,
577005B92D3E71BC00762E8F /* ImportService.swift in Sources */,
- 570622EC2D7BD2FE004F09E7 /* FilterManager.swift in Sources */,
+ 570622EC2D7BD2FE004F09E7 /* ShaderManager.swift in Sources */,
57D7CF622EA792FB00F41540 /* AddTriggerButtonView.swift in Sources */,
57B5E3362ECDF75F00DE17E9 /* MAMEBiosView.swift in Sources */,
57B6EC652D77F832002E619C /* SettingItemCollectionViewCell.swift in Sources */,
@@ -5357,6 +5388,7 @@
57E0CC8F2D8F0E1F0027FB8C /* EntryExtensions.swift in Sources */,
577005D62D3F398100762E8F /* PasteImporter.swift in Sources */,
574ABE992E6021550045F76E /* GBC.swift in Sources */,
+ 5781F49E2EEE957200916D8B /* ShaderOrderCell.swift in Sources */,
576F0E0C2D880DE600D2A1BA /* GradientImageView.swift in Sources */,
571BB8072DA4357D00830134 /* ThreeDS.swift in Sources */,
576060222D24E07500A98B0C /* AnimatedGradientView.swift in Sources */,
@@ -5366,7 +5398,6 @@
5744C7182E375BF40088081A /* PM.swift in Sources */,
57F0D8422DE2CD8D00760F57 /* NES.swift in Sources */,
579C114B2D1D0B1900CFD1F5 /* ApplicationSceneDelegate.swift in Sources */,
- 570622E62D7B334E004F09E7 /* FilterSelectionView.swift in Sources */,
57D7CF3F2EA7355900F41540 /* TriggerProListViewController.swift in Sources */,
576F0E072D8806B500D2A1BA /* GameSavePurchaseGuideReusableView.swift in Sources */,
B2C97B502A09F3DE00053A4C /* UIimageExtensions.swift in Sources */,
@@ -5375,6 +5406,7 @@
57B5E3242ECCCD0800DE17E9 /* MAMEKit.swift in Sources */,
57DA89322D8328510074052A /* CKAccountStatusExtensions.swift in Sources */,
5720E7652E540F7200EC0DA5 /* RetroAchievementsLoginView.swift in Sources */,
+ 5781F4EB2EEFE44F00916D8B /* NumbersExtensions.swift in Sources */,
B2383F512A2733DF000563E6 /* UIFontExtensions.swift in Sources */,
57E0C1A72D56580F00962555 /* UITextFieldExtensions.swift in Sources */,
5744C72B2E377C800088081A /* ControllableSideMenu.swift in Sources */,
@@ -5395,15 +5427,16 @@
A392D5B32E9796B900F920E7 /* ServiceIconView.swift in Sources */,
5706AFCF2DF7FC730066122E /* SettingDescriptionCollectionViewCell.swift in Sources */,
575FF91D2D350F210043B2F3 /* PlayViewController.swift in Sources */,
+ 5781F4842EEE586000916D8B /* ShaderInfoInputCell.swift in Sources */,
5706B0452DFBF7DF0066122E /* MCD.swift in Sources */,
57B6EBF32D769910002E619C /* ProHUDExtentions.swift in Sources */,
57BA59B52E3F13D100110849 /* LibretroCoreExtensions.swift in Sources */,
577006892D438F1100762E8F /* GameListView.swift in Sources */,
57D7CF862EA88AC100F41540 /* TriggerButton.swift in Sources */,
+ 5781F47E2EEE572A00916D8B /* ShaderInfoView.swift in Sources */,
57F632FE2D718236007270E8 /* SettingsListView.swift in Sources */,
5744C6CF2E360AF00088081A /* UIControllerKit.swift in Sources */,
57CC35802DC0684500DF7418 /* DownloadManageView.swift in Sources */,
- 5706236A2D7BDCD9004F09E7 /* FilterCollectionViewCell.swift in Sources */,
57913AF52D5D89CF004D51AA /* TouchController.swift in Sources */,
57CC33BE2DBCDF3400DF7418 /* CGRectExtensions.swift in Sources */,
57B5E33B2ECDFDF500DE17E9 /* MAMEBiosViewController.swift in Sources */,
@@ -5412,6 +5445,7 @@
A392D5652E96682C00F920E7 /* DisabledTapSwitch.swift in Sources */,
57F632852D6EB485007270E8 /* UIScreenExtensions.swift in Sources */,
57B6ECC92D797CA3002E619C /* AddCheatCodeTitleCell.swift in Sources */,
+ 5781F5462EF1384500916D8B /* MelonNXKit.swift in Sources */,
5706B0402DFBEC300066122E /* MS.swift in Sources */,
A5A001F324555A5F006E0F0E /* AppDelegate.swift in Sources */,
575A39CE2DCD011500B28FC2 /* OnlineCoverManager.swift in Sources */,
@@ -5439,6 +5473,7 @@
57526B7E2EADEED0003F91BD /* FDS.swift in Sources */,
579213532D95314800E88819 /* BaseNavigationController.swift in Sources */,
57E0CC532D8EACC70027FB8C /* ResourcesKit.swift in Sources */,
+ 570CF88C2EEB0AE000696C1B /* ShadersListView.swift in Sources */,
571F837B2ECFFE4900D52663 /* AzaharAdvancedSettingViewController.swift in Sources */,
5770069A2D44B9B500762E8F /* GamesNavigationView.swift in Sources */,
577006A22D44CB9C00762E8F /* SkinSettingsViewController.swift in Sources */,
@@ -5450,6 +5485,7 @@
577005452D3C91F300762E8F /* AddImportServiceViewController.swift in Sources */,
570F59C02DC91FF5007BFD92 /* ColorPickerView.swift in Sources */,
57B6ECBD2D7953EC002E619C /* CheatCodeListView.swift in Sources */,
+ 5781F4892EEE591500916D8B /* ShaderInfoAppendCell.swift in Sources */,
5726FEE72D71D7FA00041AD5 /* SettingsListFooterCollectionReusableView.swift in Sources */,
57F632B72D700A06007270E8 /* LanServiceEditCollectionViewCell.swift in Sources */,
5754D8C82E27A864001EA5ED /* VB.swift in Sources */,
@@ -5769,7 +5805,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 575A3A422DCEE9F300B28FC2 /* Config-SideloadRelease.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween";
+ ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween AppIcon_Xmas AppIcon_Pixel32";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -6127,7 +6163,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 579AB9D52E6C1118000868CB /* Config-SideloadDebug.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween";
+ ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween AppIcon_Xmas AppIcon_Pixel32";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -6657,7 +6693,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 57E0363F2DBBE17100B222E1 /* Config-DebugSimulator.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween";
+ ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween AppIcon_Xmas AppIcon_Pixel32";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -7135,7 +7171,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 57F456CF2DA98BB8007203AF /* Config-DevRelease.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween";
+ ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween AppIcon_Xmas AppIcon_Pixel32";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -7574,7 +7610,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = B2C97B562A0A420E00053A4C /* Config-Debug.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween";
+ ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween AppIcon_Xmas AppIcon_Pixel32";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
@@ -7819,7 +7855,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = B2C97B572A0A423B00053A4C /* Config-Release.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween";
+ ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES = "AppIcon_Dark AppIcon_Retro AppIcon_Color AppIcon_Halloween AppIcon_Xmas AppIcon_Pixel32";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
diff --git a/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme b/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme
index afc6f72d..d20dd810 100644
--- a/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme
+++ b/ManicEmu/ManicEmu.xcodeproj/xcshareddata/xcschemes/ManicEmu.xcscheme
@@ -31,9 +31,9 @@
</Testables>
</TestAction>
<LaunchAction
- buildConfiguration = "Debug"
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ buildConfiguration = "Release"
+ selectedDebuggerIdentifier = ""
+ selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Pixel32.appiconset/AppIcon_Pixel32.png b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Pixel32.appiconset/AppIcon_Pixel32.png
new file mode 100644
index 00000000..9a078467
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Pixel32.appiconset/AppIcon_Pixel32.png differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Pixel32.appiconset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Pixel32.appiconset/Contents.json
new file mode 100644
index 00000000..f68c0459
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Pixel32.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images" : [
+ {
+ "filename" : "AppIcon_Pixel32.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Xmas.appiconset/AppIcon_Xmas.png b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Xmas.appiconset/AppIcon_Xmas.png
new file mode 100644
index 00000000..32cdd039
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Xmas.appiconset/AppIcon_Xmas.png differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Xmas.appiconset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Xmas.appiconset/Contents.json
new file mode 100644
index 00000000..c956335d
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/AppIcon_Xmas.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images" : [
+ {
+ "filename" : "AppIcon_Xmas.png",
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/Contents.json
new file mode 100644
index 00000000..418bb8e2
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/[email protected]
new file mode 100644
index 00000000..10551fce
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/[email protected]
new file mode 100644
index 00000000..a3852282
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_pixel32.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/Contents.json
new file mode 100644
index 00000000..51c8feaf
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/[email protected]
new file mode 100644
index 00000000..9dede08d
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/[email protected]
new file mode 100644
index 00000000..da8a8e77
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/appIcon_xmas.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/Contents.json
new file mode 100644
index 00000000..87b5a836
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/[email protected]
new file mode 100644
index 00000000..1373d2b4
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/[email protected]
new file mode 100644
index 00000000..8b671dec
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/brand/ns_group_brand.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/Contents.json
new file mode 100644
index 00000000..18355a00
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/[email protected]
new file mode 100644
index 00000000..6ab22cb6
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/[email protected]
new file mode 100644
index 00000000..2db25bed
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_h.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/Contents.json
new file mode 100644
index 00000000..30289086
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/[email protected]
new file mode 100644
index 00000000..8d760208
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/[email protected]
new file mode 100644
index 00000000..40432ee4
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/cover/ns_cover_v.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/Contents.json
new file mode 100644
index 00000000..d57d031e
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/Contents.json
@@ -0,0 +1,22 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/[email protected]
new file mode 100644
index 00000000..6fecad1f
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/[email protected]
new file mode 100644
index 00000000..0700fd47
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_footnote.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/Contents.json
new file mode 100644
index 00000000..7f04167e
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/Contents.json
@@ -0,0 +1,54 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "filename" : "[email protected]",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected]
new file mode 100644
index 00000000..c93fd97f
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected]
new file mode 100644
index 00000000..ffb1c6ed
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected]
new file mode 100644
index 00000000..fc37008c
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected]
new file mode 100644
index 00000000..7bb53cef
Binary files /dev/null and b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Images/playcase_logo.imageset/[email protected] differ
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.app.background.dotted.symbolset/Contents.json b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.app.background.dotted.symbolset/Contents.json
new file mode 100644
index 00000000..e3d2969e
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.app.background.dotted.symbolset/Contents.json
@@ -0,0 +1,12 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ },
+ "symbols" : [
+ {
+ "filename" : "custom.app.background.dotted.svg",
+ "idiom" : "universal"
+ }
+ ]
+}
diff --git a/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.app.background.dotted.symbolset/custom.app.background.dotted.svg b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.app.background.dotted.symbolset/custom.app.background.dotted.svg
new file mode 100644
index 00000000..468e8da2
--- /dev/null
+++ b/ManicEmu/ManicEmu/Resources/Assets.xcassets/Symbols/custom.app.background.dotted.symbolset/custom.app.background.dotted.svg
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--Generator: Apple Native CoreSVG 341-->
+<!DOCTYPE svg
+PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 3300 2200">
+ <!--glyph: "", point size: 100.0, font version: "21.0d6e2", template writer version: "138.0.0"-->
+ <style>.defaults {-sfsymbols-draw-reverses-motion-groups:false}
+
+.monochrome-0 {-sfsymbols-motion-group:0;-sfsymbols-layer-tags:47234a8fdd2e8cbc app.background.dotted}
+
+.multicolor-0:tintColor {-sfsymbols-motion-group:0;-sfsymbols-layer-tags:47234a8fdd2e8cbc app.background.dotted}
+
+.hierarchical-0:primary {-sfsymbols-motion-group:0;-sfsymbols-layer-tags:47234a8fdd2e8cbc app.background.dotted}
+
+.SFSymbolsPreviewWireframe {fill:none;opacity:1.0;stroke:black;stroke-width:0.5}
+</style>
+ <g id="Notes">
+ <rect height="2200" id="artboard" style="fill:white;opacity:1" width="3300" x="0" y="0"/>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="292" y2="292"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 322)">Weight/Scale Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 559.711 322)">Ultralight</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 856.422 322)">Thin</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1153.13 322)">Light</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1449.84 322)">Regular</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 1746.56 322)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2043.27 322)">Semibold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2339.98 322)">Bold</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2636.69 322)">Heavy</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:middle;" transform="matrix(1 0 0 1 2933.4 322)">Black</text>
+ <line style="fill:none;stroke:black;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1903" y2="1903"/>
+ <g transform="matrix(0.2 0 0 0.2 263 1933)">
+ <path d="m46.2402 4.15039c21.7773 0 39.4531-17.627 39.4531-39.4043s-17.6758-39.4043-39.4531-39.4043c-21.7285 0-39.4043 17.627-39.4043 39.4043s17.6758 39.4043 39.4043 39.4043Zm0-7.42188c-17.6758 0-31.9336-14.3066-31.9336-31.9824s14.2578-31.9824 31.9336-31.9824 31.9824 14.3066 31.9824 31.9824-14.3066 31.9824-31.9824 31.9824Zm3.61328-17.7734v-28.4668c0-2.24609-1.46484-3.75977-3.71094-3.75977-2.14844 0-3.61328 1.51367-3.61328 3.75977v28.4668c0 2.19727 1.46484 3.71094 3.61328 3.71094 2.24609 0 3.71094-1.51367 3.71094-3.71094Zm-17.8223-10.5957h28.418c2.19727 0 3.71094-1.46484 3.71094-3.61328 0-2.19727-1.51367-3.71094-3.71094-3.71094h-28.418c-2.24609 0-3.75977 1.51367-3.75977 3.71094 0 2.14844 1.51367 3.61328 3.75977 3.61328Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 281.506 1933)">
+ <path d="m58.5449 14.5508c27.4902 0 49.8047-22.3145 49.8047-49.8047s-22.3145-49.8047-49.8047-49.8047-49.8047 22.3145-49.8047 49.8047 22.3145 49.8047 49.8047 49.8047Zm0-8.30078c-22.9492 0-41.5039-18.5547-41.5039-41.5039s18.5547-41.5039 41.5039-41.5039 41.5039 18.5547 41.5039 41.5039-18.5547 41.5039-41.5039 41.5039Zm4.05273-23.0957v-36.9141c0-2.49023-1.70898-4.19922-4.15039-4.19922-2.39258 0-4.05273 1.70898-4.05273 4.19922v36.9141c0 2.44141 1.66016 4.15039 4.05273 4.15039 2.44141 0 4.15039-1.66016 4.15039-4.15039Zm-22.5586-14.4043h36.9629c2.44141 0 4.15039-1.61133 4.15039-4.00391 0-2.44141-1.70898-4.15039-4.15039-4.15039h-36.9629c-2.49023 0-4.15039 1.70898-4.15039 4.15039 0 2.39258 1.66016 4.00391 4.15039 4.00391Z"/>
+ </g>
+ <g transform="matrix(0.2 0 0 0.2 304.924 1933)">
+ <path d="m74.8535 28.3203c35.1074 0 63.623-28.4668 63.623-63.5742s-28.5156-63.623-63.623-63.623-63.5742 28.5156-63.5742 63.623 28.4668 63.5742 63.5742 63.5742Zm0-9.08203c-30.127 0-54.4922-24.3652-54.4922-54.4922s24.3652-54.4922 54.4922-54.4922 54.4922 24.3652 54.4922 54.4922-24.3652 54.4922-54.4922 54.4922Zm4.44336-30.3223v-48.4863c0-2.73438-1.85547-4.63867-4.54102-4.63867-2.58789 0-4.44336 1.9043-4.44336 4.63867v48.4863c0 2.68555 1.85547 4.58984 4.44336 4.58984 2.68555 0 4.54102-1.85547 4.54102-4.58984Zm-28.7109-19.7754h48.4863c2.68555 0 4.58984-1.80664 4.58984-4.39453 0-2.73438-1.85547-4.58984-4.58984-4.58984h-48.4863c-2.73438 0-4.58984 1.85547-4.58984 4.58984 0 2.58789 1.85547 4.39453 4.58984 4.39453Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 263 1953)">Design Variations</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1971)">Symbols are supported in up to nine weights and three scales.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1989)">For optimal layout with text and other symbols, vertically align</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 2007)">symbols with the adjacent text.</text>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="776" x2="776" y1="1919" y2="1933"/>
+ <g transform="matrix(0.2 0 0 0.2 776 1933)">
+ <path d="m16.5527 0.78125c2.58789 0 3.85742-0.976562 4.78516-3.71094l20.5566-57.5195h0.244141l20.6055 57.5195c0.927734 2.73438 2.19727 3.71094 4.73633 3.71094 2.58789 0 4.24805-1.5625 4.24805-4.00391 0-0.830078-0.146484-1.61133-0.537109-2.63672l-22.9004-60.9863c-1.12305-2.97852-3.125-4.49219-6.25-4.49219-3.02734 0-5.07812 1.46484-6.15234 4.44336l-22.9004 61.084c-0.390625 1.02539-0.537109 1.80664-0.537109 2.63672 0 2.44141 1.5625 3.95508 4.10156 3.95508Zm10.2051-20.9473h30.6641c2.00195 0 3.66211-1.66016 3.66211-3.66211 0-2.05078-1.66016-3.66211-3.66211-3.66211h-30.6641c-2.00195 0-3.66211 1.61133-3.66211 3.66211 0 2.00195 1.66016 3.66211 3.66211 3.66211Z"/>
+ </g>
+ <line style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="792.836" x2="792.836" y1="1919" y2="1933"/>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 776 1953)">Margins</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1971)">Leading and trailing margins on the left and right side of each symbol</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 1989)">can be adjusted by modifying the x-location of the margin guidelines.</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2007)">Modifications are automatically applied proportionally to all</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 776 2025)">scales and weights.</text>
+ <g transform="matrix(0.2 0 0 0.2 1289 1933)">
+ <path d="m14.209 13.1348 7.86133 7.86133c4.29688 4.39453 9.32617 4.10156 13.8672-1.02539l60.6934-68.2129-4.88281-4.88281-60.2539 67.6758c-1.80664 1.95312-3.4668 2.44141-5.81055 0.0976562l-5.17578-5.12695c-2.29492-2.29492-1.80664-3.95508 0.195312-5.81055l67.4805-62.1582-4.88281-4.83398-68.0664 62.5977c-4.98047 4.58984-5.32227 9.47266-1.02539 13.8184Zm44.873-97.4609c-2.05078 2.00195-2.24609 4.88281-1.07422 6.78711 1.12305 1.80664 3.4668 3.02734 6.5918 2.24609 5.85938-1.66016 12.5977-2.39258 18.8965 0.927734l-2.68555 7.12891c-1.61133 4.00391-0.732422 6.88477 1.70898 9.42383l10.2539 10.3027c2.34375 2.39258 4.54102 2.44141 7.08008 1.95312l4.44336-0.732422 2.58789 2.53906-0.195312 2.24609c-0.0976562 2.29492 0.537109 4.29688 2.7832 6.49414l3.36914 3.32031c2.29492 2.29492 5.51758 2.49023 7.8125 0.195312l12.9883-13.0371c2.29492-2.34375 2.14844-5.37109-0.195312-7.66602l-3.41797-3.41797c-2.19727-2.19727-4.05273-3.02734-6.34766-2.88086l-2.34375 0.244141-2.44141-2.44141 1.02539-4.6875c0.634766-2.73438-0.244141-4.98047-2.88086-7.61719l-11.2793-11.1816c-12.9395-12.8418-35.5957-11.0352-46.6797-0.146484Zm7.08008 2.05078c8.78906-6.39648 25.9766-5.66406 33.6914 1.95312l12.3047 12.207c1.02539 1.02539 1.2207 1.80664 0.927734 3.32031l-1.46484 6.64062 6.73828 6.68945 4.39453-0.244141c1.12305-0.0488281 1.51367 0.0488281 2.34375 0.878906l2.53906 2.49023-10.8398 10.8398-2.49023-2.49023c-0.830078-0.878906-0.976562-1.2207-0.927734-2.39258l0.292969-4.3457-6.68945-6.73828-6.83594 1.17188c-1.41602 0.292969-2.05078 0.195312-3.17383-0.878906l-8.93555-8.88672c-1.07422-1.02539-1.17188-1.70898-0.488281-3.36914l4.58984-11.4746c-6.10352-6.34766-17.041-7.51953-25.5859-4.58984-0.683594 0.244141-0.927734-0.390625-0.390625-0.78125Z"/>
+ </g>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;font-weight:bold;" transform="matrix(1 0 0 1 1289 1953)">Exporting</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1971)">Symbols should be outlined when exporting to ensure the</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 1289 1989)">design is preserved when submitting to Xcode.</text>
+ <text id="template-version" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1933)">Template v.7.0</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1951)">Requires Xcode 17 or greater</text>
+ <text id="descriptive-name" style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1969)">Generated from custom.app.background.dotted</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;text-anchor:end;" transform="matrix(1 0 0 1 3036 1987)">Typeset at 100.0 points</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 726)">Small</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1156)">Medium</text>
+ <text style="stroke:none;fill:black;font-family:sans-serif;font-size:13;" transform="matrix(1 0 0 1 263 1586)">Large</text>
+ </g>
+ <g id="Guides">
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 696)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="696" y2="696"/>
+ <line id="Capline-S" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="625.541" y2="625.541"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1126)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1126" y2="1126"/>
+ <line id="Capline-M" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1055.54" y2="1055.54"/>
+ <g id="H-reference" style="fill:#27AAE1;stroke:none;" transform="matrix(1 0 0 1 339 1556)">
+ <path d="M0.993654 0L3.63775 0L29.3281-67.1323L30.0303-67.1323L30.0303-70.459L28.1226-70.459ZM11.6885-24.4799L46.9815-24.4799L46.2315-26.7285L12.4385-26.7285ZM55.1196 0L57.7637 0L30.6382-70.459L29.4326-70.459L29.4326-67.1323Z"/>
+ </g>
+ <line id="Baseline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1556" y2="1556"/>
+ <line id="Capline-L" style="fill:none;stroke:#27AAE1;opacity:1;stroke-width:0.5;" x1="263" x2="3036" y1="1485.54" y2="1485.54"/>
+ <line id="right-margin-Black-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="2978.81" x2="2978.81" y1="600.785" y2="720.121"/>
+ <line id="left-margin-Black-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="2887.99" x2="2887.99" y1="600.785" y2="720.121"/>
+ <line id="right-margin-Regular-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1494.94" x2="1494.94" y1="600.785" y2="720.121"/>
+ <line id="left-margin-Regular-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="1404.75" x2="1404.75" y1="600.785" y2="720.121"/>
+ <line id="right-margin-Ultralight-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="604.372" x2="604.372" y1="600.785" y2="720.121"/>
+ <line id="left-margin-Ultralight-S" style="fill:none;stroke:#00AEEF;stroke-width:0.5;opacity:1.0;" x1="515.05" x2="515.05" y1="600.785" y2="720.121"/>
+ </g>
+ <g id="Symbols">
+ <g id="Black-S" transform="matrix(1 0 0 1 2887.99 696)">
+ <path class="monochrome-0 multicolor-0:tintColor hierarchical-0:primary SFSymbolsPreviewWireframe" d="M25.7812-65.5762C27.4414-65.5762 28.7598-66.8945 28.7598-68.5547C28.7598-70.2148 27.4414-71.5332 25.7812-71.5332C24.1211-71.5332 22.8027-70.2148 22.8027-68.5547C22.8027-66.8945 24.1211-65.5762 25.7812-65.5762ZM38.8672-65.5762C40.5273-65.5762 41.8457-66.8945 41.8457-68.5547C41.8457-70.2148 40.5273-71.5332 38.8672-71.5332C37.2559-71.5332 35.9375-70.2148 35.9375-68.5547C35.9375-66.8945 37.2559-65.5762 38.8672-65.5762ZM51.9531-65.5762C53.5645-65.5762 54.8828-66.8945 54.8828-68.5547C54.8828-70.2148 53.5645-71.5332 51.9531-71.5332C50.293-71.5332 48.9746-70.2148 48.9746-68.5547C48.9746-66.8945 50.293-65.5762 51.9531-65.5762ZM65.0879-65.5762C66.748-65.5762 68.0664-66.8945 68.0664-68.5547C68.0664-70.2148 66.748-71.5332 65.0879-71.5332C63.4277-71.5332 62.1094-70.2148 62.1094-68.5547C62.1094-66.8945 63.4277-65.5762 65.0879-65.5762ZM12.6953-52.2461C14.3555-52.2461 15.6738-53.5645 15.6738-55.2246C15.6738-56.8848 14.3555-58.2031 12.6953-58.2031C11.084-58.2031 9.76562-56.8848 9.76562-55.2246C9.76562-53.5645 11.084-52.2461 12.6953-52.2461ZM25.7812-51.5137C27.8809-51.5137 29.4922-53.125 29.4922-55.2246C29.4922-57.3242 27.8809-58.9844 25.7812-58.9844C23.6816-58.9844 22.0215-57.3242 22.0215-55.2246C22.0215-53.125 23.6816-51.5137 25.7812-51.5137ZM38.8672-50.3906C41.5039-50.3906 43.7012-52.5879 43.7012-55.2246C43.7012-57.8613 41.5039-60.0586 38.8672-60.0586C36.2305-60.0586 34.0332-57.8613 34.0332-55.2246C34.0332-52.5879 36.2305-50.3906 38.8672-50.3906ZM51.9531-50.3906C54.5898-50.3906 56.7871-52.5879 56.7871-55.2246C56.7871-57.8613 54.5898-60.0586 51.9531-60.0586C49.3164-60.0586 47.1191-57.8613 47.1191-55.2246C47.1191-52.5879 49.3164-50.3906 51.9531-50.3906ZM65.0879-51.5137C67.1875-51.5137 68.8477-53.125 68.8477-55.2246C68.8477-57.3242 67.1875-58.9844 65.0879-58.9844C62.9883-58.9844 61.377-57.3242 61.377-55.2246C61.377-53.125 62.9883-51.5137 65.0879-51.5137ZM78.125-52.2461C79.7363-52.2461 81.0547-53.5645 81.0547-55.2246C81.0547-56.8848 79.7363-58.2031 78.125-58.2031C76.4648-58.2031 75.1465-56.8848 75.1465-55.2246C75.1465-53.5645 76.4648-52.2461 78.125-52.2461ZM12.6953-38.9648C14.3555-38.9648 15.6738-40.2832 15.6738-41.9434C15.6738-43.6035 14.3555-44.9219 12.6953-44.9219C11.084-44.9219 9.76562-43.6035 9.76562-41.9434C9.76562-40.2832 11.084-38.9648 12.6953-38.9648ZM25.7812-37.1094C28.418-37.1094 30.6152-39.3066 30.6152-41.9434C30.6152-44.5801 28.418-46.7773 25.7812-46.7773C23.1445-46.7773 20.9473-44.5801 20.9473-41.9434C20.9473-39.3066 23.1445-37.1094 25.7812-37.1094ZM65.0879-37.1094C67.7246-37.1094 69.9219-39.3066 69.9219-41.9434C69.9219-44.5801 67.7246-46.7773 65.0879-46.7773C62.4512-46.7773 60.2539-44.5801 60.2539-41.9434C60.2539-39.3066 62.4512-37.1094 65.0879-37.1094ZM78.125-38.9648C79.7363-38.9648 81.0547-40.2832 81.0547-41.9434C81.0547-43.6035 79.7363-44.9219 78.125-44.9219C76.4648-44.9219 75.1465-43.6035 75.1465-41.9434C75.1465-40.2832 76.4648-38.9648 78.125-38.9648ZM12.6953-25.6348C14.3555-25.6348 15.6738-26.9531 15.6738-28.6133C15.6738-30.2734 14.3555-31.5918 12.6953-31.5918C11.084-31.5918 9.76562-30.2734 9.76562-28.6133C9.76562-26.9531 11.084-25.6348 12.6953-25.6348ZM25.7812-23.7793C28.418-23.7793 30.6152-25.9766 30.6152-28.6133C30.6152-31.25 28.418-33.4473 25.7812-33.4473C23.1445-33.4473 20.9473-31.25 20.9473-28.6133C20.9473-25.9766 23.1445-23.7793 25.7812-23.7793ZM65.0879-23.7793C67.7246-23.7793 69.9219-25.9766 69.9219-28.6133C69.9219-31.25 67.7246-33.4473 65.0879-33.4473C62.4512-33.4473 60.2539-31.25 60.2539-28.6133C60.2539-25.9766 62.4512-23.7793 65.0879-23.7793ZM78.125-25.6348C79.7363-25.6348 81.0547-26.9531 81.0547-28.6133C81.0547-30.2734 79.7363-31.5918 78.125-31.5918C76.4648-31.5918 75.1465-30.2734 75.1465-28.6133C75.1465-26.9531 76.4648-25.6348 78.125-25.6348ZM12.6953-12.2559C14.3555-12.2559 15.6738-13.5742 15.6738-15.2344C15.6738-16.8945 14.3555-18.2129 12.6953-18.2129C11.084-18.2129 9.76562-16.8945 9.76562-15.2344C9.76562-13.5742 11.084-12.2559 12.6953-12.2559ZM25.7812-11.4746C27.8809-11.4746 29.4922-13.1348 29.4922-15.2344C29.4922-17.334 27.8809-18.9453 25.7812-18.9453C23.6816-18.9453 22.0215-17.334 22.0215-15.2344C22.0215-13.1348 23.6816-11.4746 25.7812-11.4746ZM38.8672-10.4004C41.5039-10.4004 43.7012-12.5977 43.7012-15.2344C43.7012-17.8711 41.5039-20.0684 38.8672-20.0684C36.2305-20.0684 34.0332-17.8711 34.0332-15.2344C34.0332-12.5977 36.2305-10.4004 38.8672-10.4004ZM51.9531-10.4004C54.5898-10.4004 56.7871-12.5977 56.7871-15.2344C56.7871-17.8711 54.5898-20.0684 51.9531-20.0684C49.3164-20.0684 47.1191-17.8711 47.1191-15.2344C47.1191-12.5977 49.3164-10.4004 51.9531-10.4004ZM65.0879-11.4746C67.1875-11.4746 68.8477-13.1348 68.8477-15.2344C68.8477-17.334 67.1875-18.9453 65.0879-18.9453C62.9883-18.9453 61.377-17.334 61.377-15.2344C61.377-13.1348 62.9883-11.4746 65.0879-11.4746ZM78.125-12.2559C79.7363-12.2559 81.0547-13.5742 81.0547-15.2344C81.0547-16.8945 79.7363-18.2129 78.125-18.2129C76.4648-18.2129 75.1465-16.8945 75.1465-15.2344C75.1465-13.5742 76.4648-12.2559 78.125-12.2559ZM25.7812 1.12305C27.4414 1.12305 28.7598-0.195312 28.7598-1.85547C28.7598-3.51562 27.4414-4.83398 25.7812-4.83398C24.1211-4.83398 22.8027-3.51562 22.8027-1.85547C22.8027-0.195312 24.1211 1.12305 25.7812 1.12305ZM38.8672 1.12305C40.5273 1.12305 41.8457-0.195312 41.8457-1.85547C41.8457-3.51562 40.5273-4.83398 38.8672-4.83398C37.2559-4.83398 35.9375-3.51562 35.9375-1.85547C35.9375-0.195312 37.2559 1.12305 38.8672 1.12305ZM51.9531 1.12305C53.5645 1.12305 54.8828-0.195312 54.8828-1.85547C54.8828-3.51562 53.5645-4.83398 51.9531-4.83398C50.293-4.83398 48.9746-3.51562 48.9746-1.85547C48.9746-0.195312 50.293 1.12305 51.9531 1.12305ZM65.0879 1.12305C66.748 1.12305 68.0664-0.195312 68.0664-1.85547C68.0664-3.51562 66.748-4.83398 65.0879-4.83398C63.4277-4.83398 62.1094-3.51562 62.1094-1.85547C62.1094-0.195312 63.4277 1.12305 65.0879 1.12305ZM38.916-37.1582C41.5527-37.1582 43.75-39.3555 43.75-41.9922C43.75-44.6289 41.5527-46.8262 38.916-46.8262C36.2793-46.8262 34.082-44.6289 34.082-41.9922C34.082-39.3555 36.2793-37.1582 38.916-37.1582ZM51.9531-37.1582C54.5898-37.1582 56.7871-39.3555 56.7871-41.9922C56.7871-44.6289 54.5898-46.8262 51.9531-46.8262C49.3164-46.8262 47.1191-44.6289 47.1191-41.9922C47.1191-39.3555 49.3164-37.1582 51.9531-37.1582ZM38.916-23.8281C41.5527-23.8281 43.75-26.0254 43.75-28.6621C43.75-31.2988 41.5527-33.4961 38.916-33.4961C36.2793-33.4961 34.082-31.2988 34.082-28.6621C34.082-26.0254 36.2793-23.8281 38.916-23.8281ZM51.9531-23.8281C54.5898-23.8281 56.7871-26.0254 56.7871-28.6621C56.7871-31.2988 54.5898-33.4961 51.9531-33.4961C49.3164-33.4961 47.1191-31.2988 47.1191-28.6621C47.1191-26.0254 49.3164-23.8281 51.9531-23.8281Z"/>
+ </g>
+ <g id="Regular-S" transform="matrix(1 0 0 1 1404.75 696)">
+ <path class="monochrome-0 multicolor-0:tintColor hierarchical-0:primary SFSymbolsPreviewWireframe" d="M25.4395-65.9668C26.9043-65.9668 28.0762-67.0898 28.0762-68.5547C28.0762-70.0195 26.9043-71.1426 25.4395-71.1426C24.0234-71.1426 22.8516-70.0195 22.8516-68.5547C22.8516-67.0898 24.0234-65.9668 25.4395-65.9668ZM38.5254-65.9668C39.9902-65.9668 41.1621-67.0898 41.1621-68.5547C41.1621-70.0195 39.9902-71.1426 38.5254-71.1426C37.1094-71.1426 35.9375-70.0195 35.9375-68.5547C35.9375-67.0898 37.1094-65.9668 38.5254-65.9668ZM51.6113-65.9668C53.0762-65.9668 54.248-67.0898 54.248-68.5547C54.248-70.0195 53.0762-71.1426 51.6113-71.1426C50.1953-71.1426 49.0234-70.0195 49.0234-68.5547C49.0234-67.0898 50.1953-65.9668 51.6113-65.9668ZM64.6973-65.9668C66.1621-65.9668 67.334-67.0898 67.334-68.5547C67.334-70.0195 66.1621-71.1426 64.6973-71.1426C63.2812-71.1426 62.1094-70.0195 62.1094-68.5547C62.1094-67.0898 63.2812-65.9668 64.6973-65.9668ZM12.3535-52.6367C13.8184-52.6367 14.9902-53.7598 14.9902-55.2246C14.9902-56.6895 13.8184-57.8125 12.3535-57.8125C10.9375-57.8125 9.76562-56.6895 9.76562-55.2246C9.76562-53.7598 10.9375-52.6367 12.3535-52.6367ZM25.4395-51.9531C27.2949-51.9531 28.7598-53.3691 28.7598-55.2246C28.7598-57.0801 27.2949-58.4961 25.4395-58.4961C23.6328-58.4961 22.168-57.0801 22.168-55.2246C22.168-53.3691 23.6328-51.9531 25.4395-51.9531ZM38.5254-50.9766C40.8691-50.9766 42.7734-52.9297 42.7734-55.2246C42.7734-57.5195 40.8691-59.4727 38.5254-59.4727C36.2305-59.4727 34.3262-57.5195 34.3262-55.2246C34.3262-52.9297 36.2305-50.9766 38.5254-50.9766ZM51.6113-50.9766C53.9551-50.9766 55.8594-52.9297 55.8594-55.2246C55.8594-57.5195 53.9551-59.4727 51.6113-59.4727C49.3164-59.4727 47.4121-57.5195 47.4121-55.2246C47.4121-52.9297 49.3164-50.9766 51.6113-50.9766ZM64.6973-51.9531C66.5527-51.9531 68.0176-53.3691 68.0176-55.2246C68.0176-57.0801 66.5527-58.4961 64.6973-58.4961C62.8906-58.4961 61.4258-57.0801 61.4258-55.2246C61.4258-53.3691 62.8906-51.9531 64.6973-51.9531ZM77.7832-52.6367C79.248-52.6367 80.4199-53.7598 80.4199-55.2246C80.4199-56.6895 79.248-57.8125 77.7832-57.8125C76.3672-57.8125 75.1953-56.6895 75.1953-55.2246C75.1953-53.7598 76.3672-52.6367 77.7832-52.6367ZM12.3535-39.2578C13.8184-39.2578 14.9902-40.4297 14.9902-41.8945C14.9902-43.3594 13.8184-44.4824 12.3535-44.4824C10.9375-44.4824 9.76562-43.3594 9.76562-41.8945C9.76562-40.4297 10.9375-39.2578 12.3535-39.2578ZM25.4395-37.6465C27.7832-37.6465 29.6875-39.5996 29.6875-41.8945C29.6875-44.1895 27.7832-46.1426 25.4395-46.1426C23.1445-46.1426 21.2402-44.1895 21.2402-41.8945C21.2402-39.5996 23.1445-37.6465 25.4395-37.6465ZM64.6973-37.6465C67.041-37.6465 68.9453-39.5996 68.9453-41.8945C68.9453-44.1895 67.041-46.1426 64.6973-46.1426C62.4023-46.1426 60.498-44.1895 60.498-41.8945C60.498-39.5996 62.4023-37.6465 64.6973-37.6465ZM77.7832-39.2578C79.248-39.2578 80.4199-40.4297 80.4199-41.8945C80.4199-43.3594 79.248-44.4824 77.7832-44.4824C76.3672-44.4824 75.1953-43.3594 75.1953-41.8945C75.1953-40.4297 76.3672-39.2578 77.7832-39.2578ZM12.3535-25.9766C13.8184-25.9766 14.9902-27.0996 14.9902-28.5645C14.9902-30.0293 13.8184-31.1523 12.3535-31.1523C10.9375-31.1523 9.76562-30.0293 9.76562-28.5645C9.76562-27.0996 10.9375-25.9766 12.3535-25.9766ZM25.4395-24.3164C27.7832-24.3164 29.6875-26.2695 29.6875-28.5645C29.6875-30.8594 27.7832-32.8125 25.4395-32.8125C23.1445-32.8125 21.2402-30.8594 21.2402-28.5645C21.2402-26.2695 23.1445-24.3164 25.4395-24.3164ZM64.6973-24.3164C67.041-24.3164 68.9453-26.2695 68.9453-28.5645C68.9453-30.8594 67.041-32.8125 64.6973-32.8125C62.4023-32.8125 60.498-30.8594 60.498-28.5645C60.498-26.2695 62.4023-24.3164 64.6973-24.3164ZM77.7832-25.9766C79.248-25.9766 80.4199-27.0996 80.4199-28.5645C80.4199-30.0293 79.248-31.1523 77.7832-31.1523C76.3672-31.1523 75.1953-30.0293 75.1953-28.5645C75.1953-27.0996 76.3672-25.9766 77.7832-25.9766ZM12.3535-12.5977C13.8184-12.5977 14.9902-13.7695 14.9902-15.2344C14.9902-16.6992 13.8184-17.8223 12.3535-17.8223C10.9375-17.8223 9.76562-16.6992 9.76562-15.2344C9.76562-13.7695 10.9375-12.5977 12.3535-12.5977ZM25.4395-11.9629C27.2949-11.9629 28.7598-13.3789 28.7598-15.2344C28.7598-17.041 27.2949-18.5059 25.4395-18.5059C23.6328-18.5059 22.168-17.041 22.168-15.2344C22.168-13.3789 23.6328-11.9629 25.4395-11.9629ZM38.5254-10.9863C40.8691-10.9863 42.7734-12.9395 42.7734-15.2344C42.7734-17.5293 40.8691-19.4824 38.5254-19.4824C36.2305-19.4824 34.3262-17.5293 34.3262-15.2344C34.3262-12.9395 36.2305-10.9863 38.5254-10.9863ZM51.6113-10.9863C53.9551-10.9863 55.8594-12.9395 55.8594-15.2344C55.8594-17.5293 53.9551-19.4824 51.6113-19.4824C49.3164-19.4824 47.4121-17.5293 47.4121-15.2344C47.4121-12.9395 49.3164-10.9863 51.6113-10.9863ZM64.6973-11.9629C66.5527-11.9629 68.0176-13.3789 68.0176-15.2344C68.0176-17.041 66.5527-18.5059 64.6973-18.5059C62.8906-18.5059 61.4258-17.041 61.4258-15.2344C61.4258-13.3789 62.8906-11.9629 64.6973-11.9629ZM77.7832-12.5977C79.248-12.5977 80.4199-13.7695 80.4199-15.2344C80.4199-16.6992 79.248-17.8223 77.7832-17.8223C76.3672-17.8223 75.1953-16.6992 75.1953-15.2344C75.1953-13.7695 76.3672-12.5977 77.7832-12.5977ZM25.4395 0.732422C26.9043 0.732422 28.0762-0.439453 28.0762-1.9043C28.0762-3.36914 26.9043-4.49219 25.4395-4.49219C24.0234-4.49219 22.8516-3.36914 22.8516-1.9043C22.8516-0.439453 24.0234 0.732422 25.4395 0.732422ZM38.5254 0.732422C39.9902 0.732422 41.1621-0.439453 41.1621-1.9043C41.1621-3.36914 39.9902-4.49219 38.5254-4.49219C37.1094-4.49219 35.9375-3.36914 35.9375-1.9043C35.9375-0.439453 37.1094 0.732422 38.5254 0.732422ZM51.6113 0.732422C53.0762 0.732422 54.248-0.439453 54.248-1.9043C54.248-3.36914 53.0762-4.49219 51.6113-4.49219C50.1953-4.49219 49.0234-3.36914 49.0234-1.9043C49.0234-0.439453 50.1953 0.732422 51.6113 0.732422ZM64.6973 0.732422C66.1621 0.732422 67.334-0.439453 67.334-1.9043C67.334-3.36914 66.1621-4.49219 64.6973-4.49219C63.2812-4.49219 62.1094-3.36914 62.1094-1.9043C62.1094-0.439453 63.2812 0.732422 64.6973 0.732422ZM38.5254-37.6465C40.8691-37.6465 42.7734-39.5996 42.7734-41.8945C42.7734-44.1895 40.8691-46.1426 38.5254-46.1426C36.2305-46.1426 34.3262-44.1895 34.3262-41.8945C34.3262-39.5996 36.2305-37.6465 38.5254-37.6465ZM51.6113-37.6465C53.9551-37.6465 55.8594-39.5996 55.8594-41.8945C55.8594-44.1895 53.9551-46.1426 51.6113-46.1426C49.3164-46.1426 47.4121-44.1895 47.4121-41.8945C47.4121-39.5996 49.3164-37.6465 51.6113-37.6465ZM38.5254-24.3164C40.8691-24.3164 42.7734-26.2695 42.7734-28.5645C42.7734-30.8594 40.8691-32.8125 38.5254-32.8125C36.2305-32.8125 34.3262-30.8594 34.3262-28.5645C34.3262-26.2695 36.2305-24.3164 38.5254-24.3164ZM51.6113-24.3164C53.9551-24.3164 55.8594-26.2695 55.8594-28.5645C55.8594-30.8594 53.9551-32.8125 51.6113-32.8125C49.3164-32.8125 47.4121-30.8594 47.4121-28.5645C47.4121-26.2695 49.3164-24.3164 51.6113-24.3164Z"/>
+ </g>
+ <g id="Ultralight-S" transform="matrix(1 0 0 1 515.05 696)">
+ <path class="monochrome-0 multicolor-0:tintColor hierarchical-0:primary SFSymbolsPreviewWireframe" d="M25.0308-66.3755C26.2231-66.3755 27.2134-67.3623 27.2134-68.5547C27.2134-69.7471 26.2231-70.7339 25.0308-70.7339C23.8418-70.7339 22.8516-69.7471 22.8516-68.5547C22.8516-67.3623 23.8418-66.3755 25.0308-66.3755ZM38.1167-66.3755C39.3091-66.3755 40.2993-67.3623 40.2993-68.5547C40.2993-69.7471 39.3091-70.7339 38.1167-70.7339C36.9277-70.7339 35.9375-69.7471 35.9375-68.5547C35.9375-67.3623 36.9277-66.3755 38.1167-66.3755ZM51.2026-66.3755C52.395-66.3755 53.3853-67.3623 53.3853-68.5547C53.3853-69.7471 52.395-70.7339 51.2026-70.7339C50.0137-70.7339 49.0234-69.7471 49.0234-68.5547C49.0234-67.3623 50.0137-66.3755 51.2026-66.3755ZM64.2886-66.3755C65.481-66.3755 66.4712-67.3623 66.4712-68.5547C66.4712-69.7471 65.481-70.7339 64.2886-70.7339C63.0996-70.7339 62.1094-69.7471 62.1094-68.5547C62.1094-67.3623 63.0996-66.3755 64.2886-66.3755ZM11.9448-53.0454C13.1372-53.0454 14.1274-54.0322 14.1274-55.2246C14.1274-56.417 13.1372-57.4038 11.9448-57.4038C10.7559-57.4038 9.76562-56.417 9.76562-55.2246C9.76562-54.0322 10.7559-53.0454 11.9448-53.0454ZM25.0308-52.498C26.523-52.498 27.7608-53.7324 27.7608-55.2246C27.7608-56.7168 26.523-57.9512 25.0308-57.9512C23.542-57.9512 22.3042-56.7168 22.3042-55.2246C22.3042-53.7324 23.542-52.498 25.0308-52.498ZM38.1167-52.0664C39.8701-52.0664 41.2749-53.4746 41.2749-55.2246C41.2749-56.9746 39.8701-58.3828 38.1167-58.3828C36.3667-58.3828 34.9165-56.9746 34.9165-55.2246C34.9165-53.4746 36.3667-52.0664 38.1167-52.0664ZM51.2026-52.0664C52.9561-52.0664 54.3609-53.4746 54.3609-55.2246C54.3609-56.9746 52.9561-58.3828 51.2026-58.3828C49.4526-58.3828 48.0024-56.9746 48.0024-55.2246C48.0024-53.4746 49.4526-52.0664 51.2026-52.0664ZM64.2886-52.498C65.7808-52.498 67.0186-53.7324 67.0186-55.2246C67.0186-56.7168 65.7808-57.9512 64.2886-57.9512C62.7998-57.9512 61.562-56.7168 61.562-55.2246C61.562-53.7324 62.7998-52.498 64.2886-52.498ZM77.3745-53.0454C78.5669-53.0454 79.5571-54.0322 79.5571-55.2246C79.5571-56.417 78.5669-57.4038 77.3745-57.4038C76.1855-57.4038 75.1953-56.417 75.1953-55.2246C75.1953-54.0322 76.1855-53.0454 77.3745-53.0454ZM11.9448-39.5757C13.1372-39.5757 14.1274-40.5659 14.1274-41.7583C14.1274-42.9507 13.1372-44.0737 11.9448-44.0737C10.7559-44.0737 9.76562-42.9507 9.76562-41.7583C9.76562-40.5659 10.7559-39.5757 11.9448-39.5757ZM25.0308-38.7363C26.7842-38.7363 28.189-40.1445 28.189-41.8945C28.189-43.6445 26.7842-45.0527 25.0308-45.0527C23.2808-45.0527 21.8306-43.6445 21.8306-41.8945C21.8306-40.1445 23.2808-38.7363 25.0308-38.7363ZM64.2886-38.7363C66.042-38.7363 67.4468-40.1445 67.4468-41.8945C67.4468-43.6445 66.042-45.0527 64.2886-45.0527C62.5386-45.0527 61.0884-43.6445 61.0884-41.8945C61.0884-40.1445 62.5386-38.7363 64.2886-38.7363ZM77.3745-39.5757C78.5669-39.5757 79.5571-40.5659 79.5571-41.7583C79.5571-42.9507 78.5669-44.0737 77.3745-44.0737C76.1855-44.0737 75.1953-42.9507 75.1953-41.7583C75.1953-40.5659 76.1855-39.5757 77.3745-39.5757ZM11.9448-26.3853C13.1372-26.3853 14.1274-27.3721 14.1274-28.5645C14.1274-29.7568 13.1372-30.7437 11.9448-30.7437C10.7559-30.7437 9.76562-29.7568 9.76562-28.5645C9.76562-27.3721 10.7559-26.3853 11.9448-26.3853ZM25.0308-25.2246C26.7842-25.2246 28.189-26.6782 28.189-28.4282C28.189-30.1782 26.7842-31.5864 25.0308-31.5864C23.2808-31.5864 21.8306-30.1782 21.8306-28.4282C21.8306-26.6782 23.2808-25.2246 25.0308-25.2246ZM64.2886-25.2246C66.042-25.2246 67.4468-26.6782 67.4468-28.4282C67.4468-30.1782 66.042-31.5864 64.2886-31.5864C62.5386-31.5864 61.0884-30.1782 61.0884-28.4282C61.0884-26.6782 62.5386-25.2246 64.2886-25.2246ZM77.3745-26.3853C78.5669-26.3853 79.5571-27.3721 79.5571-28.5645C79.5571-29.7568 78.5669-30.7437 77.3745-30.7437C76.1855-30.7437 75.1953-29.7568 75.1953-28.5645C75.1953-27.3721 76.1855-26.3853 77.3745-26.3853ZM11.9448-12.9155C13.1372-12.9155 14.1274-13.9058 14.1274-15.0981C14.1274-16.2905 13.1372-17.2773 11.9448-17.2773C10.7559-17.2773 9.76562-16.2905 9.76562-15.0981C9.76562-13.9058 10.7559-12.9155 11.9448-12.9155ZM25.0308-12.3716C26.523-12.3716 27.7608-13.606 27.7608-15.0981C27.7608-16.5869 26.523-17.8247 25.0308-17.8247C23.542-17.8247 22.3042-16.5869 22.3042-15.0981C22.3042-13.606 23.542-12.3716 25.0308-12.3716ZM38.1167-11.8945C39.8701-11.8945 41.2749-13.3481 41.2749-15.0981C41.2749-16.8481 39.8701-18.2564 38.1167-18.2564C36.3667-18.2564 34.9165-16.8481 34.9165-15.0981C34.9165-13.3481 36.3667-11.8945 38.1167-11.8945ZM51.2026-11.8945C52.9561-11.8945 54.3609-13.3481 54.3609-15.0981C54.3609-16.8481 52.9561-18.2564 51.2026-18.2564C49.4526-18.2564 48.0024-16.8481 48.0024-15.0981C48.0024-13.3481 49.4526-11.8945 51.2026-11.8945ZM64.2886-12.3716C65.7808-12.3716 67.0186-13.606 67.0186-15.0981C67.0186-16.5869 65.7808-17.8247 64.2886-17.8247C62.7998-17.8247 61.562-16.5869 61.562-15.0981C61.562-13.606 62.7998-12.3716 64.2886-12.3716ZM77.3745-12.9155C78.5669-12.9155 79.5571-13.9058 79.5571-15.0981C79.5571-16.2905 78.5669-17.2773 77.3745-17.2773C76.1855-17.2773 75.1953-16.2905 75.1953-15.0981C75.1953-13.9058 76.1855-12.9155 77.3745-12.9155ZM25.0308 0.414553C26.2231 0.414553 27.2134-0.575683 27.2134-1.76807C27.2134-2.96045 26.2231-3.94727 25.0308-3.94727C23.8418-3.94727 22.8516-2.96045 22.8516-1.76807C22.8516-0.575683 23.8418 0.414553 25.0308 0.414553ZM38.1167 0.414553C39.3091 0.414553 40.2993-0.575683 40.2993-1.76807C40.2993-2.96045 39.3091-3.94727 38.1167-3.94727C36.9277-3.94727 35.9375-2.96045 35.9375-1.76807C35.9375-0.575683 36.9277 0.414553 38.1167 0.414553ZM51.2026 0.414553C52.395 0.414553 53.3853-0.575683 53.3853-1.76807C53.3853-2.96045 52.395-3.94727 51.2026-3.94727C50.0137-3.94727 49.0234-2.96045 49.0234-1.76807C49.0234-0.575683 50.0137 0.414553 51.2026 0.414553ZM64.2886 0.414553C65.481 0.414553 66.4712-0.575683 66.4712-1.76807C66.4712-2.96045 65.481-3.94727 64.2886-3.94727C63.0996-3.94727 62.1094-2.96045 62.1094-1.76807C62.1094-0.575683 63.0996 0.414553 64.2886 0.414553ZM38.1167-38.7363C39.8701-38.7363 41.2749-40.1445 41.2749-41.8945C41.2749-43.6445 39.8701-45.0527 38.1167-45.0527C36.3667-45.0527 34.9165-43.6445 34.9165-41.8945C34.9165-40.1445 36.3667-38.7363 38.1167-38.7363ZM51.2026-38.7363C52.9561-38.7363 54.3609-40.1445 54.3609-41.8945C54.3609-43.6445 52.9561-45.0527 51.2026-45.0527C49.4526-45.0527 48.0024-43.6445 48.0024-41.8945C48.0024-40.1445 49.4526-38.7363 51.2026-38.7363ZM38.1167-25.2246C39.8701-25.2246 41.2749-26.6782 41.2749-28.4282C41.2749-30.1782 39.8701-31.5864 38.1167-31.5864C36.3667-31.5864 34.9165-30.1782 34.9165-28.4282C34.9165-26.6782 36.3667-25.2246 38.1167-25.2246ZM51.2026-25.2246C52.9561-25.2246 54.3609-26.6782 54.3609-28.4282C54.3609-30.1782 52.9561-31.5864 51.2026-31.5864C49.4526-31.5864 48.0024-30.1782 48.0024-28.4282C48.0024-26.6782 49.4526-25.2246 51.2026-25.2246Z"/>
+ </g>
+ </g>
+</svg>
diff --git a/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig b/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig
index b1366ad7..acaff5fc 100644
--- a/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig
+++ b/ManicEmu/ManicEmu/Resources/Config-Base.xcconfig
@@ -11,5 +11,5 @@
// https://help.apple.com/xcode/#/dev745c5c974
APP_BUNDLE_IDENTIFIER = com.aoshuang.manicemu
-APP_BUILD_VERSION = 4
-APP_VERSION = 1.8.0
+APP_BUILD_VERSION = 3
+APP_VERSION = 1.8.1
diff --git a/ManicEmu/ManicEmu/Resources/Info.plist b/ManicEmu/ManicEmu/Resources/Info.plist
index 36b1422c..abb433fe 100644
--- a/ManicEmu/ManicEmu/Resources/Info.plist
+++ b/ManicEmu/ManicEmu/Resources/Info.plist
@@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>LSSupportsGameMode</key>
- <true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
@@ -406,8 +404,6 @@
</array>
<key>GCSupportsControllerUserInteraction</key>
<true/>
- <key>GCSupportsGameMode</key>
- <true/>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
@@ -415,9 +411,12 @@
<key>LSApplicationQueriesSchemes</key>
<array>
<string>sidestore</string>
+ <string>atariemulator</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
+ <key>LSSupportsGameMode</key>
+ <true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>NSAppTransportSecurity</key>
@@ -1061,6 +1060,7 @@
<string>manicskin</string>
<string>deltaskin</string>
<string>gammaskin</string>
+ <string>playcase</string>
</array>
</dict>
</dict>
diff --git a/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings
index d8f01a08..af474713 100644
--- a/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ar.lproj/Localizable.strings
@@ -761,4 +761,43 @@
"FilterTitle"="عامل التصفية";
"EnableManufacturerFilter"="تفعيل عامل تصفية المصنع";
"MAMEFileMissingTitle"="ملفات اللعبة مفقودة";
-"MAMEFileMissingDesc"="قد تنتمي هذه اللعبة إلى مجموعة ROM منقسمة، والتي تتطلب ملفاتها الأصلية أو ملفات BIOS للتشغيل. يرجى استيراد الملفات المفقودة أو استخدام ROM غير مدمج بدلاً من ذلك.";
\ No newline at end of file
+"MAMEFileMissingDesc"="قد تنتمي هذه اللعبة إلى مجموعة ROM منقسمة، والتي تتطلب ملفاتها الأصلية أو ملفات BIOS للتشغيل. يرجى استيراد الملفات المفقودة أو استخدام ROM غير مدمج بدلاً من ذلك.";
+"InputForget" = "نسيت";
+"ExactlyTextSizeAllowDesc" = "أدخل %@ حرفًا بالضبط";
+"EmptyInputNotAllowed" = "لا يمكن أن يكون الإدخال فارغًا";
+"BlankInputNotAllowed" = "لا يمكن أن يحتوي الإدخال على مسافات فقط";
+"ExactlyTextSize" = "يجب أن يكون النص مكونًا من %@ حرفًا بالضبط";
+"AtSymbolNotAllowed" = "الرمز @ غير مسموح به";
+"PercentSymbolNotAllowed" = "الرمز %% غير مسموح به";
+"BackslashSymbolNotAllowed" = "الرمز \\ غير مسموح به";
+"DigitsMaximumAllowed" = "الحد الأقصى للأرقام المسموح بها هو %@";
+"Default" = "افتراضي";
+"Imported" = "تم الاستيراد";
+"DownloadRetroArchSahders" = "تنزيل الشادرات من RetroArch";
+"ImportShaders" = "استيراد الشادرات";
+"Shaders" = "الشادرات";
+"DownloadRetroArchShaders" = "هل ترغب في تنزيل الشادرات من RetroArch؟ عند الانتهاء، سيتم تحديث فئة شادرات RetroArch تلقائيًا. يمكنك إلغاء هذه العملية في أي وقت من خلال مدير التنزيل.";
+"RetroArchShaderUnzipFailed" = "تعذر استخراج %@. ربما تعرض الملف للتلف أثناء التنزيل. يرجى المحاولة مرة أخرى.";
+"ImportShader" = "ضع ملفات الشادرات في مجلد ‘Manic EMU-Shaders’، ثم أعد فتح هذه الصفحة لتحديث وتحميل الشادرات.";
+"CustomShaderDesc" = "قم بإنشاء شادرات مخصصة عن طريق تعديل الشادرات الحالية.";
+"AppendShadersTitle" = "إضافة شادرات";
+"AppendShadersDetail" = "أضف الشادرات في بداية أو نهاية المكدس الحالي";
+"ShaderName" = "اسم الشادر";
+"Parameters" = "المعلمات";
+"ShaderEditAlert" = "عند تعديل شادر، سيتم إنشاء نسخة جديدة تلقائيًا. يمكنك العثور عليها في فئة مخصص بقائمة الشادرات.";
+"ShadersOrder" = "ترتيب الشادرات";
+"Base" = "أساسي";
+"NoShaders" = "لا توجد شادرات متاحة";
+"ShaderLoadFailed" = "فشل تحميل الشادر";
+"ShaderOrderDesc" = "اضغط مطولاً واسحب لإعادة ترتيب طبقات الشادرات";
+"CustomShaderExists" = "يوجد بالفعل شادر مخصص بنفس الاسم. هل ترغب في استبداله؟";
+"CustomShaderSaveFailed" = "فشل إنشاء الشادر. يرجى مراجعة تعديلاتك والمحاولة مرة أخرى.";
+"CustomShaderSaveSuccess" = "تم حفظ %@ بنجاح";
+"CustomShaderTitleWrong" = "اسم الشادر هذا غير متاح";
+"PlayCasePromo" = "تم تصميم هذه القشرة بواسطة PlayCase. عند استخدامها مع PlayCase، توفر تجربة تحكم أكثر سلاسة وطبيعية.\n\nتركز PlayCase على صنع أغلفة iPhone عالية الجودة، مصممة مع مراعاة التوافق مع الملحقات والقشور.\nإذا كنت ترغب في الارتقاء بإعدادك، فإن PlayCase هي الرفيق المثالي لهذه القشرة.";
+"LearnPlayCase" = "معرفة المزيد عن PlayCase";
+"DontshowAgain" = "عدم العرض مرة أخرى";
+"NotInstallMeloNX" = "لم يتم تثبيت MeloNX";
+"FetchGamesFromMeloNX" = "استيراد الألعاب من MeloNX";
+
+"ChangeAlert" = "تم تعديل المحتوى. سيؤدي الإغلاق الآن إلى فقدان جميع التعديلات. متابعة الإغلاق؟";
diff --git a/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings
index 299fb1d2..2a5d7f16 100644
--- a/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ca.lproj/Localizable.strings
@@ -786,4 +786,45 @@ Prem el botó del control...";
"FilterTitle"="Filtre";
"EnableManufacturerFilter"="Activar filtre de fabricant";
"MAMEFileMissingTitle"="Fitxers de joc faltants";
-"MAMEFileMissingDesc"="Aquest joc pot pertànyer a un conjunt ROM dividit, que requereix els seus fitxers pare o BIOS per funcionar. Si us plau, importa els fitxers faltants o utilitza un ROM no fusionat en el seu lloc.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Aquest joc pot pertànyer a un conjunt ROM dividit, que requereix els seus fitxers pare o BIOS per funcionar. Si us plau, importa els fitxers faltants o utilitza un ROM no fusionat en el seu lloc.";
+"InputForget" = "He oblidat";
+"ExactlyTextSizeAllowDesc" = "Introduïu exactament %@ caràcters";
+"EmptyInputNotAllowed" = "El camp no pot estar buit";
+"BlankInputNotAllowed" = "El camp no pot contenir només espais";
+"ExactlyTextSize" = "El text ha de tenir exactament %@ caràcters";
+"AtSymbolNotAllowed" = "El símbol @ no està permès";
+"PercentSymbolNotAllowed" = "El símbol %% no està permès";
+"BackslashSymbolNotAllowed" = "El símbol \\ no està permès";
+"DigitsMaximumAllowed" = "Es permeten fins a %@ dígits";
+"Default" = "Per defecte";
+"Imported" = "Importat";
+"DownloadRetroArchSahders" = "Descarrega shaders del RetroArch";
+"ImportShaders" = "Importa shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Vols descarregar shaders del RetroArch? Un cop completat, la categoria de shaders RetroArch s’actualitzarà automàticament. Pots cancel·lar aquest procés en qualsevol moment al gestor de descàrregues.";
+"RetroArchShaderUnzipFailed" = "No s’ha pogut extreure %@. És possible que el fitxer s’hagi danyat durant la descàrrega. Torneu-ho a provar.";
+"ImportShader" = "Col·loqueu els fitxers de shaders a la carpeta ‘Manic EMU-Shaders’ i després torneu a obrir aquesta pàgina per actualitzar i carregar els shaders.";
+"CustomShaderDesc" = "Crea shaders personalitzats editant els existents.";
+"AppendShadersTitle" = "Afegeix shaders";
+"AppendShadersDetail" = "Afegeix shaders al principi o al final de la pila actual";
+"ShaderName" = "Nom del shader";
+"Parameters" = "Paràmetres";
+"ShaderEditAlert" = "Quan edites un shader, se’n crea automàticament una còpia nova. La trobaràs a la categoria ‘Personalitzat’ de la llista de shaders.";
+"ShadersOrder" = "Ordre dels shaders";
+"Base" = "Base";
+"NoShaders" = "No hi ha shaders disponibles";
+"ShaderLoadFailed" = "No s’ha pogut carregar el shader";
+"ShaderOrderDesc" = "Prem i arrossega per canviar l’ordre de les superposicions de shaders";
+"CustomShaderExists" = "Ja existeix un shader personalitzat amb el mateix nom. Vols reemplaçar-lo?";
+"CustomShaderSaveFailed" = "No s’ha pogut generar el shader. Reviseu les vostres edicions i torneu-ho a provar.";
+"CustomShaderSaveSuccess" = "%@ s’ha desat correctament";
+"CustomShaderTitleWrong" = "Aquest nom de shader no està disponible";
+"PlayCasePromo" = "Aquesta skin ha estat dissenyada per PlayCase. Quan s’utilitza amb un PlayCase, ofereix una experiència de control més suau i natural.
+
+PlayCase se centra en fundes d’iPhone d’alta qualitat, dissenyades tenint en compte la compatibilitat amb accessoris i skins.
+Si voleu millorar la vostra configuració, PlayCase és el complement perfecte per a aquesta skin.";
+"LearnPlayCase" = "Més informació sobre PlayCase";
+"DontshowAgain" = "No tornis a mostrar";
+"NotInstallMeloNX" = "MeloNX no està instal·lat";
+"FetchGamesFromMeloNX" = "Importa jocs des de MeloNX";
+"ChangeAlert" = "El contingut s'ha canviat. Tancar ara suposarà perdre tots els canvis. Continuar tancant?";
diff --git a/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings
index 58edfd0d..68da2317 100644
--- a/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/cs.lproj/Localizable.strings
@@ -782,4 +782,45 @@ Stiskněte tlačítko ovladače...";
"FilterTitle"="Filtr";
"EnableManufacturerFilter"="Povolit filtr výrobce";
"MAMEFileMissingTitle"="Chybějící herní soubory";
-"MAMEFileMissingDesc"="Tato hra může patřit do rozdělené sady ROM, která ke spuštění vyžaduje své nadřazené nebo BIOS soubory. Importujte chybějící soubory nebo místo toho použijte nesloučené ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Tato hra může patřit do rozdělené sady ROM, která ke spuštění vyžaduje své nadřazené nebo BIOS soubory. Importujte chybějící soubory nebo místo toho použijte nesloučené ROM.";
+"InputForget" = "Zapomenuto";
+"ExactlyTextSizeAllowDesc" = "Zadejte přesně %@ znaků";
+"EmptyInputNotAllowed" = "Pole nesmí být prázdné";
+"BlankInputNotAllowed" = "Pole nesmí obsahovat pouze mezery";
+"ExactlyTextSize" = "Text musí mít přesně %@ znaků";
+"AtSymbolNotAllowed" = "Symbol @ není povolen";
+"PercentSymbolNotAllowed" = "Symbol %% není povolen";
+"BackslashSymbolNotAllowed" = "Symbol \\ není povolen";
+"DigitsMaximumAllowed" = "Povoleno maximálně %@ číslic";
+"Default" = "Výchozí";
+"Imported" = "Importováno";
+"DownloadRetroArchSahders" = "Stáhnout shadery z RetroArch";
+"ImportShaders" = "Importovat shadery";
+"Shaders" = "Shadery";
+"DownloadRetroArchShaders" = "Chcete stáhnout shadery z RetroArch? Po dokončení se kategorie shaderů RetroArch automaticky obnoví. Tento proces můžete kdykoli zrušit ve správci stahování.";
+"RetroArchShaderUnzipFailed" = "Nelze rozbalit %@. Soubor mohl být poškozen během stahování. Zkuste to prosím znovu.";
+"ImportShader" = "Umístěte soubory shaderů do složky ‘Manic EMU-Shaders’ a poté znovu otevřete tuto stránku, abyste shadery obnovili a načetli.";
+"CustomShaderDesc" = "Vytvářejte vlastní shadery úpravou stávajících.";
+"AppendShadersTitle" = "Přidat shadery";
+"AppendShadersDetail" = "Přidat shadery na začátek nebo konec aktuálního zásobníku";
+"ShaderName" = "Název shaderu";
+"Parameters" = "Parametry";
+"ShaderEditAlert" = "Při úpravě shaderu se automaticky vytvoří nová kopie. Najdete ji v kategorii ‘Vlastní’ v seznamu shaderů.";
+"ShadersOrder" = "Pořadí shaderů";
+"Base" = "Základní";
+"NoShaders" = "Žádné shadery k dispozici";
+"ShaderLoadFailed" = "Nepodařilo se načíst shader";
+"ShaderOrderDesc" = "Přidržte a táhněte pro změnu pořadí vrstev shaderů";
+"CustomShaderExists" = "Vlastní shader se stejným názvem již existuje. Chcete jej nahradit?";
+"CustomShaderSaveFailed" = "Nepodařilo se vygenerovat shader. Zkontrolujte úpravy a zkuste to znovu.";
+"CustomShaderSaveSuccess" = "%@ byl úspěšně uložen";
+"CustomShaderTitleWrong" = "Tento název shaderu není dostupný";
+"PlayCasePromo" = "Tento skin navrhl PlayCase. V kombinaci s PlayCase poskytuje plynulejší a přirozenější ovládání.
+
+PlayCase se zaměřuje na vysoce kvalitní obaly pro iPhone, navržené s ohledem na kompatibilitu s příslušenstvím a skiny.
+Pokud chcete vylepšit své nastavení, PlayCase je perfektním doplňkem tohoto skinu.";
+"LearnPlayCase" = "Zjistit více o PlayCase";
+"DontshowAgain" = "Znovu nezobrazovat";
+"NotInstallMeloNX" = "MeloNX není nainstalováno";
+"FetchGamesFromMeloNX" = "Importovat hry z MeloNX";
+"ChangeAlert" = "Obsah byl změněn. Zavření nyní povede ke ztrátě všech změn. Pokračovat v zavírání?";
diff --git a/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings
index a73e5f5b..7360c1e3 100644
--- a/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/da.lproj/Localizable.strings
@@ -784,4 +784,45 @@ Tryk på controller-knappen...";
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Aktiver producentfilter";
"MAMEFileMissingTitle"="Manglende spilfiler";
-"MAMEFileMissingDesc"="Dette spil kan tilhøre et delt ROM-sæt, der kræver dets overordnede eller BIOS-filer for at køre. Importer de manglende filer eller brug en ikke-flettet ROM i stedet.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Dette spil kan tilhøre et delt ROM-sæt, der kræver dets overordnede eller BIOS-filer for at køre. Importer de manglende filer eller brug en ikke-flettet ROM i stedet.";
+"InputForget" = "Glemt";
+"ExactlyTextSizeAllowDesc" = "Indtast præcis %@ tegn";
+"EmptyInputNotAllowed" = "Feltet må ikke være tomt";
+"BlankInputNotAllowed" = "Feltet må ikke kun indeholde mellemrum";
+"ExactlyTextSize" = "Teksten skal være præcis %@ tegn lang";
+"AtSymbolNotAllowed" = "@-symbolet er ikke tilladt";
+"PercentSymbolNotAllowed" = "%%-symbolet er ikke tilladt";
+"BackslashSymbolNotAllowed" = "\\-symbolet er ikke tilladt";
+"DigitsMaximumAllowed" = "Op til %@ cifre tilladt";
+"Default" = "Standard";
+"Imported" = "Importeret";
+"DownloadRetroArchSahders" = "Download shaders fra RetroArch";
+"ImportShaders" = "Importer shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Vil du downloade shaders fra RetroArch? Når fuldført, opdateres RetroArchs shader-kategori automatisk. Du kan annullere processen når som helst i download-manageren.";
+"RetroArchShaderUnzipFailed" = "Kunne ikke udpakke %@. Filen kan være blevet beskadiget under downloaden. Prøv at downloade den igen.";
+"ImportShader" = "Placer shader-filerne i mappen ‘Manic EMU-Shaders’, og åbn derefter denne side igen for at opdatere og indlæse shaders.";
+"CustomShaderDesc" = "Opret tilpassede shaders ved at redigere eksisterende.";
+"AppendShadersTitle" = "Tilføj shaders";
+"AppendShadersDetail" = "Tilføj shaders foran eller bagved den nuværende stak";
+"ShaderName" = "Shader-navn";
+"Parameters" = "Parametre";
+"ShaderEditAlert" = "Når du redigerer en shader, oprettes der automatisk en ny kopi. Du finder den under kategorien ‘Brugerdefineret’ i shader-listen.";
+"ShadersOrder" = "Shader-rækkefølge";
+"Base" = "Basis";
+"NoShaders" = "Ingen shaders tilgængelige";
+"ShaderLoadFailed" = "Kunne ikke indlæse shader";
+"ShaderOrderDesc" = "Tryk og hold, og træk for at ændre rækkefølgen af shader-overlejringer";
+"CustomShaderExists" = "Der findes allerede en brugerdefineret shader med samme navn. Vil du erstatte den?";
+"CustomShaderSaveFailed" = "Kunne ikke generere shaderen. Gennemgå dine ændringer og prøv igen.";
+"CustomShaderSaveSuccess" = "%@ blev gemt";
+"CustomShaderTitleWrong" = "Dette shader-navn er ikke tilgængeligt";
+"PlayCasePromo" = "Dette skin er designet af PlayCase. Brugt sammen med et PlayCase giver det en glattere og mere naturlig styreoplevelse.
+
+PlayCase fokuserer på høj-kvalitets iPhone-futter, designet med kompatibilitet til accessories og skins i tankerne.
+Hvis du vil forbedre dit setup, er PlayCase et perfekt match til dette skin.";
+"LearnPlayCase" = "Lær mere om PlayCase";
+"DontshowAgain" = "Vis ikke igen";
+"NotInstallMeloNX" = "MeloNX er ikke installeret";
+"FetchGamesFromMeloNX" = "Importer spil fra MeloNX";
+"ChangeAlert" = "Indholdet er blevet ændret. Hvis du lukker nu, går alle ændringer tabt. Fortsæt med at lukke?";
diff --git a/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings
index 9325bdf4..ef3c2709 100644
--- a/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/de.lproj/Localizable.strings
@@ -788,4 +788,45 @@ Drücke die Controller-Taste...";
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Herstellerfilter aktivieren";
"MAMEFileMissingTitle"="Fehlende Spieldateien";
-"MAMEFileMissingDesc"="Dieses Spiel könnte zu einem geteilten ROM-Set gehören, das seine Parent- oder BIOS-Dateien zum Ausführen benötigt. Bitte importieren Sie die fehlenden Dateien oder verwenden Sie stattdessen ein non-merged ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Dieses Spiel könnte zu einem geteilten ROM-Set gehören, das seine Parent- oder BIOS-Dateien zum Ausführen benötigt. Bitte importieren Sie die fehlenden Dateien oder verwenden Sie stattdessen ein non-merged ROM.";
+"InputForget" = "Vergessen";
+"ExactlyTextSizeAllowDesc" = "Geben Sie genau %@ Zeichen ein";
+"EmptyInputNotAllowed" = "Die Eingabe darf nicht leer sein";
+"BlankInputNotAllowed" = "Die Eingabe darf nicht nur Leerzeichen enthalten";
+"ExactlyTextSize" = "Der Text muss genau %@ Zeichen lang sein";
+"AtSymbolNotAllowed" = "Das @-Symbol ist nicht erlaubt";
+"PercentSymbolNotAllowed" = "Das %%-Symbol ist nicht erlaubt";
+"BackslashSymbolNotAllowed" = "Das \\-Symbol ist nicht erlaubt";
+"DigitsMaximumAllowed" = "Maximal %@ Ziffern erlaubt";
+"Default" = "Standard";
+"Imported" = "Importiert";
+"DownloadRetroArchSahders" = "Shaders von RetroArch herunterladen";
+"ImportShaders" = "Shaders importieren";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Möchten Sie Shaders von RetroArch herunterladen? Nach Abschluss wird die RetroArch-Shader-Kategorie automatisch aktualisiert. Sie können diesen Vorgang jederzeit im Download-Manager abbrechen.";
+"RetroArchShaderUnzipFailed" = "%@ konnte nicht entpackt werden. Die Datei wurde möglicherweise während des Downloads beschädigt. Bitte versuchen Sie es erneut.";
+"ImportShader" = "Legen Sie die Shader-Dateien im Ordner ‚Manic EMU-Shaders‘ ab und öffnen Sie diese Seite erneut, um die Shaders zu aktualisieren und zu laden.";
+"CustomShaderDesc" = "Erstellen Sie benutzerdefinierte Shaders, indem Sie vorhandene bearbeiten.";
+"AppendShadersTitle" = "Shaders hinzufügen";
+"AppendShadersDetail" = "Shaders am Anfang oder Ende des aktuellen Stapels hinzufügen";
+"ShaderName" = "Shader-Name";
+"Parameters" = "Parameter";
+"ShaderEditAlert" = "Wenn Sie einen Shader bearbeiten, wird automatisch eine neue Kopie erstellt. Sie finden diese in der Kategorie ‚Benutzerdefiniert‘ der Shader-Liste.";
+"ShadersOrder" = "Shader-Reihenfolge";
+"Base" = "Basis";
+"NoShaders" = "Keine Shaders verfügbar";
+"ShaderLoadFailed" = "Shader konnte nicht geladen werden";
+"ShaderOrderDesc" = "Gedrückt halten und ziehen, um die Shader-Überlagerungen neu anzuordnen";
+"CustomShaderExists" = "Ein benutzerdefinierter Shader mit diesem Namen existiert bereits. Möchten Sie ihn ersetzen?";
+"CustomShaderSaveFailed" = "Shader konnte nicht generiert werden. Bitte überprüfen Sie Ihre Änderungen und versuchen Sie es erneut.";
+"CustomShaderSaveSuccess" = "%@ wurde erfolgreich gespeichert";
+"CustomShaderTitleWrong" = "Dieser Shader-Name ist nicht verfügbar";
+"PlayCasePromo" = "Dieses Skin wurde von PlayCase entworfen. In Kombination mit einem PlayCase bietet es ein geschmeidigeres und natürlicheres Steuerungserlebnis.
+
+PlayCase konzentriert sich auf hochwertige iPhone-Hüllen, die mit Kompatibilität für Zubehör und Skins entwickelt wurden.
+Wenn Sie Ihr Setup verbessern möchten, ist PlayCase die perfekte Ergänzung zu diesem Skin.";
+"LearnPlayCase" = "Mehr über PlayCase erfahren";
+"DontshowAgain" = "Nicht mehr anzeigen";
+"NotInstallMeloNX" = "MeloNX ist nicht installiert";
+"FetchGamesFromMeloNX" = "Spiele von MeloNX importieren";
+"ChangeAlert" = "Der Inhalt wurde geändert. Wenn Sie jetzt schließen, gehen alle Änderungen verloren. Trotzdem schließen?";
diff --git a/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings
index 0356b1e0..ec806716 100644
--- a/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/el.lproj/Localizable.strings
@@ -787,4 +787,45 @@
"FilterTitle"="Φίλτρο";
"EnableManufacturerFilter"="Ενεργοποίηση φίλτρου κατασκευαστή";
"MAMEFileMissingTitle"="Λείπουν αρχεία παιχνιδιού";
-"MAMEFileMissingDesc"="Αυτό το παιχνίδι μπορεί να ανήκει σε ένα διαχωρισμένο σύνολο ROM, που απαιτεί τα γονικά ή αρχεία BIOS για να εκτελεστεί. Παρακαλώ εισαγάγετε τα αρχεία που λείπουν ή χρησιμοποιήστε ένα μη συγχωνευμένο ROM αντ' αυτού.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Αυτό το παιχνίδι μπορεί να ανήκει σε ένα διαχωρισμένο σύνολο ROM, που απαιτεί τα γονικά ή αρχεία BIOS για να εκτελεστεί. Παρακαλώ εισαγάγετε τα αρχεία που λείπουν ή χρησιμοποιήστε ένα μη συγχωνευμένο ROM αντ' αυτού.";
+"InputForget" = "Ξέχασα";
+"ExactlyTextSizeAllowDesc" = "Εισάγετε ακριβώς %@ χαρακτήρες";
+"EmptyInputNotAllowed" = "Το πεδίο δεν μπορεί να είναι κενό";
+"BlankInputNotAllowed" = "Το πεδίο δεν μπορεί να περιέχει μόνο κενά";
+"ExactlyTextSize" = "Το κείμενο πρέπει να είναι ακριβώς %@ χαρακτήρες";
+"AtSymbolNotAllowed" = "Το σύμβολο @ δεν επιτρέπεται";
+"PercentSymbolNotAllowed" = "Το σύμβολο %% δεν επιτρέπεται";
+"BackslashSymbolNotAllowed" = "Το σύμβολο \\ δεν επιτρέπεται";
+"DigitsMaximumAllowed" = "Επιτρέπονται έως %@ ψηφία";
+"Default" = "Προεπιλογή";
+"Imported" = "Εισαγμένο";
+"DownloadRetroArchSahders" = "Λήψη shaders από το RetroArch";
+"ImportShaders" = "Εισαγωγή shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Θέλετε να κατεβάσετε shaders από το RetroArch; Μόλις ολοκληρωθεί, η κατηγορία shader του RetroArch θα ανανεωθεί αυτόματα. Μπορείτε να ακυρώσετε αυτή τη διαδικασία ανά πάσα στιγμή από τον διαχειριστή λήψεων.";
+"RetroArchShaderUnzipFailed" = "Δεν ήταν δυνατή η εξαγωγή του %@. Το αρχείο ίσως καταστράφηκε κατά τη λήψη. Παρακαλώ δοκιμάστε ξανά.";
+"ImportShader" = "Τοποθετήστε τα αρχεία shader στο φάκελο ‘Manic EMU-Shaders’ και ανοίξτε ξανά αυτή τη σελίδα για ανανέωση και φόρτωση των shaders.";
+"CustomShaderDesc" = "Δημιουργήστε προσαρμοσμένα shaders επεξεργαζόμενα υπάρχοντα.";
+"AppendShadersTitle" = "Προσθήκη shaders";
+"AppendShadersDetail" = "Προσθήκη shaders στην αρχή ή στο τέλος της τρέχουσας στοίβας";
+"ShaderName" = "Όνομα shader";
+"Parameters" = "Παράμετροι";
+"ShaderEditAlert" = "Όταν επεξεργάζεστε ένα shader, δημιουργείται αυτόματα ένα νέο αντίγραφο. Μπορείτε να το βρείτε στην κατηγορία ‘Προσαρμοσμένο’ της λίστας shaders.";
+"ShadersOrder" = "Σειρά shaders";
+"Base" = "Βασικό";
+"NoShaders" = "Δεν υπάρχουν διαθέσιμα shaders";
+"ShaderLoadFailed" = "Αποτυχία φόρτωσης shader";
+"ShaderOrderDesc" = "Πατήστε και κρατήστε, μετά σύρετε για να αλλάξετε τη σειρά των επικαλύψεων shader";
+"CustomShaderExists" = "Υπάρχει ήδη ένα προσαρμοσμένο shader με το ίδιο όνομα. Θέλετε να το αντικαταστήσετε;";
+"CustomShaderSaveFailed" = "Αποτυχία δημιουργίας shader. Παρακαλώ ελέγξτε τις αλλαγές σας και δοκιμάστε ξανά.";
+"CustomShaderSaveSuccess" = "Το %@ αποθηκεύτηκε επιτυχώς";
+"CustomShaderTitleWrong" = "Αυτό το όνομα shader δεν είναι διαθέσιμο";
+"PlayCasePromo" = "Αυτό το skin σχεδιάστηκε από την PlayCase. Όταν χρησιμοποιείται με ένα PlayCase, προσφέρει μια πιο ομαλή και φυσική εμπειρία ελέγχου.
+
+Η PlayCase εστιάζει σε υψηλής ποιότητας θήκες iPhone, σχεδιασμένες με βάση τη συμβατότητα αξεσουάρ και skin.
+Αν θέλετε να αναβαθμίσετε τη ρύθμισή σας, η PlayCase είναι το ιδανικό ταίρι για αυτό το skin.";
+"LearnPlayCase" = "Μάθετε περισσότερα για την PlayCase";
+"DontshowAgain" = "Να μην εμφανιστεί ξανά";
+"NotInstallMeloNX" = "Το MeloNX δεν είναι εγκατεστημένο";
+"FetchGamesFromMeloNX" = "Εισαγωγή παιχνιδιών από το MeloNX";
+"ChangeAlert" = "Το περιεχόμενο έχει αλλάξει. Αν κλείσετε τώρα, θα χαθούν όλες οι αλλαγές. Συνέχεια κλεισίματος;";
diff --git a/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings
index 1d24fbf7..37dd0645 100644
--- a/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/en.lproj/Localizable.strings
@@ -803,3 +803,43 @@ Press the controller button to complete mapping...";
"EnableManufacturerFilter" = "Enable Manufacturer Filter";
"MAMEFileMissingTitle" = "Missing Game Files";
"MAMEFileMissingDesc" = "This game may belong to a split ROM set, which requires its parent or BIOS files to run. Please import the missing files or use a non-merged ROM instead.";
+
+"InputForget" = "Forgot";
+"ExactlyTextSizeAllowDesc" = "Enter exactly %@ characters";
+"EmptyInputNotAllowed" = "Input cannot be empty";
+"BlankInputNotAllowed" = "Input cannot contain only spaces";
+"ExactlyTextSize" = "Text must be exactly %@ characters long";
+"AtSymbolNotAllowed" = "The @ symbol is not allowed";
+"PercentSymbolNotAllowed" = "The %% symbol is not allowed";
+"BackslashSymbolNotAllowed" = "The \\ symbol is not allowed";
+"DigitsMaximumAllowed" = "Up to %@ digits allowed";
+"Default" = "Default";
+"Imported" = "Imported";
+"DownloadRetroArchSahders" = "Download Shaders from RetroArch";
+"ImportShaders" = "Import Shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Would you like to download shaders from RetroArch? Once completed, the RetroArch shader category will refresh automatically. You can cancel this process at any time in the download manager.";
+"RetroArchShaderUnzipFailed" = "%@ could not be extracted. The file may have been corrupted during download. Please try downloading it again.";
+"ImportShader" = "Place the shader files in the Manic EMU-Shaders folder, then reopen this page to refresh and load the shaders.";
+"CustomShaderDesc" = "Create custom shaders by editing existing ones.";
+"AppendShadersTitle" = "Append Shaders";
+"AppendShadersDetail" = "Prepend or append shaders to the current stack";
+"ShaderName" = "Shader Name";
+"Parameters" = "Parameters";
+"ShaderEditAlert" = "When you edit a shader, a new copy is created automatically. You can find it in the Custom category of the shader list.";
+"ShadersOrder" = "Shader Order";
+"Base" = "Base";
+"NoShaders" = "No Shaders Available";
+"ShaderLoadFailed" = "Failed to load shader";
+"ShaderOrderDesc" = "Press and hold, then drag to reorder shader overlays";
+"CustomShaderExists" = "A custom shader with the same name already exists. Do you want to replace it?";
+"CustomShaderSaveFailed" = "Failed to generate the shader. Please review your edits and try again.";
+"CustomShaderSaveSuccess" = "%@ was saved successfully";
+"CustomShaderTitleWrong" = "This shader name is unavailable";
+"PlayCasePromo" = "This skin is designed by PlayCase. When paired with a PlayCase, it delivers a smoother and more natural control experience.\n\nPlayCase focuses on high-quality iPhone cases built with accessory and skin compatibility in mind.\nIf you want to elevate your setup, PlayCase is a perfect match for this skin.";
+"LearnPlayCase" = "Learn More About PlayCase";
+"DontshowAgain" = "Don’t Show Again";
+"NotInstallMeloNX" = "MeloNX is not installed";
+"FetchGamesFromMeloNX" = "Import Games from MeloNX";
+
+"ChangeAlert" = "The content has been changed. Closing now will lose all changes. Continue closing?";
diff --git a/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings
index f4af80ad..0afa433d 100644
--- a/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/es-419.lproj/Localizable.strings
@@ -786,4 +786,45 @@ Presiona el botón del control para continuar...";
"FilterTitle"="Filtrar";
"EnableManufacturerFilter"="Activar filtro de fabricante";
"MAMEFileMissingTitle"="Archivos de juego faltantes";
-"MAMEFileMissingDesc"="Este juego puede ser parte de un set ROM dividido, que necesita sus archivos padre o BIOS para funcionar. Importa los archivos faltantes o usa un ROM no fusionado.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Este juego puede ser parte de un set ROM dividido, que necesita sus archivos padre o BIOS para funcionar. Importa los archivos faltantes o usa un ROM no fusionado.";
+"InputForget" = "Olvidé";
+"ExactlyTextSizeAllowDesc" = "Introduce exactamente %@ caracteres";
+"EmptyInputNotAllowed" = "No se permite un campo vacío";
+"BlankInputNotAllowed" = "No se permite solo espacios";
+"ExactlyTextSize" = "El texto debe tener %@ caracteres exactos";
+"AtSymbolNotAllowed" = "No se permite el símbolo @";
+"PercentSymbolNotAllowed" = "No se permite el símbolo %%";
+"BackslashSymbolNotAllowed" = "No se permite el símbolo \\";
+"DigitsMaximumAllowed" = "Máximo %@ dígitos permitidos";
+"Default" = "Predeterminado";
+"Imported" = "Importado";
+"DownloadRetroArchSahders" = "Descargar sombreadores de RetroArch";
+"ImportShaders" = "Importar sombreadores";
+"Shaders" = "Sombreadores";
+"DownloadRetroArchShaders" = "¿Descargar sombreadores de RetroArch? Al terminar, la categoría se actualizará sola. Puedes cancelar en cualquier momento desde el gestor de descargas.";
+"RetroArchShaderUnzipFailed" = "No se pudo descomprimir %@. El archivo pudo dañarse. Intenta descargarlo otra vez.";
+"ImportShader" = "Coloca los archivos en la carpeta ‘Manic EMU-Shaders’, luego vuelve a abrir esta página para cargarlos.";
+"CustomShaderDesc" = "Crea sombreadores personalizados editando los existentes.";
+"AppendShadersTitle" = "Agregar sombreadores";
+"AppendShadersDetail" = "Agregar sombreados al principio o al final de la lista actual";
+"ShaderName" = "Nombre del sombreador";
+"Parameters" = "Parámetros";
+"ShaderEditAlert" = "Al editar un sombreador, se crea una copia nueva. La encontrarás en la categoría ‘Personalizado’.";
+"ShadersOrder" = "Orden de sombreadores";
+"Base" = "Base";
+"NoShaders" = "No hay sombreadores disponibles";
+"ShaderLoadFailed" = "No se pudo cargar el sombreador";
+"ShaderOrderDesc" = "Presiona y arrastra para cambiar el orden de los efectos";
+"CustomShaderExists" = "Ya existe un sombreador con este nombre. ¿Reemplazarlo?";
+"CustomShaderSaveFailed" = "Error al generar el sombreador. Revisa los cambios e inténtalo otra vez.";
+"CustomShaderSaveSuccess" = "%@ guardado correctamente";
+"CustomShaderTitleWrong" = "Este nombre no está disponible";
+"PlayCasePromo" = "Esta funda fue diseñada por PlayCase. Usada con un PlayCase, ofrece un control más suave y natural.
+
+PlayCase crea fundas iPhone de alta calidad, pensadas para ser compatibles con accesorios y otras fundas.
+Si quieres mejorar tu experiencia, PlayCase combina perfecto con esta funda.";
+"LearnPlayCase" = "Conocer más sobre PlayCase";
+"DontshowAgain" = "No mostrar otra vez";
+"NotInstallMeloNX" = "MeloNX no está instalado";
+"FetchGamesFromMeloNX" = "Importar juegos desde MeloNX";
+"ChangeAlert" = "El contenido ha cambiado. Cerrar ahora hará que pierdas los cambios. ¿Continuar cerrando?";
diff --git a/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings
index 4149ad94..262eff24 100644
--- a/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/es.lproj/Localizable.strings
@@ -761,4 +761,45 @@ Presiona el botón del control para completar...";
"FilterTitle"="Filtro";
"EnableManufacturerFilter"="Activar filtro de fabricante";
"MAMEFileMissingTitle"="Archivos de juego faltantes";
-"MAMEFileMissingDesc"="Este juego puede pertenecer a un conjunto ROM dividido, que requiere sus archivos padre o BIOS para ejecutarse. Por favor importa los archivos faltantes o utiliza un ROM no fusionado en su lugar.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Este juego puede pertenecer a un conjunto ROM dividido, que requiere sus archivos padre o BIOS para ejecutarse. Por favor importa los archivos faltantes o utiliza un ROM no fusionado en su lugar.";
+"InputForget" = "Olvidé";
+"ExactlyTextSizeAllowDesc" = "Introduce exactamente %@ caracteres";
+"EmptyInputNotAllowed" = "La entrada no puede estar vacía";
+"BlankInputNotAllowed" = "La entrada no puede contener solo espacios";
+"ExactlyTextSize" = "El texto debe tener exactamente %@ caracteres";
+"AtSymbolNotAllowed" = "No se permite el símbolo @";
+"PercentSymbolNotAllowed" = "No se permite el símbolo %%";
+"BackslashSymbolNotAllowed" = "No se permite el símbolo \\";
+"DigitsMaximumAllowed" = "Se permiten hasta %@ dígitos";
+"Default" = "Por defecto";
+"Imported" = "Importado";
+"DownloadRetroArchSahders" = "Descargar sombreadores de RetroArch";
+"ImportShaders" = "Importar sombreadores";
+"Shaders" = "Sombreadores";
+"DownloadRetroArchShaders" = "¿Quieres descargar sombreadores de RetroArch? Una vez completado, la categoría de sombreadores de RetroArch se actualizará automáticamente. Puedes cancelar este proceso en cualquier momento en el gestor de descargas.";
+"RetroArchShaderUnzipFailed" = "No se pudo extraer %@. El archivo pudo haberse dañado durante la descarga. Por favor, inténtalo de nuevo.";
+"ImportShader" = "Coloca los archivos de sombreador en la carpeta Manic EMU-Shaders, luego vuelve a abrir esta página para actualizar y cargar los sombreadores.";
+"CustomShaderDesc" = "Crea sombreadores personalizados editando los existentes.";
+"AppendShadersTitle" = "Añadir sombreadores";
+"AppendShadersDetail" = "Anteponer o añadir sombreadores a la pila actual";
+"ShaderName" = "Nombre del sombreador";
+"Parameters" = "Parámetros";
+"ShaderEditAlert" = "Cuando editas un sombreador, se crea automáticamente una nueva copia. Puedes encontrarla en la categoría Personalizado de la lista de sombreadores.";
+"ShadersOrder" = "Orden de sombreadores";
+"Base" = "Base";
+"NoShaders" = "No hay sombreadores disponibles";
+"ShaderLoadFailed" = "Error al cargar el sombreador";
+"ShaderOrderDesc" = "Mantén pulsado y arrastra para reordenar las superposiciones de sombreador";
+"CustomShaderExists" = "Ya existe un sombreador personalizado con el mismo nombre. ¿Quieres reemplazarlo?";
+"CustomShaderSaveFailed" = "Error al generar el sombreador. Por favor, revisa tus ediciones e inténtalo de nuevo.";
+"CustomShaderSaveSuccess" = "%@ se guardó correctamente";
+"CustomShaderTitleWrong" = "Este nombre de sombreador no está disponible";
+"PlayCasePromo" = "Esta funda está diseñada por PlayCase. Al combinarla con un PlayCase, proporciona una experiencia de control más fluida y natural.
+
+PlayCase se centra en fundas iPhone de alta calidad, creadas teniendo en cuenta la compatibilidad con accesorios y fundas.
+Si quieres mejorar tu configuración, PlayCase es el complemento perfecto para esta funda.";
+"LearnPlayCase" = "Más información sobre PlayCase";
+"DontshowAgain" = "No volver a mostrar";
+"NotInstallMeloNX" = "MeloNX no está instalado";
+"FetchGamesFromMeloNX" = "Importar juegos desde MeloNX";
+"ChangeAlert" = "El contenido ha cambiado. Si cierra ahora, perderá todos los cambios. ¿Continuar cerrando?";
diff --git a/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings
index 904bad34..26ff5218 100644
--- a/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/fi.lproj/Localizable.strings
@@ -787,4 +787,45 @@ Paina ohjaimen nappia...";
"FilterTitle"="Suodatin";
"EnableManufacturerFilter"="Ota valmistajasuodatin käyttöön";
"MAMEFileMissingTitle"="Puuttuvat pelitiedostot";
-"MAMEFileMissingDesc"="Tämä peli voi kuulua jaettuun ROM-sarjaan, joka vaatii vanhemman tai BIOS-tiedostonsa toimiakseen. Tuo puuttuvat tiedostot tai käytä sen sijaan ei-yhdistettyä ROMia.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Tämä peli voi kuulua jaettuun ROM-sarjaan, joka vaatii vanhemman tai BIOS-tiedostonsa toimiakseen. Tuo puuttuvat tiedostot tai käytä sen sijaan ei-yhdistettyä ROMia.";
+"InputForget" = "Unohdin";
+"ExactlyTextSizeAllowDesc" = "Syötä tarkalleen %@ merkkiä";
+"EmptyInputNotAllowed" = "Kenttä ei voi olla tyhjä";
+"BlankInputNotAllowed" = "Kenttä ei voi sisältää vain välilyöntejä";
+"ExactlyTextSize" = "Tekstin tulee olla tarkalleen %@ merkkiä pitkä";
+"AtSymbolNotAllowed" = "@-symboli ei ole sallittu";
+"PercentSymbolNotAllowed" = "%%-symboli ei ole sallittu";
+"BackslashSymbolNotAllowed" = "\\-symboli ei ole sallittu";
+"DigitsMaximumAllowed" = "Enintään %@ numeroa sallittu";
+"Default" = "Oletus";
+"Imported" = "Tuotu";
+"DownloadRetroArchSahders" = "Lataa shadereita RetroArchista";
+"ImportShaders" = "Tuo shadereita";
+"Shaders" = "Shadereita";
+"DownloadRetroArchShaders" = "Haluatko ladata shadereita RetroArchista? Valmistuttuaan RetroArchin shader-kategoria päivitetään automaattisesti. Voit peruuttaa tämän milloin tahansa lataushallinnassa.";
+"RetroArchShaderUnzipFailed" = "Tiedostoa %@ ei voitu purkaa. Tiedosto on saatettu vioittua latauksen aikana. Yritä ladata se uudelleen.";
+"ImportShader" = "Aseta shader-tiedostot kansioon ‘Manic EMU-Shaders’ ja avaa sitten tämä sivu uudelleen päivittääksesi ja ladataksesi shaderit.";
+"CustomShaderDesc" = "Luo mukautettuja shadereita muokkaamalla olemassa olevia.";
+"AppendShadersTitle" = "Lisää shadereita";
+"AppendShadersDetail" = "Lisää shadereita nykyisen pinon alkuun tai loppuun";
+"ShaderName" = "Shaderin nimi";
+"Parameters" = "Parametrit";
+"ShaderEditAlert" = "Kun muokkaat shaderia, luodaan automaattisesti uusi kopio. Löydät sen shaderilistan ‘Mukautettu’-kategoriasta.";
+"ShadersOrder" = "Shaderien järjestys";
+"Base" = "Perus";
+"NoShaders" = "Ei shadereita saatavilla";
+"ShaderLoadFailed" = "Shaderin lataus epäonnistui";
+"ShaderOrderDesc" = "Pidä painettuna ja raahaa järjestääksesi shader-kerrokset uudelleen";
+"CustomShaderExists" = "Saman niminen mukautettu shader on jo olemassa. Korvataanko se?";
+"CustomShaderSaveFailed" = "Shaderin luonti epäonnistui. Tarkista muokkauksesi ja yritä uudelleen.";
+"CustomShaderSaveSuccess" = "%@ tallennettiin onnistuneesti";
+"CustomShaderTitleWrong" = "Tämä shaderin nimi ei ole käytettävissä";
+"PlayCasePromo" = "Tämä skini on PlayCasen suunnittelema. Kun sitä käytetään PlayCasen kanssa, se tarjoaa sulavamman ja luonnollisemman ohjauskokemuksen.
+
+PlayCase keskittyy laadukkaisiin iPhone-kuoriin, jotka on suunniteltu ottaen huomioon lisävarusteiden ja skinien yhteensopivuus.
+Jos haluat parantaa kokoonpanoasi, PlayCase on täydellinen lisä tälle skinille.";
+"LearnPlayCase" = "Lue lisää PlayCasesta";
+"DontshowAgain" = "Älä näytä uudelleen";
+"NotInstallMeloNX" = "MeloNX ei ole asennettu";
+"FetchGamesFromMeloNX" = "Tuo pelejä MeloNX:stä";
+"ChangeAlert" = "Sisältöä on muutettu. Sulkeminen nyt johtaa kaikkien muutosten menettämiseen. Jatka sulkemista?";
diff --git a/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings
index 18859714..d3322c10 100644
--- a/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/fr-CA.lproj/Localizable.strings
@@ -788,4 +788,45 @@ Appuyez sur le bouton du contrôleur...";
"FilterTitle"="Filtrer";
"EnableManufacturerFilter"="Activer le filtre fabricant";
"MAMEFileMissingTitle"="Fichiers de jeu manquants";
-"MAMEFileMissingDesc"="Ce jeu peut appartenir à un ensemble ROM divisé, qui nécessite ses fichiers parent ou BIOS pour fonctionner. Veuillez importer les fichiers manquants ou utiliser un ROM non fusionné.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Ce jeu peut appartenir à un ensemble ROM divisé, qui nécessite ses fichiers parent ou BIOS pour fonctionner. Veuillez importer les fichiers manquants ou utiliser un ROM non fusionné.";
+"InputForget" = "J’ai oublié";
+"ExactlyTextSizeAllowDesc" = "Entrer exactement %@ caractères";
+"EmptyInputNotAllowed" = "Le champ ne peut pas être vide";
+"BlankInputNotAllowed" = "Le champ ne peut contenir seulement des espaces";
+"ExactlyTextSize" = "Le texte doit avoir exactement %@ caractères";
+"AtSymbolNotAllowed" = "Le symbole @ n’est pas permis";
+"PercentSymbolNotAllowed" = "Le symbole %% n’est pas permis";
+"BackslashSymbolNotAllowed" = "Le symbole \\ n’est pas permis";
+"DigitsMaximumAllowed" = "Maximum %@ chiffres permis";
+"Default" = "Défaut";
+"Imported" = "Importé";
+"DownloadRetroArchSahders" = "Télécharger des shaders de RetroArch";
+"ImportShaders" = "Importer des shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Voulez-vous télécharger des shaders de RetroArch ? Une fois terminé, la catégorie RetroArch sera rafraîchie automatiquement. Vous pouvez annuler à tout moment dans le gestionnaire de téléchargement.";
+"RetroArchShaderUnzipFailed" = "Impossible de décompresser %@. Le fichier a pu être corrompu lors du téléchargement. Veuillez réessayer.";
+"ImportShader" = "Placez les fichiers de shaders dans le dossier ‘Manic EMU-Shaders’, puis rouvrez cette page pour rafraîchir et charger les shaders.";
+"CustomShaderDesc" = "Créez des shaders personnalisés en modifiant ceux qui existent.";
+"AppendShadersTitle" = "Ajouter des shaders";
+"AppendShadersDetail" = "Ajouter des shaders au début ou à la fin de la pile actuelle";
+"ShaderName" = "Nom du shader";
+"Parameters" = "Paramètres";
+"ShaderEditAlert" = "La modification d’un shader crée automatiquement une nouvelle copie. Vous la trouverez dans la catégorie ‘Personnalisé’ de la liste.";
+"ShadersOrder" = "Ordre des shaders";
+"Base" = "Base";
+"NoShaders" = "Aucun shader disponible";
+"ShaderLoadFailed" = "Échec du chargement du shader";
+"ShaderOrderDesc" = "Appuyez de manière prolongée et glissez pour réorganiser les calques de shaders";
+"CustomShaderExists" = "Un shader personnalisé du même nom existe déjà. Voulez-vous le remplacer ?";
+"CustomShaderSaveFailed" = "Échec de la génération du shader. Veuillez vérifier vos modifications et réessayer.";
+"CustomShaderSaveSuccess" = "%@ a été enregistré avec succès";
+"CustomShaderTitleWrong" = "Ce nom de shader n’est pas disponible";
+"PlayCasePromo" = "Cette jaquette est conçue par PlayCase. Utilisée avec un PlayCase, elle offre une expérience de contrôle plus fluide et naturelle.
+
+PlayCase se spécialise dans les étuis iPhone de haute qualité, conçus pour être compatibles avec les accessoires et les jaquettes.
+Si vous voulez améliorer votre installation, PlayCase est le complément parfait pour cette jaquette.";
+"LearnPlayCase" = "En savoir plus sur PlayCase";
+"DontshowAgain" = "Ne plus afficher";
+"NotInstallMeloNX" = "MeloNX n’est pas installé";
+"FetchGamesFromMeloNX" = "Importer des jeux de MeloNX";
+"ChangeAlert" = "Le contenu a été modifié. Fermer maintenant entraînera la perte des modifications. Continuer la fermeture ?";
diff --git a/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings
index 3e8cb5fa..ea639e5d 100644
--- a/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/fr.lproj/Localizable.strings
@@ -788,4 +788,45 @@ Appuyez sur le bouton du contrôleur...";
"FilterTitle"="Filtre";
"EnableManufacturerFilter"="Activer le filtre fabricant";
"MAMEFileMissingTitle"="Fichiers de jeu manquants";
-"MAMEFileMissingDesc"="Ce jeu peut appartenir à un set ROM divisé, qui nécessite ses fichiers parent ou BIOS pour fonctionner. Veuillez importer les fichiers manquants ou utiliser un ROM non fusionné à la place.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Ce jeu peut appartenir à un set ROM divisé, qui nécessite ses fichiers parent ou BIOS pour fonctionner. Veuillez importer les fichiers manquants ou utiliser un ROM non fusionné à la place.";
+"InputForget" = "Mot de passe oublié";
+"ExactlyTextSizeAllowDesc" = "Saisissez exactement %@ caractères";
+"EmptyInputNotAllowed" = "Le champ ne peut pas être vide";
+"BlankInputNotAllowed" = "Le champ ne peut pas contenir uniquement des espaces";
+"ExactlyTextSize" = "Le texte doit comporter exactement %@ caractères";
+"AtSymbolNotAllowed" = "Le symbole @ n’est pas autorisé";
+"PercentSymbolNotAllowed" = "Le symbole %% n’est pas autorisé";
+"BackslashSymbolNotAllowed" = "Le symbole \\ n’est pas autorisé";
+"DigitsMaximumAllowed" = "Maximum %@ chiffres autorisés";
+"Default" = "Par défaut";
+"Imported" = "Importé";
+"DownloadRetroArchSahders" = "Télécharger des shaders depuis RetroArch";
+"ImportShaders" = "Importer des shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Voulez-vous télécharger des shaders depuis RetroArch ? Une fois terminé, la catégorie RetroArch sera actualisée automatiquement. Vous pouvez annuler cette opération à tout moment dans le gestionnaire de téléchargements.";
+"RetroArchShaderUnzipFailed" = "Impossible de décompresser %@. Le fichier a peut-être été endommagé lors du téléchargement. Veuillez réessayer.";
+"ImportShader" = "Placez les fichiers de shaders dans le dossier ‘Manic EMU-Shaders’, puis rouvrez cette page pour actualiser et charger les shaders.";
+"CustomShaderDesc" = "Créez des shaders personnalisés en modifiant les shaders existants.";
+"AppendShadersTitle" = "Ajouter des shaders";
+"AppendShadersDetail" = "Ajouter des shaders au début ou à la fin de la pile actuelle";
+"ShaderName" = "Nom du shader";
+"Parameters" = "Paramètres";
+"ShaderEditAlert" = "Lorsque vous modifiez un shader, une nouvelle copie est automatiquement créée. Vous la trouverez dans la catégorie ‘Personnalisé’ de la liste des shaders.";
+"ShadersOrder" = "Ordre des shaders";
+"Base" = "Base";
+"NoShaders" = "Aucun shader disponible";
+"ShaderLoadFailed" = "Échec du chargement du shader";
+"ShaderOrderDesc" = "Appuyez longuement et faites glisser pour réorganiser les superpositions de shaders";
+"CustomShaderExists" = "Un shader personnalisé du même nom existe déjà. Voulez-vous le remplacer ?";
+"CustomShaderSaveFailed" = "Échec de la génération du shader. Veuillez vérifier vos modifications et réessayer.";
+"CustomShaderSaveSuccess" = "%@ a été enregistré avec succès";
+"CustomShaderTitleWrong" = "Ce nom de shader n’est pas disponible";
+"PlayCasePromo" = "Ce skin est conçu par PlayCase. Associé à un PlayCase, il offre une expérience de contrôle plus fluide et naturelle.
+
+PlayCase se concentre sur des coques iPhone de haute qualité, conçues en tenant compte de la compatibilité avec les accessoires et skins.
+Si vous souhaitez améliorer votre configuration, PlayCase est le complément idéal pour ce skin.";
+"LearnPlayCase" = "En savoir plus sur PlayCase";
+"DontshowAgain" = "Ne plus afficher";
+"NotInstallMeloNX" = "MeloNX n’est pas installé";
+"FetchGamesFromMeloNX" = "Importer des jeux depuis MeloNX";
+"ChangeAlert" = "Le contenu a été modifié. Fermer maintenant entraînera la perte des modifications. Continuer la fermeture ?";
diff --git a/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings
index 7974da16..23c792af 100644
--- a/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/he.lproj/Localizable.strings
@@ -787,4 +787,45 @@
"FilterTitle"="מסנן";
"EnableManufacturerFilter"="הפעל מסנן יצרן";
"MAMEFileMissingTitle"="קבצי משחק חסרים";
-"MAMEFileMissingDesc"="משחק זה עשוי להיות שייך למערך ROM מפוצל, הדורש את קבצי ההורה או BIOS שלו כדי לפעול. אנא ייבא את הקבצים החסרים או השתמש ב-ROM לא ממוזג במקום.";
\ No newline at end of file
+"MAMEFileMissingDesc"="משחק זה עשוי להיות שייך למערך ROM מפוצל, הדורש את קבצי ההורה או BIOS שלו כדי לפעול. אנא ייבא את הקבצים החסרים או השתמש ב-ROM לא ממוזג במקום.";
+"InputForget" = "שכחתי";
+"ExactlyTextSizeAllowDesc" = "הזן בדיוק %@ תווים";
+"EmptyInputNotAllowed" = "השדה לא יכול להיות ריק";
+"BlankInputNotAllowed" = "השדה לא יכול להכיל רק רווחים";
+"ExactlyTextSize" = "הטקסט חייב להיות באורך בדיוק %@ תווים";
+"AtSymbolNotAllowed" = "הסמל @ אסור לשימוש";
+"PercentSymbolNotAllowed" = "הסמל %% אסור לשימוש";
+"BackslashSymbolNotAllowed" = "הסמל \\ אסור לשימוש";
+"DigitsMaximumAllowed" = "מותר עד %@ ספרות";
+"Default" = "ברירת מחדל";
+"Imported" = "יובא";
+"DownloadRetroArchSahders" = "הורד שיידרים מ־RetroArch";
+"ImportShaders" = "ייבא שיידרים";
+"Shaders" = "שיידרים";
+"DownloadRetroArchShaders" = "האם להוריד שיידרים מ־RetroArch? עם השלמה, קטגוריית השיידרים של RetroArch תתרענן אוטומטית. ניתן לבטל את התהליך בכל עת במנהל ההורדות.";
+"RetroArchShaderUnzipFailed" = "לא ניתן לחלץ את %@. יתכן שהקובץ ניזוק במהלך ההורדה. אנא נסה להוריד שוב.";
+"ImportShader" = "הכנס את קבצי השיידר לתיקייה ‘Manic EMU-Shaders’, ולאחר מכן פתח מחדש דף זה כדי לרענן ולטעון את השיידרים.";
+"CustomShaderDesc" = "צור שיידרים מותאמים אישית על ידי עריכת שיידרים קיימים.";
+"AppendShadersTitle" = "הוסף שיידרים";
+"AppendShadersDetail" = "הוסף שיידרים בתחילת או בסוף המחסנית הנוכחית";
+"ShaderName" = "שם שיידר";
+"Parameters" = "פרמטרים";
+"ShaderEditAlert" = "כשעורכים שיידר, עותק חדש נוצר אוטומטית. ניתן למצוא אותו בקטגוריית ‘מותאם אישית’ ברשימת השיידרים.";
+"ShadersOrder" = "סדר שיידרים";
+"Base" = "בסיסי";
+"NoShaders" = "אין שיידרים זמינים";
+"ShaderLoadFailed" = "נכשל בטעינת השיידר";
+"ShaderOrderDesc" = "החזק וגרור כדי לשנות את סדר שכבות השיידר";
+"CustomShaderExists" = "קיים כבר שיידר מותאם אישית עם אותו שם. להחליף?";
+"CustomShaderSaveFailed" = "יצירת השיידר נכשלה. בדוק את העריכות ונסה שוב.";
+"CustomShaderSaveSuccess" = "%@ נשמר בהצלחה";
+"CustomShaderTitleWrong" = "שם שיידר זה לא זמין";
+"PlayCasePromo" = "עיצוב זה נוצר על ידי PlayCase. בשימוש עם PlayCase, הוא מספק חוויית שליטה חלקה וטבעית יותר.
+
+PlayCase מתמקדת במעטפות iPhone איכותיות, המיוצרות עם מחשבה על תאימות לאביזרים ולעיצובים.
+אם ברצונך לשדרג את המערכת שלך, PlayCase היא ההתאמה המושלמת לעיצוב זה.";
+"LearnPlayCase" = "מידע נוסף על PlayCase";
+"DontshowAgain" = "לא להציג שוב";
+"NotInstallMeloNX" = "MeloNX לא מותקן";
+"FetchGamesFromMeloNX" = "ייבא משחקים מ־MeloNX";
+"ChangeAlert" = "התוכן השתנה. סגירה כעת תגרום לאובדן כל השינויים. להמשיך בסגירה?";
diff --git a/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings
index 7d30ae9d..6586b176 100644
--- a/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/hi.lproj/Localizable.strings
@@ -788,4 +788,45 @@
"FilterTitle"="फ़िल्टर";
"EnableManufacturerFilter"="निर्माता फ़िल्टर सक्षम करें";
"MAMEFileMissingTitle"="गेम फ़ाइलें गुम हैं";
-"MAMEFileMissingDesc"="यह गेम स्प्लिट ROM सेट से संबंधित हो सकता है, जिसे चलाने के लिए इसकी पैरेंट या BIOS फ़ाइलों की आवश्यकता होती है। कृपया गुम फ़ाइलें इंपोर्ट करें या नॉन-मर्ज्ड ROM का उपयोग करें।";
\ No newline at end of file
+"MAMEFileMissingDesc"="यह गेम स्प्लिट ROM सेट से संबंधित हो सकता है, जिसे चलाने के लिए इसकी पैरेंट या BIOS फ़ाइलों की आवश्यकता होती है। कृपया गुम फ़ाइलें इंपोर्ट करें या नॉन-मर्ज्ड ROM का उपयोग करें।";
+"InputForget" = "भूल गए";
+"ExactlyTextSizeAllowDesc" = "बिल्कुल %@ अक्षर दर्ज करें";
+"EmptyInputNotAllowed" = "इनपुट खाली नहीं हो सकता";
+"BlankInputNotAllowed" = "इनपुट में केवल रिक्त स्थान नहीं हो सकते";
+"ExactlyTextSize" = "टेक्स्ट बिल्कुल %@ अक्षर का होना चाहिए";
+"AtSymbolNotAllowed" = "@ चिन्ह की अनुमति नहीं है";
+"PercentSymbolNotAllowed" = "%% चिन्ह की अनुमति नहीं है";
+"BackslashSymbolNotAllowed" = "\\ चिन्ह की अनुमति नहीं है";
+"DigitsMaximumAllowed" = "अधिकतम %@ अंकों की अनुमति है";
+"Default" = "डिफ़ॉल्ट";
+"Imported" = "आयातित";
+"DownloadRetroArchSahders" = "RetroArch से शेडर डाउनलोड करें";
+"ImportShaders" = "शेडर आयात करें";
+"Shaders" = "शेडर";
+"DownloadRetroArchShaders" = "क्या आप RetroArch से शेडर डाउनलोड करना चाहते हैं? पूरा होने पर, RetroArch शेडर श्रेणी स्वचालित रूप से ताज़ा हो जाएगी। आप डाउनलोड प्रबंधक में किसी भी समय इस प्रक्रिया को रद्द कर सकते हैं।";
+"RetroArchShaderUnzipFailed" = "%@ को निकाला नहीं जा सका। डाउनलोड के दौरान फ़ाइल खराब हो सकती है। कृपया इसे फिर से डाउनलोड करने का प्रयास करें।";
+"ImportShader" = "शेडर फ़ाइलों को ‘Manic EMU-Shaders’ फ़ोल्डर में रखें, फिर शेडरों को ताज़ा करने और लोड करने के लिए इस पृष्ठ को फिर से खोलें।";
+"CustomShaderDesc" = "मौजूदा शेडरों को संपादित करके कस्टम शेडर बनाएं।";
+"AppendShadersTitle" = "शेडर जोड़ें";
+"AppendShadersDetail" = "मौजूदा स्टैक के आगे या पीछे शेडर जोड़ें";
+"ShaderName" = "शेडर नाम";
+"Parameters" = "पैरामीटर";
+"ShaderEditAlert" = "जब आप एक शेडर संपादित करते हैं, तो स्वचालित रूप से एक नई प्रति बनाई जाती है। आप इसे शेडर सूची के ‘कस्टम’ श्रेणी में पा सकते हैं।";
+"ShadersOrder" = "शेडर क्रम";
+"Base" = "आधार";
+"NoShaders" = "कोई शेडर उपलब्ध नहीं";
+"ShaderLoadFailed" = "शेडर लोड करने में विफल";
+"ShaderOrderDesc" = "दबाकर रखें और खींचें, शेडर ओवरले का क्रम बदलने के लिए";
+"CustomShaderExists" = "उसी नाम का एक कस्टम शेडर पहले से मौजूद है। क्या आप इसे प्रतिस्थापित करना चाहते हैं?";
+"CustomShaderSaveFailed" = "शेडर बनाने में विफल। कृपया अपने संपादनों की समीक्षा करें और पुनः प्रयास करें।";
+"CustomShaderSaveSuccess" = "%@ सफलतापूर्वक सहेजा गया";
+"CustomShaderTitleWrong" = "यह शेडर नाम उपलब्ध नहीं है";
+"PlayCasePromo" = "यह स्किन PlayCase द्वारा डिज़ाइन की गई है। जब PlayCase के साथ जोड़ा जाता है, तो यह एक सहज और प्राकृतिक नियंत्रण अनुभव प्रदान करती है।
+
+PlayCase हाई-क्वालिटी iPhone केसों पर केंद्रित है, जिन्हें सामान और स्किन संगतता को ध्यान में रखकर बनाया गया है।
+यदि आप अपने सेटअप को उन्नत करना चाहते हैं, तो PlayCase इस स्किन के लिए एकदम सही जोड़ी है।";
+"LearnPlayCase" = "PlayCase के बारे में और जानें";
+"DontshowAgain" = "फिर न दिखाएं";
+"NotInstallMeloNX" = "MeloNX इंस्टॉल नहीं है";
+"FetchGamesFromMeloNX" = "MeloNX से गेम आयात करें";
+"ChangeAlert" = "सामग्री बदल दी गई है। अब बंद करने से सभी परिवर्तन खो जाएंगे। बंद करना जारी रखें?";
diff --git a/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings
index b8872668..175e74f5 100644
--- a/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/hr.lproj/Localizable.strings
@@ -784,4 +784,45 @@ Ako naiđete na nestabilnost u 3DS-u, pogledajte «Često Postavljana Pitanja»
"FilterTitle"="Filtar";
"EnableManufacturerFilter"="Omogući filtar proizvođača";
"MAMEFileMissingTitle"="Nedostaju datoteke igre";
-"MAMEFileMissingDesc"="Ova igra može pripadati podijeljenom ROM setu, koji zahtijeva svoje roditeljske ili BIOS datoteke za pokretanje. Molimo importajte nedostajuće datoteke ili umjesto toga koristite ne-spojeni ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Ova igra može pripadati podijeljenom ROM setu, koji zahtijeva svoje roditeljske ili BIOS datoteke za pokretanje. Molimo importajte nedostajuće datoteke ili umjesto toga koristite ne-spojeni ROM.";
+"InputForget" = "Zaboravio sam";
+"ExactlyTextSizeAllowDesc" = "Unesite točno %@ znakova";
+"EmptyInputNotAllowed" = "Polje ne smije biti prazno";
+"BlankInputNotAllowed" = "Polje ne smije sadržavati samo razmake";
+"ExactlyTextSize" = "Tekst mora biti točno %@ znakova dugačak";
+"AtSymbolNotAllowed" = "Simbol @ nije dopušten";
+"PercentSymbolNotAllowed" = "Simbol %% nije dopušten";
+"BackslashSymbolNotAllowed" = "Simbol \\ nije dopušten";
+"DigitsMaximumAllowed" = "Dopušteno najviše %@ znamenki";
+"Default" = "Zadano";
+"Imported" = "Uvezeno";
+"DownloadRetroArchSahders" = "Preuzmi shadere s RetroArcha";
+"ImportShaders" = "Uvezi shadere";
+"Shaders" = "Shaderi";
+"DownloadRetroArchShaders" = "Želite li preuzeti shadere s RetroArcha? Po završetku, RetroArchova kategorija shadera će se automatski osvježiti. Ovaj proces možete prekinuti u bilo kojem trenutku u upravitelju preuzimanja.";
+"RetroArchShaderUnzipFailed" = "Nije moguće raspakirati %@. Datoteka je možda oštećena tijekom preuzimanja. Pokušajte je ponovno preuzeti.";
+"ImportShader" = "Stavite datoteke shadera u mapu ‘Manic EMU-Shaders’, zatim ponovno otvorite ovu stranicu da biste osvježili i učitali shadere.";
+"CustomShaderDesc" = "Kreirajte prilagođene shadere uređivanjem postojećih.";
+"AppendShadersTitle" = "Dodaj shadere";
+"AppendShadersDetail" = "Dodajte shadere na početak ili kraj trenutnog sloga";
+"ShaderName" = "Naziv shadera";
+"Parameters" = "Parametri";
+"ShaderEditAlert" = "Kada uredite shader, automatski se kreira nova kopija. Možete je pronaći u kategoriji ‘Prilagođeno’ na popisu shadera.";
+"ShadersOrder" = "Redoslijed shadera";
+"Base" = "Osnovni";
+"NoShaders" = "Nema dostupnih shadera";
+"ShaderLoadFailed" = "Učitavanje shadera nije uspjelo";
+"ShaderOrderDesc" = "Pritisnite i držite, pa povucite za promjenu redoslijeda slojeva shadera";
+"CustomShaderExists" = "Prilagođeni shader s istim imenom već postoji. Želite li ga zamijeniti?";
+"CustomShaderSaveFailed" = "Generiranje shadera nije uspjelo. Pregledajte svoje izmjene i pokušajte ponovno.";
+"CustomShaderSaveSuccess" = "%@ je uspješno spremljen";
+"CustomShaderTitleWrong" = "Ovaj naziv shadera nije dostupan";
+"PlayCasePromo" = "Ovaj skin dizajnirao je PlayCase. U kombinaciji s PlayCaseom pruža glatkije i prirodnije iskustvo upravljanja.
+
+PlayCase se usredotočuje na visokokvalitetna kućišta za iPhone, dizajnirana uz kompatibilnost s priborom i skinovima na umu.
+Ako želite unaprijediti svoju postavu, PlayCase je savršen dodatak ovom skinu.";
+"LearnPlayCase" = "Saznajte više o PlayCaseu";
+"DontshowAgain" = "Ne prikazuj više";
+"NotInstallMeloNX" = "MeloNX nije instaliran";
+"FetchGamesFromMeloNX" = "Uvezi igre iz MeloNXa";
+"ChangeAlert" = "Sadržaj je promijenjen. Zatvaranje sada će uzrokovati gubitak svih promjena. Nastaviti zatvaranje?";
diff --git a/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings
index 004cd80f..6fc7c061 100644
--- a/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/hu.lproj/Localizable.strings
@@ -786,4 +786,45 @@ Nyomja meg a kontroller gombját...";
"FilterTitle"="Szűrő";
"EnableManufacturerFilter"="Gyártó szűrő engedélyezése";
"MAMEFileMissingTitle"="Hiányzó játékfájlok";
-"MAMEFileMissingDesc"="Ez a játék egy felosztott ROM készlethez tartozhat, amely szülő vagy BIOS fájlokat igényel a futtatáshoz. Kérjük, importálja a hiányzó fájlokat vagy használjon nem egyesített ROM-ot helyette.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Ez a játék egy felosztott ROM készlethez tartozhat, amely szülő vagy BIOS fájlokat igényel a futtatáshoz. Kérjük, importálja a hiányzó fájlokat vagy használjon nem egyesített ROM-ot helyette.";
+"InputForget" = "Elfelejtettem";
+"ExactlyTextSizeAllowDesc" = "Adj meg pontosan %@ karaktert";
+"EmptyInputNotAllowed" = "A mező nem lehet üres";
+"BlankInputNotAllowed" = "A mező nem tartalmazhat csak szóközöket";
+"ExactlyTextSize" = "A szöveg pontosan %@ karakter hosszú kell legyen";
+"AtSymbolNotAllowed" = "Az @ szimbólum nem engedélyezett";
+"PercentSymbolNotAllowed" = "A %% szimbólum nem engedélyezett";
+"BackslashSymbolNotAllowed" = "A \\ szimbólum nem engedélyezett";
+"DigitsMaximumAllowed" = "Maximum %@ számjegy engedélyezett";
+"Default" = "Alapértelmezett";
+"Imported" = "Importálva";
+"DownloadRetroArchSahders" = "Shader letöltése a RetroArch-ból";
+"ImportShaders" = "Shaderek importálása";
+"Shaders" = "Shaderek";
+"DownloadRetroArchShaders" = "Letöltöd a shadereket a RetroArch-ból? Amint kész, a RetroArch shader kategória automatikusan frissül. Bármikor megszakíthatod ezt a folyamatot a letöltéskezelőben.";
+"RetroArchShaderUnzipFailed" = "Nem sikerült kicsomagolni: %@. A fájl sérülhetett a letöltés során. Kérjük, töltsd le újra.";
+"ImportShader" = "Helyezd a shader fájlokat a ‘Manic EMU-Shaders’ mappába, majd nyisd meg újra ezt az oldalt a shaderek frissítéséhez és betöltéséhez.";
+"CustomShaderDesc" = "Hozz létre egyéni shadereket a meglévők szerkesztésével.";
+"AppendShadersTitle" = "Shaderek hozzáadása";
+"AppendShadersDetail" = "Shaderek hozzáadása az aktuális verem elé vagy mögé";
+"ShaderName" = "Shader neve";
+"Parameters" = "Paraméterek";
+"ShaderEditAlert" = "Amikor szerkesztesz egy shadert, automatikusan létrejön egy új másolat. Megtalálhatod a shader lista ‘Egyéni’ kategóriájában.";
+"ShadersOrder" = "Shaderek sorrendje";
+"Base" = "Alap";
+"NoShaders" = "Nincs elérhető shader";
+"ShaderLoadFailed" = "Shader betöltése sikertelen";
+"ShaderOrderDesc" = "Tartsd nyomva és húzd át a shader rétegek átrendezéséhez";
+"CustomShaderExists" = "Már létezik egy azonos nevű egyéni shader. Lecseréled?";
+"CustomShaderSaveFailed" = "Shader generálása sikertelen. Ellenőrizd a módosításaidat, és próbáld újra.";
+"CustomShaderSaveSuccess" = "%@ sikeresen mentve";
+"CustomShaderTitleWrong" = "Ez a shader név nem elérhető";
+"PlayCasePromo" = "Ezt a skin-t a PlayCase tervezte. PlayCase-szel együtt használva simább és természetesebb irányítási élményt nyújt.
+
+A PlayCase kiváló minőségű iPhone tokokra fókuszál, melyeket kiegészítőkkel és skin-ekkel való kompatibilitással terveznek.
+Ha fejleszteni szeretnéd a beállításod, a PlayCase tökéletes kiegészítője ennek a skin-nek.";
+"LearnPlayCase" = "További információk a PlayCase-ről";
+"DontshowAgain" = "Ne mutasd újra";
+"NotInstallMeloNX" = "A MeloNX nincs telepítve";
+"FetchGamesFromMeloNX" = "Játékok importálása a MeloNX-ből";
+"ChangeAlert" = "A tartalom megváltozott. A bezárás az összes módosítás elvesztéséhez vezet. Folytatja a bezárást?";
diff --git a/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings
index 22c0efc2..a3da7cab 100644
--- a/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/id.lproj/Localizable.strings
@@ -779,4 +779,45 @@ Tekan tombol kontroler...";
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Aktifkan Filter Produsen";
"MAMEFileMissingTitle"="File Game Hilang";
-"MAMEFileMissingDesc"="Game ini mungkin termasuk dalam set ROM terpisah, yang memerlukan file induk atau BIOS-nya untuk dijalankan. Harap impor file yang hilang atau gunakan ROM non-merged sebagai gantinya.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Game ini mungkin termasuk dalam set ROM terpisah, yang memerlukan file induk atau BIOS-nya untuk dijalankan. Harap impor file yang hilang atau gunakan ROM non-merged sebagai gantinya.";
+"InputForget" = "Lupa";
+"ExactlyTextSizeAllowDesc" = "Masukkan tepat %@ karakter";
+"EmptyInputNotAllowed" = "Input tidak boleh kosong";
+"BlankInputNotAllowed" = "Input tidak boleh hanya berisi spasi";
+"ExactlyTextSize" = "Teks harus tepat %@ karakter";
+"AtSymbolNotAllowed" = "Simbol @ tidak diperbolehkan";
+"PercentSymbolNotAllowed" = "Simbol %% tidak diperbolehkan";
+"BackslashSymbolNotAllowed" = "Simbol \\ tidak diperbolehkan";
+"DigitsMaximumAllowed" = "Maksimal %@ digit diperbolehkan";
+"Default" = "Bawaan";
+"Imported" = "Diimpor";
+"DownloadRetroArchSahders" = "Unduh Shader dari RetroArch";
+"ImportShaders" = "Impor Shader";
+"Shaders" = "Shader";
+"DownloadRetroArchShaders" = "Ingin mengunduh shader dari RetroArch? Setelah selesai, kategori shader RetroArch akan diperbarui otomatis. Anda dapat membatalkan proses ini kapan saja di manajer unduhan.";
+"RetroArchShaderUnzipFailed" = "Tidak dapat mengekstrak %@. File mungkin rusak saat diunduh. Silakan coba unduh lagi.";
+"ImportShader" = "Letakkan file shader di folder ‘Manic EMU-Shaders’, lalu buka kembali halaman ini untuk memperbarui dan memuat shader.";
+"CustomShaderDesc" = "Buat shader kustom dengan mengedit shader yang ada.";
+"AppendShadersTitle" = "Tambahkan Shader";
+"AppendShadersDetail" = "Tambahkan shader di awal atau akhir tumpukan saat ini";
+"ShaderName" = "Nama Shader";
+"Parameters" = "Parameter";
+"ShaderEditAlert" = "Saat Anda mengedit shader, salinan baru akan dibuat otomatis. Anda dapat menemukannya di kategori ‘Kustom’ pada daftar shader.";
+"ShadersOrder" = "Urutan Shader";
+"Base" = "Dasar";
+"NoShaders" = "Tidak Ada Shader Tersedia";
+"ShaderLoadFailed" = "Gagal memuat shader";
+"ShaderOrderDesc" = "Tekan dan tahan, lalu seret untuk mengubah urutan lapisan shader";
+"CustomShaderExists" = "Sudah ada shader kustom dengan nama yang sama. Ganti?";
+"CustomShaderSaveFailed" = "Gagal menghasilkan shader. Periksa suntingan Anda dan coba lagi.";
+"CustomShaderSaveSuccess" = "%@ berhasil disimpan";
+"CustomShaderTitleWrong" = "Nama shader ini tidak tersedia";
+"PlayCasePromo" = "Skin ini didesain oleh PlayCase. Saat dipasangkan dengan PlayCase, memberikan pengalaman kontrol yang lebih halus dan alami.
+
+PlayCase fokus pada casing iPhone berkualitas tinggi, dibuat dengan mempertimbangkan kompatibilitas aksesori dan skin.
+Jika Anda ingin meningkatkan setup Anda, PlayCase adalah pasangan sempurna untuk skin ini.";
+"LearnPlayCase" = "Pelajari Lebih Lanjut tentang PlayCase";
+"DontshowAgain" = "Jangan Tampilkan Lagi";
+"NotInstallMeloNX" = "MeloNX Belum Terpasang";
+"FetchGamesFromMeloNX" = "Impor Game dari MeloNX";
+"ChangeAlert" = "Konten telah diubah. Menutup sekarang akan menghapus semua perubahan. Lanjutkan menutup?";
diff --git a/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings
index 5b3dff17..a075b22c 100644
--- a/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/it.lproj/Localizable.strings
@@ -790,4 +790,45 @@ Premi il pulsante del controller...";
"FilterTitle"="Filtro";
"EnableManufacturerFilter"="Attiva filtro produttore";
"MAMEFileMissingTitle"="File di gioco mancanti";
-"MAMEFileMissingDesc"="Questo gioco potrebbe appartenere a un set ROM diviso, che richiede i suoi file parent o BIOS per essere eseguito. Si prega di importare i file mancanti o utilizzare un ROM non unito.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Questo gioco potrebbe appartenere a un set ROM diviso, che richiede i suoi file parent o BIOS per essere eseguito. Si prega di importare i file mancanti o utilizzare un ROM non unito.";
+"InputForget" = "Password dimenticata";
+"ExactlyTextSizeAllowDesc" = "Inserisci esattamente %@ caratteri";
+"EmptyInputNotAllowed" = "Il campo non può essere vuoto";
+"BlankInputNotAllowed" = "Il campo non può contenere solo spazi";
+"ExactlyTextSize" = "Il testo deve essere esattamente di %@ caratteri";
+"AtSymbolNotAllowed" = "Il simbolo @ non è consentito";
+"PercentSymbolNotAllowed" = "Il simbolo %% non è consentito";
+"BackslashSymbolNotAllowed" = "Il simbolo \\ non è consentito";
+"DigitsMaximumAllowed" = "Sono consentiti fino a %@ cifre";
+"Default" = "Predefinito";
+"Imported" = "Importato";
+"DownloadRetroArchSahders" = "Scarica shader da RetroArch";
+"ImportShaders" = "Importa shader";
+"Shaders" = "Shader";
+"DownloadRetroArchShaders" = "Vuoi scaricare gli shader da RetroArch? Una volta completato, la categoria degli shader RetroArch si aggiornerà automaticamente. Puoi annullare questa operazione in qualsiasi momento dal gestore download.";
+"RetroArchShaderUnzipFailed" = "Impossibile estrarre %@. Il file potrebbe essersi danneggiato durante il download. Riprova.";
+"ImportShader" = "Inserisci i file degli shader nella cartella ‘Manic EMU-Shaders’, quindi riapri questa pagina per aggiornare e caricare gli shader.";
+"CustomShaderDesc" = "Crea shader personalizzati modificando quelli esistenti.";
+"AppendShadersTitle" = "Aggiungi shader";
+"AppendShadersDetail" = "Aggiungi shader all’inizio o alla fine dello stack corrente";
+"ShaderName" = "Nome shader";
+"Parameters" = "Parametri";
+"ShaderEditAlert" = "Quando modifichi uno shader, viene creata automaticamente una nuova copia. La troverai nella categoria ‘Personalizzato’ della lista shader.";
+"ShadersOrder" = "Ordine shader";
+"Base" = "Base";
+"NoShaders" = "Nessuno shader disponibile";
+"ShaderLoadFailed" = "Caricamento shader fallito";
+"ShaderOrderDesc" = "Tieni premuto e trascina per riordinare le sovrapposizioni shader";
+"CustomShaderExists" = "Esiste già uno shader personalizzato con lo stesso nome. Vuoi sostituirlo?";
+"CustomShaderSaveFailed" = "Generazione shader fallita. Controlla le modifiche e riprova.";
+"CustomShaderSaveSuccess" = "%@ salvato correttamente";
+"CustomShaderTitleWrong" = "Questo nome shader non è disponibile";
+"PlayCasePromo" = "Questa skin è progettata da PlayCase. Se usata con un PlayCase, offre un’esperienza di controllo più fluida e naturale.
+
+PlayCase si concentra su custodie iPhone di alta qualità, realizzate pensando alla compatibilità con accessori e skin.
+Se vuoi migliorare il tuo setup, PlayCase è l’abbinamento perfetto per questa skin.";
+"LearnPlayCase" = "Scopri PlayCase";
+"DontshowAgain" = "Non mostrare più";
+"NotInstallMeloNX" = "MeloNX non installato";
+"FetchGamesFromMeloNX" = "Importa giochi da MeloNX";
+"ChangeAlert" = "Il contenuto è stato modificato. Chiudendo ora andranno perse tutte le modifiche. Continuare a chiudere?";
diff --git a/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings
index 32d2cc78..b41aac52 100644
--- a/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ja.lproj/Localizable.strings
@@ -783,4 +783,45 @@
"FilterTitle"="フィルター";
"EnableManufacturerFilter"="メーカーフィルターを有効にする";
"MAMEFileMissingTitle"="ゲームファイルが不足しています";
-"MAMEFileMissingDesc"="このゲームはSplitタイプのROMセットに属している可能性があり、実行には親ROMまたはBIOSファイルが必要です。不足しているファイルをインポートするか、non-mergedタイプのROMを使用してください。";
\ No newline at end of file
+"MAMEFileMissingDesc"="このゲームはSplitタイプのROMセットに属している可能性があり、実行には親ROMまたはBIOSファイルが必要です。不足しているファイルをインポートするか、non-mergedタイプのROMを使用してください。";
+"InputForget" = "忘れた";
+"ExactlyTextSizeAllowDesc" = "ちょうど %@ 文字入力してください";
+"EmptyInputNotAllowed" = "入力は空にできません";
+"BlankInputNotAllowed" = "スペースのみの入力はできません";
+"ExactlyTextSize" = "テキストはちょうど %@ 文字である必要があります";
+"AtSymbolNotAllowed" = "@ 記号は使用できません";
+"PercentSymbolNotAllowed" = "%% 記号は使用できません";
+"BackslashSymbolNotAllowed" = "\\ 記号は使用できません";
+"DigitsMaximumAllowed" = "最大 %@ 桁まで入力可能";
+"Default" = "デフォルト";
+"Imported" = "インポート済み";
+"DownloadRetroArchSahders" = "RetroArchからシェーダーをダウンロード";
+"ImportShaders" = "シェーダーをインポート";
+"Shaders" = "シェーダー";
+"DownloadRetroArchShaders" = "RetroArchからシェーダーをダウンロードしますか?完了すると、RetroArchシェーダーカテゴリが自動的に更新されます。ダウンロードマネージャーでいつでもこの処理をキャンセルできます。";
+"RetroArchShaderUnzipFailed" = "%@ を解凍できませんでした。ダウンロード中にファイルが破損した可能性があります。再度ダウンロードをお試しください。";
+"ImportShader" = "シェーダーファイルを「Manic EMU-Shaders」フォルダに配置し、このページを再表示するとシェーダーが読み込まれます。";
+"CustomShaderDesc" = "既存のシェーダーを編集して、カスタムシェーダーを作成します。";
+"AppendShadersTitle" = "シェーダー追加";
+"AppendShadersDetail" = "現在のシェーダーリストの前または後に追加できます";
+"ShaderName" = "シェーダー名";
+"Parameters" = "パラメータ";
+"ShaderEditAlert" = "シェーダーを編集すると、新しいコピーが自動的に作成されます。シェーダーリストの「カスタム」カテゴリで確認できます。";
+"ShadersOrder" = "シェーダー順序";
+"Base" = "ベース";
+"NoShaders" = "利用可能なシェーダーはありません";
+"ShaderLoadFailed" = "シェーダーの読み込みに失敗しました";
+"ShaderOrderDesc" = "長押ししてドラッグし、シェーダーの重ね順を変更します";
+"CustomShaderExists" = "同名のカスタムシェーダーが既に存在します。置き換えますか?";
+"CustomShaderSaveFailed" = "シェーダーの生成に失敗しました。編集内容を確認して再度お試しください。";
+"CustomShaderSaveSuccess" = "%@ を保存しました";
+"CustomShaderTitleWrong" = "このシェーダー名は使用できません";
+"PlayCasePromo" = "このスキンはPlayCaseによってデザインされています。PlayCaseと組み合わせて使用すると、よりスムーズで自然な操作感が得られます。
+
+PlayCaseは、アクセサリーやスキンとの互換性を考慮して作られた高品質なiPhoneケースに焦点を当てています。
+あなたのセットアップをさらに向上させたいなら、PlayCaseはこのスキンに最適なパートナーです。";
+"LearnPlayCase" = "PlayCaseについて詳しく知る";
+"DontshowAgain" = "今後表示しない";
+"NotInstallMeloNX" = "MeloNXがインストールされていません";
+"FetchGamesFromMeloNX" = "MeloNXからゲームをインポート";
+"ChangeAlert" = "内容が変更されました。閉じると変更は失われます。閉じてもよろしいですか?";
diff --git a/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings
index 5c56acdf..de29ea9d 100644
--- a/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ko.lproj/Localizable.strings
@@ -790,4 +790,45 @@
"FilterTitle"="필터";
"EnableManufacturerFilter"="제조사 필터 활성화";
"MAMEFileMissingTitle"="게임 파일 누락";
-"MAMEFileMissingDesc"="이 게임은 분할 ROM 세트에 속할 수 있으며, 실행하려면 부모 또는 BIOS 파일이 필요합니다. 누락된 파일을 가져오거나 non-merged ROM을 사용하세요.";
\ No newline at end of file
+"MAMEFileMissingDesc"="이 게임은 분할 ROM 세트에 속할 수 있으며, 실행하려면 부모 또는 BIOS 파일이 필요합니다. 누락된 파일을 가져오거나 non-merged ROM을 사용하세요.";
+"InputForget" = "잊어버림";
+"ExactlyTextSizeAllowDesc" = "정확히 %@자를 입력하세요";
+"EmptyInputNotAllowed" = "입력란을 비울 수 없습니다";
+"BlankInputNotAllowed" = "공백만 입력할 수 없습니다";
+"ExactlyTextSize" = "텍스트는 정확히 %@자여야 합니다";
+"AtSymbolNotAllowed" = "@ 기호는 사용할 수 없습니다";
+"PercentSymbolNotAllowed" = "%% 기호는 사용할 수 없습니다";
+"BackslashSymbolNotAllowed" = "\\ 기호는 사용할 수 없습니다";
+"DigitsMaximumAllowed" = "최대 %@자리 숫자까지 허용";
+"Default" = "기본";
+"Imported" = "가져옴";
+"DownloadRetroArchSahders" = "RetroArch에서 셰이더 다운로드";
+"ImportShaders" = "셰이더 가져오기";
+"Shaders" = "셰이더";
+"DownloadRetroArchShaders" = "RetroArch에서 셰이더를 다운로드하시겠습니까? 완료되면 RetroArch 셰이더 카테고리가 자동으로 새로고침됩니다. 다운로드 관리자에서 언제든지 이 작업을 취소할 수 있습니다.";
+"RetroArchShaderUnzipFailed" = "%@의 압축을 풀 수 없습니다. 다운로드 중 파일이 손상되었을 수 있습니다. 다시 다운로드해 보세요.";
+"ImportShader" = "셰이더 파일을 ‘Manic EMU-Shaders’ 폴더에 넣고, 이 페이지를 다시 열어 셰이더를 새로고침하고 로드하세요.";
+"CustomShaderDesc" = "기존 셰이더를 편집하여 사용자 지정 셰이더를 만듭니다.";
+"AppendShadersTitle" = "셰이더 추가";
+"AppendShadersDetail" = "현재 셰이더 스택의 앞이나 뒤에 셰이더를 추가할 수 있습니다";
+"ShaderName" = "셰이더 이름";
+"Parameters" = "매개변수";
+"ShaderEditAlert" = "셰이더를 편집하면 자동으로 새 사본이 생성됩니다. 셰이더 목록의 ‘사용자 지정’ 카테고리에서 찾을 수 있습니다.";
+"ShadersOrder" = "셰이더 순서";
+"Base" = "기본";
+"NoShaders" = "사용 가능한 셰이더 없음";
+"ShaderLoadFailed" = "셰이더를 불러오지 못했습니다";
+"ShaderOrderDesc" = "길게 누른 후 드래그하여 셰이더 오버레이 순서를 변경합니다";
+"CustomShaderExists" = "같은 이름의 사용자 지정 셰이더가 이미 있습니다. 교체하시겠습니까?";
+"CustomShaderSaveFailed" = "셰이더 생성에 실패했습니다. 수정 사항을 확인한 후 다시 시도하세요.";
+"CustomShaderSaveSuccess" = "%@ 저장 성공";
+"CustomShaderTitleWrong" = "이 셰이더 이름을 사용할 수 없습니다";
+"PlayCasePromo" = "이 스킨은 PlayCase가 디자인했습니다. PlayCase와 함께 사용하면 더 부드럽고 자연스러운 조작 경험을 제공합니다.
+
+PlayCase는 액세서리 및 스킨 호환성을 고려하여 제작된 고품질 iPhone 케이스에 중점을 둡니다.
+설정을 업그레이드하고 싶다면, PlayCase는 이 스킨의 완벽한 파트너입니다.";
+"LearnPlayCase" = "PlayCase에 대해 알아보기";
+"DontshowAgain" = "다시 보지 않기";
+"NotInstallMeloNX" = "MeloNX가 설치되지 않았습니다";
+"FetchGamesFromMeloNX" = "MeloNX에서 게임 가져오기";
+"ChangeAlert" = "내용이 변경되었습니다. 닫으면 모든 변경 사항이 손실됩니다. 계속 닫으시겠습니까?";
diff --git a/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings
index 5fd7ee83..8a28d8b7 100644
--- a/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ms.lproj/Localizable.strings
@@ -760,4 +760,45 @@ Tekan butang pengawal...";
"FilterTitle"="Penapis";
"EnableManufacturerFilter"="Dayakan Penapis Pengeluar";
"MAMEFileMissingTitle"="Fail Permainan Hilang";
-"MAMEFileMissingDesc"="Permainan ini mungkin tergolong dalam set ROM terpisah, yang memerlukan fail induk atau BIOSnya untuk dijalankan. Sila import fail yang hilang atau gunakan ROM tidak bergabung sebagai gantinya.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Permainan ini mungkin tergolong dalam set ROM terpisah, yang memerlukan fail induk atau BIOSnya untuk dijalankan. Sila import fail yang hilang atau gunakan ROM tidak bergabung sebagai gantinya.";
+"InputForget" = "Lupa";
+"ExactlyTextSizeAllowDesc" = "Masukkan tepat %@ aksara";
+"EmptyInputNotAllowed" = "Input tidak boleh kosong";
+"BlankInputNotAllowed" = "Input tidak boleh hanya mengandungi ruang kosong";
+"ExactlyTextSize" = "Teks mesti tepat %@ aksara panjang";
+"AtSymbolNotAllowed" = "Simbol @ tidak dibenarkan";
+"PercentSymbolNotAllowed" = "Simbol %% tidak dibenarkan";
+"BackslashSymbolNotAllowed" = "Simbol \\ tidak dibenarkan";
+"DigitsMaximumAllowed" = "Sehingga %@ digit dibenarkan";
+"Default" = "Lalai";
+"Imported" = "Diimport";
+"DownloadRetroArchSahders" = "Muat Turun Shader daripada RetroArch";
+"ImportShaders" = "Import Shader";
+"Shaders" = "Shader";
+"DownloadRetroArchShaders" = "Mahu muat turun shader daripada RetroArch? Setelah selesai, kategori shader RetroArch akan dikemas kini secara automatik. Anda boleh batalkan proses ini pada bila-bila masa di pengurus muat turun.";
+"RetroArchShaderUnzipFailed" = "Tidak dapat mengekstrak %@. Fail mungkin rosak semasa muat turun. Sila cuba muat turun semula.";
+"ImportShader" = "Letakkan fail shader dalam folder ‘Manic EMU-Shaders’, kemudian buka semula halaman ini untuk mengemas kini dan memuatkan shader.";
+"CustomShaderDesc" = "Buat shader tersuai dengan mengedit shader sedia ada.";
+"AppendShadersTitle" = "Tambahkan Shader";
+"AppendShadersDetail" = "Tambahkan shader di hadapan atau belakang tindanan semasa";
+"ShaderName" = "Nama Shader";
+"Parameters" = "Parameter";
+"ShaderEditAlert" = "Apabila anda menyunting shader, salinan baharu akan diwujudkan secara automatik. Anda boleh menemuinya dalam kategori ‘Tersuai’ dalam senarai shader.";
+"ShadersOrder" = "Susunan Shader";
+"Base" = "Asas";
+"NoShaders" = "Tiada Shader Tersedia";
+"ShaderLoadFailed" = "Gagal memuatkan shader";
+"ShaderOrderDesc" = "Tekan dan tahan, kemudian seret untuk menyusun semula lapisan shader";
+"CustomShaderExists" = "Shader tersuai dengan nama yang sama sudah wujud. Gantikan?";
+"CustomShaderSaveFailed" = "Gagal menjana shader. Sila semak suntingan anda dan cuba lagi.";
+"CustomShaderSaveSuccess" = "%@ berjaya disimpan";
+"CustomShaderTitleWrong" = "Nama shader ini tidak tersedia";
+"PlayCasePromo" = "Skin ini direka oleh PlayCase. Apabila dipasangkan dengan PlayCase, ia memberikan pengalaman kawalan yang lebih lancar dan semula jadi.
+
+PlayCase memberi tumpuan kepada kes iPhone berkualiti tinggi, dibina dengan keserasian aksesori dan skin dalam minda.
+Jika anda ingin meningkatkan persediaan anda, PlayCase adalah padanan sempurna untuk skin ini.";
+"LearnPlayCase" = "Ketahui Lebih Lanjut Tentang PlayCase";
+"DontshowAgain" = "Jangan Tunjukkan Lagi";
+"NotInstallMeloNX" = "MeloNX Tidak Dipasang";
+"FetchGamesFromMeloNX" = "Import Permainan daripada MeloNX";
+"ChangeAlert" = "Kandungan telah berubah. Menutup sekarang akan menghilangkan semua perubahan. Teruskan menutup?";
diff --git a/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings
index 0ac8f132..43a59da9 100644
--- a/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/nb.lproj/Localizable.strings
@@ -778,4 +778,45 @@ Trykk på kontrollerknappen...";
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Aktiver produsentfilter";
"MAMEFileMissingTitle"="Manglende spillfiler";
-"MAMEFileMissingDesc"="Dette spillet kan tilhøre et delt ROM-sett, som krever dets overordnede eller BIOS-filer for å kjøre. Vennligst importer de manglende filene eller bruk en ikke-sammenslått ROM i stedet.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Dette spillet kan tilhøre et delt ROM-sett, som krever dets overordnede eller BIOS-filer for å kjøre. Vennligst importer de manglende filene eller bruk en ikke-sammenslått ROM i stedet.";
+"InputForget" = "Glemt";
+"ExactlyTextSizeAllowDesc" = "Skriv inn nøyaktig %@ tegn";
+"EmptyInputNotAllowed" = "Feltet kan ikke stå tomt";
+"BlankInputNotAllowed" = "Feltet kan ikke bare inneholde mellomrom";
+"ExactlyTextSize" = "Teksten må være nøyaktig %@ tegn lang";
+"AtSymbolNotAllowed" = "@-symbolet er ikke tillatt";
+"PercentSymbolNotAllowed" = "%%-symbolet er ikke tillatt";
+"BackslashSymbolNotAllowed" = "\\-symbolet er ikke tillatt";
+"DigitsMaximumAllowed" = "Opptil %@ siffer er tillatt";
+"Default" = "Standard";
+"Imported" = "Importert";
+"DownloadRetroArchSahders" = "Last ned shadere fra RetroArch";
+"ImportShaders" = "Importer shadere";
+"Shaders" = "Shadere";
+"DownloadRetroArchShaders" = "Vil du laste ned shadere fra RetroArch? Når fullført, vil RetroArchs shaderkategori automatisk bli oppdatert. Du kan avbryte denne prosessen når som helst i nedlastingsbehandleren.";
+"RetroArchShaderUnzipFailed" = "Kunne ikke pakke ut %@. Filen kan ha blitt skadet under nedlastingen. Prøv å laste den ned på nytt.";
+"ImportShader" = "Plasser shader-filene i mappen ‘Manic EMU-Shaders’, og åpne denne siden på nytt for å oppdatere og laste shadere.";
+"CustomShaderDesc" = "Lag egendefinerte shadere ved å redigere eksisterende.";
+"AppendShadersTitle" = "Legg til shadere";
+"AppendShadersDetail" = "Legg til shadere foran eller bak den gjeldende stabelen";
+"ShaderName" = "Shadernavn";
+"Parameters" = "Parametere";
+"ShaderEditAlert" = "Når du redigerer en shader, blir en ny kopi automatisk opprettet. Du finner den under kategorien ‘Egendefinert’ i shaderlisten.";
+"ShadersOrder" = "Shadere-rekkefølge";
+"Base" = "Grunnleggende";
+"NoShaders" = "Ingen shadere tilgjengelig";
+"ShaderLoadFailed" = "Kunne ikke laste shader";
+"ShaderOrderDesc" = "Hold inne og dra for å endre rekkefølgen på shader-overleggene";
+"CustomShaderExists" = "Det finnes allerede en egendefinert shader med samme navn. Vil du erstatte den?";
+"CustomShaderSaveFailed" = "Kunne ikke generere shaderen. Se over endringene dine og prøv på nytt.";
+"CustomShaderSaveSuccess" = "%@ ble lagret";
+"CustomShaderTitleWrong" = "Dette shadernavnet er ikke tilgjengelig";
+"PlayCasePromo" = "Dette skinnet er designet av PlayCase. Når det brukes sammen med en PlayCase, gir det en jevnere og mer naturlig kontrollopplevelse.
+
+PlayCase fokuserer på høykvalitets iPhone-deksler, designet med tanke på kompatibilitet med tilbehør og skinn.
+Hvis du vil forbedre oppsettet ditt, er PlayCase et perfekt tilbehør til dette skinnet.";
+"LearnPlayCase" = "Lær mer om PlayCase";
+"DontshowAgain" = "Ikke vis igjen";
+"NotInstallMeloNX" = "MeloNX er ikke installert";
+"FetchGamesFromMeloNX" = "Importer spill fra MeloNX";
+"ChangeAlert" = "Innholdet er endret. Hvis du lukker nå, vil alle endringer gå tapt. Fortsette å lukke?";
diff --git a/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings
index 6ec28616..00b1cc1c 100644
--- a/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/nl.lproj/Localizable.strings
@@ -787,4 +787,45 @@ Druk op de controllerknop...";
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Fabrikantfilter inschakelen";
"MAMEFileMissingTitle"="Ontbrekende spelbestanden";
-"MAMEFileMissingDesc"="Dit spel kan deel uitmaken van een gesplitste ROM-set, waarvoor de bovenliggende of BIOS-bestanden nodig zijn om te werken. Importeer de ontbrekende bestanden of gebruik in plaats daarvan een niet-samengevoegde ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Dit spel kan deel uitmaken van een gesplitste ROM-set, waarvoor de bovenliggende of BIOS-bestanden nodig zijn om te werken. Importeer de ontbrekende bestanden of gebruik in plaats daarvan een niet-samengevoegde ROM.";
+"InputForget" = "Vergeten";
+"ExactlyTextSizeAllowDesc" = "Voer precies %@ tekens in";
+"EmptyInputNotAllowed" = "Invoer mag niet leeg zijn";
+"BlankInputNotAllowed" = "Invoer mag niet alleen spaties bevatten";
+"ExactlyTextSize" = "Tekst moet precies %@ tekens lang zijn";
+"AtSymbolNotAllowed" = "Het @-symbool is niet toegestaan";
+"PercentSymbolNotAllowed" = "Het %%-symbool is niet toegestaan";
+"BackslashSymbolNotAllowed" = "Het \\-symbool is niet toegestaan";
+"DigitsMaximumAllowed" = "Maximaal %@ cijfers toegestaan";
+"Default" = "Standaard";
+"Imported" = "Geïmporteerd";
+"DownloadRetroArchSahders" = "Shaders downloaden van RetroArch";
+"ImportShaders" = "Shaders importeren";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Shaders van RetroArch downloaden? Na voltooiing wordt de RetroArch shader-categorie automatisch ververst. Je kunt dit proces op elk moment annuleren in de downloadmanager.";
+"RetroArchShaderUnzipFailed" = "%@ kon niet worden uitgepakt. Het bestand is mogelijk beschadigd tijdens het downloaden. Probeer het opnieuw te downloaden.";
+"ImportShader" = "Plaats de shaderbestanden in de map ‘Manic EMU-Shaders’ en open deze pagina opnieuw om de shaders te verversen en laden.";
+"CustomShaderDesc" = "Maak aangepaste shaders door bestaande shaders te bewerken.";
+"AppendShadersTitle" = "Shaders toevoegen";
+"AppendShadersDetail" = "Shaders vooraan of achteraan de huidige stapel toevoegen";
+"ShaderName" = "Shadernaam";
+"Parameters" = "Parameters";
+"ShaderEditAlert" = "Wanneer je een shader bewerkt, wordt automatisch een nieuwe kopie gemaakt. Je vindt deze in de categorie ‘Aangepast’ in de shaderlijst.";
+"ShadersOrder" = "Shadervolgorde";
+"Base" = "Basis";
+"NoShaders" = "Geen shaders beschikbaar";
+"ShaderLoadFailed" = "Shader laden mislukt";
+"ShaderOrderDesc" = "Houd ingedrukt en sleep om de volgorde van shaderoverlays te wijzigen";
+"CustomShaderExists" = "Er bestaat al een aangepaste shader met dezelfde naam. Wil je deze vervangen?";
+"CustomShaderSaveFailed" = "Genereren van shader mislukt. Controleer je wijzigingen en probeer het opnieuw.";
+"CustomShaderSaveSuccess" = "%@ is opgeslagen";
+"CustomShaderTitleWrong" = "Deze shadernaam is niet beschikbaar";
+"PlayCasePromo" = "Deze skin is ontworpen door PlayCase. In combinatie met een PlayCase biedt het een soepelere en natuurlijkere bedieningservaring.
+
+PlayCase richt zich op hoogwaardige iPhone-hoesjes, ontworpen met compatibiliteit voor accessoires en skins in het achterhoofd.
+Als je je setup naar een hoger niveau wilt tillen, is PlayCase de perfecte match voor deze skin.";
+"LearnPlayCase" = "Meer over PlayCase";
+"DontshowAgain" = "Niet meer tonen";
+"NotInstallMeloNX" = "MeloNX is niet geïnstalleerd";
+"FetchGamesFromMeloNX" = "Games importeren vanuit MeloNX";
+"ChangeAlert" = "De inhoud is gewijzigd. Sluiten nu zal alle wijzigingen verwijderen. Doorgaan met sluiten?";
diff --git a/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings
index c2356b29..7edb8041 100644
--- a/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/pl.lproj/Localizable.strings
@@ -761,4 +761,45 @@ Naciśnij przycisk kontrolera...";
"FilterTitle"="Filtr";
"EnableManufacturerFilter"="Włącz filtr producenta";
"MAMEFileMissingTitle"="Brakujące pliki gry";
-"MAMEFileMissingDesc"="Ta gra może należeć do podzielonego zestawu ROM, który wymaga swoich nadrzędnych lub BIOS plików do uruchomienia. Proszę zaimportować brakujące pliki lub użyć zamiast tego ROM niepołączonego.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Ta gra może należeć do podzielonego zestawu ROM, który wymaga swoich nadrzędnych lub BIOS plików do uruchomienia. Proszę zaimportować brakujące pliki lub użyć zamiast tego ROM niepołączonego.";
+"InputForget" = "Zapomniałem";
+"ExactlyTextSizeAllowDesc" = "Wprowadź dokładnie %@ znaków";
+"EmptyInputNotAllowed" = "Pole nie może być puste";
+"BlankInputNotAllowed" = "Pole nie może zawierać tylko spacji";
+"ExactlyTextSize" = "Tekst musi mieć dokładnie %@ znaków";
+"AtSymbolNotAllowed" = "Symbol @ jest niedozwolony";
+"PercentSymbolNotAllowed" = "Symbol %% jest niedozwolony";
+"BackslashSymbolNotAllowed" = "Symbol \\ jest niedozwolony";
+"DigitsMaximumAllowed" = "Dozwolone do %@ cyfr";
+"Default" = "Domyślny";
+"Imported" = "Zaimportowano";
+"DownloadRetroArchSahders" = "Pobierz shadery z RetroArch";
+"ImportShaders" = "Importuj shadery";
+"Shaders" = "Shadery";
+"DownloadRetroArchShaders" = "Czy chcesz pobrać shadery z RetroArch? Po zakończeniu kategoria shaderów RetroArch odświeży się automatycznie. Możesz anulować ten proces w dowolnym momencie w menedżerze pobierania.";
+"RetroArchShaderUnzipFailed" = "Nie można wypakować %@. Plik mógł ulec uszkodzeniu podczas pobierania. Spróbuj pobrać go ponownie.";
+"ImportShader" = "Umieść pliki shaderów w folderze ‘Manic EMU-Shaders’, a następnie otwórz ponownie tę stronę, aby odświeżyć i załadować shadery.";
+"CustomShaderDesc" = "Twórz niestandardowe shadery, edytując istniejące.";
+"AppendShadersTitle" = "Dodaj shadery";
+"AppendShadersDetail" = "Dodaj shadery na początek lub koniec obecnego stosu";
+"ShaderName" = "Nazwa shadera";
+"Parameters" = "Parametry";
+"ShaderEditAlert" = "Podczas edycji shadera automatycznie tworzona jest nowa kopia. Znajdziesz ją w kategorii ‘Niestandardowe’ na liście shaderów.";
+"ShadersOrder" = "Kolejność shaderów";
+"Base" = "Bazowy";
+"NoShaders" = "Brak dostępnych shaderów";
+"ShaderLoadFailed" = "Nie udało się załadować shadera";
+"ShaderOrderDesc" = "Przytrzymaj i przeciągnij, aby zmienić kolejność nakładek shaderów";
+"CustomShaderExists" = "Istnieje już niestandardowy shader o tej samej nazwie. Czy chcesz go zastąpić?";
+"CustomShaderSaveFailed" = "Nie udało się wygenerować shadera. Sprawdź wprowadzone zmiany i spróbuj ponownie.";
+"CustomShaderSaveSuccess" = "Pomyślnie zapisano %@";
+"CustomShaderTitleWrong" = "Ta nazwa shadera jest niedostępna";
+"PlayCasePromo" = "Ta skórka została zaprojektowana przez PlayCase. W połączeniu z PlayCase zapewnia płynniejsze i bardziej naturalne wrażenia z kontroli.
+
+PlayCase koncentruje się na wysokiej jakości etui na iPhone'a, zaprojektowanych z myślą o kompatybilności z akcesoriami i skórkami.
+Jeśli chcesz ulepszyć swoją konfigurację, PlayCase jest idealnym uzupełnieniem tej skórki.";
+"LearnPlayCase" = "Dowiedz się więcej o PlayCase";
+"DontshowAgain" = "Nie pokazuj ponownie";
+"NotInstallMeloNX" = "MeloNX nie jest zainstalowany";
+"FetchGamesFromMeloNX" = "Importuj gry z MeloNX";
+"ChangeAlert" = "Treść została zmieniona. Zamknięcie spowoduje utratę zmian. Kontynuować zamykanie?";
diff --git a/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings
index c7933732..ce68e41d 100644
--- a/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/pt-BR.lproj/Localizable.strings
@@ -787,4 +787,45 @@ Pressione o botão do controle...";
"FilterTitle"="Filtro";
"EnableManufacturerFilter"="Ativar filtro de fabricante";
"MAMEFileMissingTitle"="Arquivos de jogo faltantes";
-"MAMEFileMissingDesc"="Este jogo pode pertencer a um conjunto ROM dividido, que requer seus arquivos pai ou BIOS para executar. Por favor importe os arquivos faltantes ou use um ROM não mesclado.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Este jogo pode pertencer a um conjunto ROM dividido, que requer seus arquivos pai ou BIOS para executar. Por favor importe os arquivos faltantes ou use um ROM não mesclado.";
+"InputForget" = "Esqueci";
+"ExactlyTextSizeAllowDesc" = "Digite exatamente %@ caracteres";
+"EmptyInputNotAllowed" = "A entrada não pode ficar em branco";
+"BlankInputNotAllowed" = "A entrada não pode conter apenas espaços";
+"ExactlyTextSize" = "O texto deve ter exatamente %@ caracteres";
+"AtSymbolNotAllowed" = "O símbolo @ não é permitido";
+"PercentSymbolNotAllowed" = "O símbolo %% não é permitido";
+"BackslashSymbolNotAllowed" = "O símbolo \\ não é permitido";
+"DigitsMaximumAllowed" = "Máximo de %@ dígitos permitidos";
+"Default" = "Padrão";
+"Imported" = "Importado";
+"DownloadRetroArchSahders" = "Baixar shaders do RetroArch";
+"ImportShaders" = "Importar shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Gostaria de baixar shaders do RetroArch? Ao concluir, a categoria de shaders do RetroArch será atualizada automaticamente. Você pode cancelar a qualquer momento no gerenciador de downloads.";
+"RetroArchShaderUnzipFailed" = "Não foi possível extrair %@. O arquivo pode ter sido corrompido durante o download. Tente baixá-lo novamente.";
+"ImportShader" = "Coloque os arquivos de shader na pasta ‘Manic EMU-Shaders’ e reabra esta página para atualizar e carregar os shaders.";
+"CustomShaderDesc" = "Crie shaders personalizados editando os existentes.";
+"AppendShadersTitle" = "Acrescentar shaders";
+"AppendShadersDetail" = "Adicionar shaders no início ou no final da pilha atual";
+"ShaderName" = "Nome do shader";
+"Parameters" = "Parâmetros";
+"ShaderEditAlert" = "Ao editar um shader, uma nova cópia é criada automaticamente. Você a encontrará na categoria ‘Personalizado’ da lista de shaders.";
+"ShadersOrder" = "Ordem dos shaders";
+"Base" = "Base";
+"NoShaders" = "Nenhum shader disponível";
+"ShaderLoadFailed" = "Falha ao carregar o shader";
+"ShaderOrderDesc" = "Mantenha pressionado e arraste para reordenar as sobreposições de shader";
+"CustomShaderExists" = "Já existe um shader personalizado com o mesmo nome. Deseja substituí-lo?";
+"CustomShaderSaveFailed" = "Falha ao gerar o shader. Revise suas edições e tente novamente.";
+"CustomShaderSaveSuccess" = "%@ foi salvo com sucesso";
+"CustomShaderTitleWrong" = "Este nome de shader não está disponível";
+"PlayCasePromo" = "Este tema foi projetado pela PlayCase. Ao ser usado com uma capa PlayCase, proporciona uma experiência de controle mais suave e natural.
+
+A PlayCase foca em capas iPhone de alta qualidade, projetadas com compatibilidade de acessórios e temas em mente.
+Se você deseja aprimorar sua configuração, a PlayCase é o complemento perfeito para este tema.";
+"LearnPlayCase" = "Saiba mais sobre a PlayCase";
+"DontshowAgain" = "Não mostrar novamente";
+"NotInstallMeloNX" = "MeloNX não está instalado";
+"FetchGamesFromMeloNX" = "Importar jogos do MeloNX";
+"ChangeAlert" = "O conteúdo foi alterado. Fechar agora resultará na perda das alterações. Continuar fechando?";
diff --git a/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings
index 834947d5..fc1b6013 100644
--- a/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/pt-PT.lproj/Localizable.strings
@@ -788,4 +788,45 @@ Pressione o botão do comando...";
"FilterTitle"="Filtro";
"EnableManufacturerFilter"="Ativar filtro de fabricante";
"MAMEFileMissingTitle"="Ficheiros de jogo em falta";
-"MAMEFileMissingDesc"="Este jogo pode pertencer a um conjunto ROM dividido, que requer os seus ficheiros pai ou BIOS para executar. Por favor importe os ficheiros em falta ou use um ROM não fundido.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Este jogo pode pertencer a um conjunto ROM dividido, que requer os seus ficheiros pai ou BIOS para executar. Por favor importe os ficheiros em falta ou use um ROM não fundido.";
+"InputForget" = "Esqueci";
+"ExactlyTextSizeAllowDesc" = "Introduza exatamente %@ caracteres";
+"EmptyInputNotAllowed" = "A entrada não pode ficar vazia";
+"BlankInputNotAllowed" = "A entrada não pode conter apenas espaços";
+"ExactlyTextSize" = "O texto tem de ter exatamente %@ caracteres";
+"AtSymbolNotAllowed" = "O símbolo @ não é permitido";
+"PercentSymbolNotAllowed" = "O símbolo %% não é permitido";
+"BackslashSymbolNotAllowed" = "O símbolo \\ não é permitido";
+"DigitsMaximumAllowed" = "Máximo de %@ dígitos permitidos";
+"Default" = "Predefinido";
+"Imported" = "Importado";
+"DownloadRetroArchSahders" = "Transferir shaders do RetroArch";
+"ImportShaders" = "Importar shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Pretende transferir shaders do RetroArch? Após conclusão, a categoria de shaders RetroArch será atualizada automaticamente. Pode cancelar este processo a qualquer momento no gestor de transferências.";
+"RetroArchShaderUnzipFailed" = "Não foi possível extrair %@. O ficheiro poderá ter sido corrompido durante a transferência. Tente transferi-lo novamente.";
+"ImportShader" = "Coloque os ficheiros de shader na pasta ‘Manic EMU-Shaders’ e reabra esta página para atualizar e carregar os shaders.";
+"CustomShaderDesc" = "Crie shaders personalizados editando os existentes.";
+"AppendShadersTitle" = "Acrescentar shaders";
+"AppendShadersDetail" = "Acrescentar shaders ao início ou ao fim da pilha atual";
+"ShaderName" = "Nome do shader";
+"Parameters" = "Parâmetros";
+"ShaderEditAlert" = "Ao editar um shader, é criada automaticamente uma nova cópia. Pode encontrá-la na categoria ‘Personalizado’ da lista de shaders.";
+"ShadersOrder" = "Ordem dos shaders";
+"Base" = "Base";
+"NoShaders" = "Nenhum shader disponível";
+"ShaderLoadFailed" = "Falha ao carregar o shader";
+"ShaderOrderDesc" = "Prima e arraste para reordenar as sobreposições de shader";
+"CustomShaderExists" = "Já existe um shader personalizado com o mesmo nome. Deseja substituí-lo?";
+"CustomShaderSaveFailed" = "Falha ao gerar o shader. Reveja as suas edições e tente novamente.";
+"CustomShaderSaveSuccess" = "%@ foi guardado com sucesso";
+"CustomShaderTitleWrong" = "Este nome de shader não está disponível";
+"PlayCasePromo" = "Esta skin foi desenhada pela PlayCase. Quando usada com uma capa PlayCase, oferece uma experiência de controlo mais suave e natural.
+
+A PlayCase foca-se em capas iPhone de alta qualidade, concebidas com compatibilidade de acessórios e skins em mente.
+Se pretende melhorar a sua configuração, a PlayCase é o complemento perfeito para esta skin.";
+"LearnPlayCase" = "Saiba mais sobre a PlayCase";
+"DontshowAgain" = "Não mostrar novamente";
+"NotInstallMeloNX" = "O MeloNX não está instalado";
+"FetchGamesFromMeloNX" = "Importar jogos do MeloNX";
+"ChangeAlert" = "O conteúdo foi alterado. Fechar agora resultará na perda das alterações. Continuar a fechar?";
diff --git a/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings
index 6f0163a9..f432027a 100644
--- a/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ro.lproj/Localizable.strings
@@ -786,4 +786,45 @@ Apasă butonul controlerului...";
"FilterTitle"="Filtru";
"EnableManufacturerFilter"="Activați filtru producător";
"MAMEFileMissingTitle"="Fișiere joc lipsă";
-"MAMEFileMissingDesc"="Acest joc poate aparține unui set ROM divizat, care necesită fișierele părinte sau BIOS pentru a rula. Vă rugăm să importați fișierele lipsă sau să folosiți un ROM nefuzionat în schimb.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Acest joc poate aparține unui set ROM divizat, care necesită fișierele părinte sau BIOS pentru a rula. Vă rugăm să importați fișierele lipsă sau să folosiți un ROM nefuzionat în schimb.";
+"InputForget" = "Am uitat";
+"ExactlyTextSizeAllowDesc" = "Introdu exact %@ caractere";
+"EmptyInputNotAllowed" = "Câmpul nu poate fi gol";
+"BlankInputNotAllowed" = "Câmpul nu poate conține doar spații";
+"ExactlyTextSize" = "Textul trebuie să aibă exact %@ de caractere";
+"AtSymbolNotAllowed" = "Simbolul @ nu este permis";
+"PercentSymbolNotAllowed" = "Simbolul %% nu este permis";
+"BackslashSymbolNotAllowed" = "Simbolul \\ nu este permis";
+"DigitsMaximumAllowed" = "Permise maximum %@ cifre";
+"Default" = "Implicit";
+"Imported" = "Importat";
+"DownloadRetroArchSahders" = "Descarcă shadere de la RetroArch";
+"ImportShaders" = "Importă shadere";
+"Shaders" = "Shadere";
+"DownloadRetroArchShaders" = "Vrei să descarci shadere de la RetroArch? La finalizare, categoria de shadere RetroArch se va reîmprospăta automat. Poți anula acest proces oricând în managerul de descărcări.";
+"RetroArchShaderUnzipFailed" = "Nu s-a putut extrage %@. Fișierul poate fi fost corupt în timpul descărcării. Te rugăm să încerci să-l descarci din nou.";
+"ImportShader" = "Plasează fișierele de shadere în folderul ‘Manic EMU-Shaders’, apoi redeschide această pagină pentru a reîmprospăta și încărca shaderele.";
+"CustomShaderDesc" = "Creează shadere personalizate prin editarea celor existente.";
+"AppendShadersTitle" = "Adaugă shadere";
+"AppendShadersDetail" = "Adaugă shadere la începutul sau sfârșitul stivei curente";
+"ShaderName" = "Nume shader";
+"Parameters" = "Parametri";
+"ShaderEditAlert" = "Când editezi un shader, o copie nouă este creată automat. O poți găsi în categoria ‘Personalizat’ din lista de shadere.";
+"ShadersOrder" = "Ordinea shaderelor";
+"Base" = "De bază";
+"NoShaders" = "Nu există shadere disponibile";
+"ShaderLoadFailed" = "Încărcarea shaderului a eșuat";
+"ShaderOrderDesc" = "Apasă și ține, apoi glisează pentru a reordona suprapunerile de shadere";
+"CustomShaderExists" = "Există deja un shader personalizat cu același nume. Vrei să-l înlocuiești?";
+"CustomShaderSaveFailed" = "Generarea shaderului a eșuat. Te rugăm să revizuiești modificările și să încerci din nou.";
+"CustomShaderSaveSuccess" = "%@ a fost salvat cu succes";
+"CustomShaderTitleWrong" = "Acest nume de shader nu este disponibil";
+"PlayCasePromo" = "Acest skin este proiectat de PlayCase. Când este folosit împreună cu un PlayCase, oferă o experiență de control mai fluidă și naturală.
+
+PlayCase se concentrează pe husă de iPhone de înaltă calitate, proiectate cu compatibilitatea accesoriilor și skin-urilor în minte.
+Dacă vrei să îți îmbunătățești setup-ul, PlayCase este potrivirea perfectă pentru acest skin.";
+"LearnPlayCase" = "Află mai multe despre PlayCase";
+"DontshowAgain" = "Nu mai afișa";
+"NotInstallMeloNX" = "MeloNX nu este instalat";
+"FetchGamesFromMeloNX" = "Importă jocuri din MeloNX";
+"ChangeAlert" = "Conținutul a fost modificat. Închiderea acum va duce la pierderea tuturor modificărilor. Continuați închiderea?";
diff --git a/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings
index 14c3ea39..0bdb6065 100644
--- a/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/ru.lproj/Localizable.strings
@@ -782,4 +782,45 @@
"FilterTitle"="Фильтр";
"EnableManufacturerFilter"="Включить фильтр производителя";
"MAMEFileMissingTitle"="Отсутствуют файлы игры";
-"MAMEFileMissingDesc"="Эта игра может принадлежать к разделенному набору ROM, для запуска которого требуются родительские или BIOS файлы. Пожалуйста, импортируйте отсутствующие файлы или используйте non-merged ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Эта игра может принадлежать к разделенному набору ROM, для запуска которого требуются родительские или BIOS файлы. Пожалуйста, импортируйте отсутствующие файлы или используйте non-merged ROM.";
+"InputForget" = "Забыли";
+"ExactlyTextSizeAllowDesc" = "Введите ровно %@ символов";
+"EmptyInputNotAllowed" = "Поле не может быть пустым";
+"BlankInputNotAllowed" = "Поле не может содержать только пробелы";
+"ExactlyTextSize" = "Текст должен содержать ровно %@ символов";
+"AtSymbolNotAllowed" = "Символ @ недопустим";
+"PercentSymbolNotAllowed" = "Символ %% недопустим";
+"BackslashSymbolNotAllowed" = "Символ \\ недопустим";
+"DigitsMaximumAllowed" = "Допустимо не более %@ цифр";
+"Default" = "По умолчанию";
+"Imported" = "Импортировано";
+"DownloadRetroArchSahders" = "Загрузить шейдеры из RetroArch";
+"ImportShaders" = "Импортировать шейдеры";
+"Shaders" = "Шейдеры";
+"DownloadRetroArchShaders" = "Загрузить шейдеры из RetroArch? По завершении категория шейдеров RetroArch обновится автоматически. Вы можете отменить этот процесс в любое время в менеджере загрузок.";
+"RetroArchShaderUnzipFailed" = "Не удалось распаковать %@. Возможно, файл был поврежден при загрузке. Попробуйте загрузить его снова.";
+"ImportShader" = "Поместите файлы шейдеров в папку ‘Manic EMU-Shaders’, затем откройте эту страницу снова, чтобы обновить и загрузить шейдеры.";
+"CustomShaderDesc" = "Создавайте пользовательские шейдеры, редактируя существующие.";
+"AppendShadersTitle" = "Добавить шейдеры";
+"AppendShadersDetail" = "Добавить шейдеры в начало или конец текущего стека";
+"ShaderName" = "Название шейдера";
+"Parameters" = "Параметры";
+"ShaderEditAlert" = "При редактировании шейдера автоматически создается новая копия. Вы найдете ее в категории «Пользовательские» в списке шейдеров.";
+"ShadersOrder" = "Порядок шейдеров";
+"Base" = "Базовый";
+"NoShaders" = "Нет доступных шейдеров";
+"ShaderLoadFailed" = "Не удалось загрузить шейдер";
+"ShaderOrderDesc" = "Нажмите и удерживайте, затем перетащите, чтобы изменить порядок наложения шейдеров";
+"CustomShaderExists" = "Пользовательский шейдер с таким именем уже существует. Заменить его?";
+"CustomShaderSaveFailed" = "Не удалось создать шейдер. Проверьте правки и попробуйте снова.";
+"CustomShaderSaveSuccess" = "%@ успешно сохранен";
+"CustomShaderTitleWrong" = "Это имя шейдера недоступно";
+"PlayCasePromo" = "Этот скин создан PlayCase. При использовании с PlayCase он обеспечивает более плавный и естественный игровой процесс.
+
+PlayCase специализируется на высококачественных чехлах для iPhone, разработанных с учетом совместимости с аксессуарами и скинами.
+Если вы хотите улучшить свою конфигурацию, PlayCase идеально дополнит этот скин.";
+"LearnPlayCase" = "Узнать о PlayCase";
+"DontshowAgain" = "Больше не показывать";
+"NotInstallMeloNX" = "MeloNX не установлен";
+"FetchGamesFromMeloNX" = "Импортировать игры из MeloNX";
+"ChangeAlert" = "Содержимое было изменено. Закрытие приведёт к потере изменений. Продолжить закрытие?";
diff --git a/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings
index c95bc3ce..e997970d 100644
--- a/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/sk.lproj/Localizable.strings
@@ -786,4 +786,45 @@ Ak sa vyskytne nestabilita v 3DS, pozrite si «Časté otázky» alebo sa pripoj
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Povoliť filter výrobcu";
"MAMEFileMissingTitle"="Chýbajúce herné súbory";
-"MAMEFileMissingDesc"="Táto hra môže patriť do rozdeleného setu ROM, ktorý na spustenie vyžaduje svoje nadradené alebo BIOS súbory. Importujte chýbajúce súbory alebo namiesto toho použite nespojené ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Táto hra môže patriť do rozdeleného setu ROM, ktorý na spustenie vyžaduje svoje nadradené alebo BIOS súbory. Importujte chýbajúce súbory alebo namiesto toho použite nespojené ROM.";
+"InputForget" = "Zabudol som";
+"ExactlyTextSizeAllowDesc" = "Zadajte presne %@ znakov";
+"EmptyInputNotAllowed" = "Pole nesmie byť prázdne";
+"BlankInputNotAllowed" = "Pole nesmie obsahovať iba medzery";
+"ExactlyTextSize" = "Text musí mať presne %@ znakov";
+"AtSymbolNotAllowed" = "Symbol @ nie je povolený";
+"PercentSymbolNotAllowed" = "Symbol %% nie je povolený";
+"BackslashSymbolNotAllowed" = "Symbol \\ nie je povolený";
+"DigitsMaximumAllowed" = "Povolených maximálne %@ číslic";
+"Default" = "Predvolené";
+"Imported" = "Importované";
+"DownloadRetroArchSahders" = "Stiahnuť shadery z RetroArch";
+"ImportShaders" = "Importovať shadery";
+"Shaders" = "Shadery";
+"DownloadRetroArchShaders" = "Chcete stiahnuť shadery z RetroArch? Po dokončení sa kategória shaderov RetroArch automaticky obnoví. Tento proces môžete kedykoľvek zrušiť v správcovi sťahovania.";
+"RetroArchShaderUnzipFailed" = "Nepodarilo sa rozbaliť %@. Súbor mohol byť poškodený počas sťahovania. Skúste ho stiahnuť znova.";
+"ImportShader" = "Umiestnite súbory shaderov do priečinka ‘Manic EMU-Shaders’ a potom znovu otvorte túto stránku, aby ste obnovili a načítali shadery.";
+"CustomShaderDesc" = "Vytvárajte vlastné shadery úpravou existujúcich.";
+"AppendShadersTitle" = "Pridať shadery";
+"AppendShadersDetail" = "Pridať shadery na začiatok alebo koniec aktuálneho zásobníka";
+"ShaderName" = "Názov shadera";
+"Parameters" = "Parametre";
+"ShaderEditAlert" = "Pri úprave shadera sa automaticky vytvorí nová kópia. Nájdete ju v kategórii ‘Vlastné’ v zozname shaderov.";
+"ShadersOrder" = "Poradie shaderov";
+"Base" = "Základný";
+"NoShaders" = "Žiadne shadery nie sú k dispozícii";
+"ShaderLoadFailed" = "Nepodarilo sa načítať shader";
+"ShaderOrderDesc" = "Podržte a potiahnite pre zmenu poradia vrstiev shaderov";
+"CustomShaderExists" = "Vlastný shader s rovnakým názvom už existuje. Chcete ho nahradiť?";
+"CustomShaderSaveFailed" = "Nepodarilo sa vygenerovať shader. Skontrolujte úpravy a skúste znova.";
+"CustomShaderSaveSuccess" = "%@ bol úspešne uložený";
+"CustomShaderTitleWrong" = "Tento názov shadera nie je dostupný";
+"PlayCasePromo" = "Tento skin navrhol PlayCase. Pri použití s PlayCase poskytuje plynulejšie a prirodzenejšie ovládanie.
+
+PlayCase sa zameriava na vysokokvalitné obaly pre iPhone, navrhnuté s ohľadom na kompatibilitu s príslušenstvom a skinmi.
+Ak chcete vylepšiť svoje nastavenie, PlayCase je perfektným doplnkom tohto skinu.";
+"LearnPlayCase" = "Dozvedieť sa viac o PlayCase";
+"DontshowAgain" = "Znovu nezobrazovať";
+"NotInstallMeloNX" = "MeloNX nie je nainštalovaný";
+"FetchGamesFromMeloNX" = "Importovať hry z MeloNX";
+"ChangeAlert" = "Obsah bol zmenený. Zatvorením teraz stratíte všetky zmeny. Pokračovať v zatváraní?";
diff --git a/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings
index 954d9560..34310d7b 100644
--- a/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/sv.lproj/Localizable.strings
@@ -780,4 +780,45 @@ Tryck på kontrollknappen...";
"FilterTitle"="Filter";
"EnableManufacturerFilter"="Aktivera tillverkarfilter";
"MAMEFileMissingTitle"="Saknade spelfiler";
-"MAMEFileMissingDesc"="Detta spel kan tillhöra en uppdelad ROM-uppsättning, som kräver dess förälder- eller BIOS-filer för att köra. Importera de saknade filerna eller använd en icke-sammanslagen ROM istället.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Detta spel kan tillhöra en uppdelad ROM-uppsättning, som kräver dess förälder- eller BIOS-filer för att köra. Importera de saknade filerna eller använd en icke-sammanslagen ROM istället.";
+"InputForget" = "Glömt";
+"ExactlyTextSizeAllowDesc" = "Ange exakt %@ tecken";
+"EmptyInputNotAllowed" = "Fältet får inte vara tomt";
+"BlankInputNotAllowed" = "Fältet får inte innehålla enbart mellanslag";
+"ExactlyTextSize" = "Texten måste vara exakt %@ tecken lång";
+"AtSymbolNotAllowed" = "@-symbolen är inte tillåten";
+"PercentSymbolNotAllowed" = "%%-symbolen är inte tillåten";
+"BackslashSymbolNotAllowed" = "\\-symbolen är inte tillåten";
+"DigitsMaximumAllowed" = "Högst %@ siffror tillåts";
+"Default" = "Standard";
+"Imported" = "Importerad";
+"DownloadRetroArchSahders" = "Ladda ned shaders från RetroArch";
+"ImportShaders" = "Importera shaders";
+"Shaders" = "Shaders";
+"DownloadRetroArchShaders" = "Vill du ladda ned shaders från RetroArch? När klar uppdateras RetroArchs shader-kategori automatiskt. Du kan avbryta processen när som helst i nedladdningshanteraren.";
+"RetroArchShaderUnzipFailed" = "Kunde inte packa upp %@. Filen kan ha skadats under nedladdningen. Försök att ladda ned den igen.";
+"ImportShader" = "Placera shader-filerna i mappen ‘Manic EMU-Shaders’, och öppna sedan denna sida igen för att uppdatera och ladda shaders.";
+"CustomShaderDesc" = "Skapa anpassade shaders genom att redigera befintliga.";
+"AppendShadersTitle" = "Lägg till shaders";
+"AppendShadersDetail" = "Lägg till shaders i början eller slutet av den aktuella stapeln";
+"ShaderName" = "Shadernamn";
+"Parameters" = "Parametrar";
+"ShaderEditAlert" = "När du redigerar en shader skapas automatiskt en ny kopia. Du hittar den under kategorin ‘Anpassad’ i shaderlistan.";
+"ShadersOrder" = "Shaderordning";
+"Base" = "Bas";
+"NoShaders" = "Inga shaders tillgängliga";
+"ShaderLoadFailed" = "Misslyckades att ladda shader";
+"ShaderOrderDesc" = "Håll ned och dra för att ändra ordning på shaderoverlay";
+"CustomShaderExists" = "Det finns redan en anpassad shader med samma namn. Vill du ersätta den?";
+"CustomShaderSaveFailed" = "Misslyckades att generera shadern. Kontrollera dina ändringar och försök igen.";
+"CustomShaderSaveSuccess" = "%@ sparades";
+"CustomShaderTitleWrong" = "Det här shadernamnet är inte tillgängligt";
+"PlayCasePromo" = "Detta skin är designat av PlayCase. Tillsammans med ett PlayCase ger det en smidigare och mer naturlig kontrollerfarenhet.
+
+PlayCase fokuserar på högkvalitativa iPhone-fodral, utformade med kompatibilitet för tillbehör och skins i åtanke.
+Om du vill höja din upplevelse är PlayCase en perfekt match för detta skin.";
+"LearnPlayCase" = "Läs mer om PlayCase";
+"DontshowAgain" = "Visa inte igen";
+"NotInstallMeloNX" = "MeloNX är inte installerat";
+"FetchGamesFromMeloNX" = "Importera spel från MeloNX";
+"ChangeAlert" = "Innehållet har ändrats. Om du stänger nu kommer alla ändringar att gå förlorade. Fortsätta stänga?";
diff --git a/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings
index ca75a415..9aca3b11 100644
--- a/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/th.lproj/Localizable.strings
@@ -776,4 +776,45 @@
"FilterTitle"="ตัวกรอง";
"EnableManufacturerFilter"="เปิดใช้งานตัวกรองผู้ผลิต";
"MAMEFileMissingTitle"="ไฟล์เกมหายไป";
-"MAMEFileMissingDesc"="เกมนี้อาจเป็นส่วนหนึ่งของชุด ROM แบบ split ซึ่งต้องการไฟล์หลักหรือไฟล์ BIOS ในการทำงาน กรุณานำเข้าไฟล์ที่ขาดหายไปหรือใช้ ROM แบบ non-merged แทน";
\ No newline at end of file
+"MAMEFileMissingDesc"="เกมนี้อาจเป็นส่วนหนึ่งของชุด ROM แบบ split ซึ่งต้องการไฟล์หลักหรือไฟล์ BIOS ในการทำงาน กรุณานำเข้าไฟล์ที่ขาดหายไปหรือใช้ ROM แบบ non-merged แทน";
+"InputForget" = "ลืมรหัสผ่าน";
+"ExactlyTextSizeAllowDesc" = "ป้อนอักขระ %@ ตัวพอดี";
+"EmptyInputNotAllowed" = "ช่องกรอกข้อมูลต้องไม่ว่าง";
+"BlankInputNotAllowed" = "ช่องกรอกข้อมูลต้องไม่เป็นเพียงช่องว่าง";
+"ExactlyTextSize" = "ข้อความต้องมีความยาว %@ ตัวอักษรพอดี";
+"AtSymbolNotAllowed" = "ไม่อนุญาตให้ใช้สัญลักษณ์ @";
+"PercentSymbolNotAllowed" = "ไม่อนุญาตให้ใช้สัญลักษณ์ %%";
+"BackslashSymbolNotAllowed" = "ไม่อนุญาตให้ใช้สัญลักษณ์ \\";
+"DigitsMaximumAllowed" = "อนุญาตสูงสุด %@ หลัก";
+"Default" = "ค่าเริ่มต้น";
+"Imported" = "นำเข้าแล้ว";
+"DownloadRetroArchSahders" = "ดาวน์โหลดเชดเดอร์จาก RetroArch";
+"ImportShaders" = "นำเข้าเชดเดอร์";
+"Shaders" = "เชดเดอร์";
+"DownloadRetroArchShaders" = "ต้องการดาวน์โหลดเชดเดอร์จาก RetroArch หรือไม่? เมื่อเสร็จสิ้น หมวดหมู่เชดเดอร์ของ RetroArch จะรีเฟรชโดยอัตโนมัติ คุณสามารถยกเลิกกระบวนการนี้ได้ตลอดเวลาในตัวจัดการการดาวน์โหลด";
+"RetroArchShaderUnzipFailed" = "ไม่สามารถแตกไฟล์ %@ ได้ ไฟล์อาจเสียหายระหว่างการดาวน์โหลด โปรดลองดาวน์โหลดอีกครั้ง";
+"ImportShader" = "วางไฟล์เชดเดอร์ในโฟลเดอร์ ‘Manic EMU-Shaders’ แล้วเปิดหน้านี้ใหม่เพื่อรีเฟรชและโหลดเชดเดอร์";
+"CustomShaderDesc" = "สร้างเชดเดอร์แบบกำหนดเองโดยการแก้ไขเชดเดอร์ที่มีอยู่";
+"AppendShadersTitle" = "เพิ่มเชดเดอร์";
+"AppendShadersDetail" = "เพิ่มเชดเดอร์ด้านหน้าหรือด้านหลังชุดปัจจุบัน";
+"ShaderName" = "ชื่อเชดเดอร์";
+"Parameters" = "พารามิเตอร์";
+"ShaderEditAlert" = "เมื่อคุณแก้ไขเชดเดอร์ ระบบจะสร้างสำเนาขึ้นใหม่โดยอัตโนมัติ คุณสามารถค้นหาได้ในหมวดหมู่ ‘กำหนดเอง’ ของรายการเชดเดอร์";
+"ShadersOrder" = "ลำดับเชดเดอร์";
+"Base" = "พื้นฐาน";
+"NoShaders" = "ไม่มีเชดเดอร์";
+"ShaderLoadFailed" = "โหลดเชดเดอร์ไม่สำเร็จ";
+"ShaderOrderDesc" = "กดค้างและลากเพื่อเรียงลำดับการซ้อนทับของเชดเดอร์";
+"CustomShaderExists" = "มีเชดเดอร์แบบกำหนดเองชื่อเดียวกันอยู่แล้ว ต้องการแทนที่หรือไม่?";
+"CustomShaderSaveFailed" = "สร้างเชดเดอร์ไม่สำเร็จ โปรดตรวจสอบการแก้ไขของคุณและลองอีกครั้ง";
+"CustomShaderSaveSuccess" = "บันทึก %@ สำเร็จ";
+"CustomShaderTitleWrong" = "ชื่อเชดเดอร์นี้ไม่สามารถใช้ได้";
+"PlayCasePromo" = "สกินนี้ออกแบบโดย PlayCase เมื่อใช้ร่วมกับ PlayCase จะให้ประสบการณ์การควบคุมที่ลื่นไหลและเป็นธรรมชาติมากขึ้น
+
+PlayCase มุ่งเน้นที่เคส iPhone คุณภาพสูง ออกแบบโดยคำนึงถึงความเข้ากันได้กับอุปกรณ์เสริมและสกิน
+หากคุณต้องการยกระดับการตั้งค่าของคุณ PlayCase เป็นคู่หูที่สมบูรณ์แบบสำหรับสกินนี้";
+"LearnPlayCase" = "เรียนรู้เพิ่มเติมเกี่ยวกับ PlayCase";
+"DontshowAgain" = "ไม่ต้องแสดงอีก";
+"NotInstallMeloNX" = "ยังไม่ได้ติดตั้ง MeloNX";
+"FetchGamesFromMeloNX" = "นำเข้าจาก MeloNX";
+"ChangeAlert" = "เนื้อหาได้รับการเปลี่ยนแปลง หากปิดตอนนี้จะสูญเสียการเปลี่ยนแปลงทั้งหมด ยังคงปิดต่อหรือไม่?";
diff --git a/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings
index 6373a6ae..5071e8a6 100644
--- a/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/tr.lproj/Localizable.strings
@@ -786,4 +786,45 @@ Kontrolcü düğmesine basın...";
"FilterTitle"="Filtre";
"EnableManufacturerFilter"="Üretici Filtresini Etkinleştir";
"MAMEFileMissingTitle"="Eksik Oyun Dosyaları";
-"MAMEFileMissingDesc"="Bu oyun, çalıştırmak için ana veya BIOS dosyalarına ihtiyaç duyan bölünmüş bir ROM setine ait olabilir. Lütfen eksik dosyaları içe aktarın veya bunun yerine birleştirilmemiş ROM kullanın.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Bu oyun, çalıştırmak için ana veya BIOS dosyalarına ihtiyaç duyan bölünmüş bir ROM setine ait olabilir. Lütfen eksik dosyaları içe aktarın veya bunun yerine birleştirilmemiş ROM kullanın.";
+"InputForget" = "Unuttum";
+"ExactlyTextSizeAllowDesc" = "Tam olarak %@ karakter girin";
+"EmptyInputNotAllowed" = "Giriş boş olamaz";
+"BlankInputNotAllowed" = "Giriş sadece boşluklardan oluşamaz";
+"ExactlyTextSize" = "Metin tam olarak %@ karakter uzunluğunda olmalı";
+"AtSymbolNotAllowed" = "@ sembolüne izin verilmiyor";
+"PercentSymbolNotAllowed" = "%% sembolüne izin verilmiyor";
+"BackslashSymbolNotAllowed" = "\\ sembolüne izin verilmiyor";
+"DigitsMaximumAllowed" = "En fazla %@ rakam izin verilir";
+"Default" = "Varsayılan";
+"Imported" = "İçe Aktarıldı";
+"DownloadRetroArchSahders" = "RetroArch'tan Gölgelendiriciler İndir";
+"ImportShaders" = "Gölgelendiricileri İçe Aktar";
+"Shaders" = "Gölgelendiriciler";
+"DownloadRetroArchShaders" = "RetroArch'tan gölgelendirici indirmek istiyor musunuz? Tamamlandığında, RetroArch gölgelendirici kategorisi otomatik olarak yenilenecektir. İndirme yöneticisinden bu işlemi istediğiniz zaman iptal edebilirsiniz.";
+"RetroArchShaderUnzipFailed" = "%@ çıkarılamadı. Dosya indirme sırasında bozulmuş olabilir. Lütfen tekrar indirmeyi deneyin.";
+"ImportShader" = "Gölgelendirici dosyalarını ‘Manic EMU-Shaders’ klasörüne yerleştirin, ardından bu sayfayı yeniden açarak gölgelendiricileri yenileyin ve yükleyin.";
+"CustomShaderDesc" = "Mevcut gölgelendiricileri düzenleyerek özel gölgelendiriciler oluşturun.";
+"AppendShadersTitle" = "Gölgelendirici Ekle";
+"AppendShadersDetail" = "Mevcut yığının başına veya sonuna gölgelendirici ekle";
+"ShaderName" = "Gölgelendirici Adı";
+"Parameters" = "Parametreler";
+"ShaderEditAlert" = "Bir gölgelendiriciyi düzenlediğinizde, otomatik olarak yeni bir kopya oluşturulur. Bunu gölgelendirici listesindeki ‘Özel’ kategorisinde bulabilirsiniz.";
+"ShadersOrder" = "Gölgelendirici Sırası";
+"Base" = "Temel";
+"NoShaders" = "Kullanılabilir Gölgelendirici Yok";
+"ShaderLoadFailed" = "Gölgelendirici yüklenemedi";
+"ShaderOrderDesc" = "Basılı tutun ve sürükleyerek gölgelendirici katmanlarının sırasını değiştirin";
+"CustomShaderExists" = "Aynı ada sahip özel bir gölgelendirici zaten var. Değiştirmek istiyor musunuz?";
+"CustomShaderSaveFailed" = "Gölgelendirici oluşturulamadı. Düzenlemelerinizi gözden geçirip tekrar deneyin.";
+"CustomShaderSaveSuccess" = "%@ başarıyla kaydedildi";
+"CustomShaderTitleWrong" = "Bu gölgelendirici adı kullanılamaz";
+"PlayCasePromo" = "Bu kaplama PlayCase tarafından tasarlandı. Bir PlayCase ile birlikte kullanıldığında, daha akıcı ve doğal bir kontrol deneyimi sunar.
+
+PlayCase, aksesuar ve kaplama uyumluluğu düşünülerek üretilmiş yüksek kaliteli iPhone kılıflarına odaklanır.
+Kurulumunuzu bir üst seviyeye taşımak istiyorsanız, PlayCase bu kaplama için mükemmel bir eştir.";
+"LearnPlayCase" = "PlayCase Hakkında Daha Fazla Bilgi Edinin";
+"DontshowAgain" = "Bir Daha Gösterme";
+"NotInstallMeloNX" = "MeloNX Yüklü Değil";
+"FetchGamesFromMeloNX" = "MeloNX'ten Oyunları İçe Aktar";
+"ChangeAlert" = "İçerik değiştirildi. Şimdi kapatmak tüm değişiklikleri kaybedecektir. Kapatmaya devam edilsin mi?";
diff --git a/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings
index 82ecf68a..0981fde9 100644
--- a/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/uk.lproj/Localizable.strings
@@ -786,4 +786,45 @@
"FilterTitle"="Фільтр";
"EnableManufacturerFilter"="Увімкнути фільтр виробника";
"MAMEFileMissingTitle"="Відсутні файли гри";
-"MAMEFileMissingDesc"="Ця гра може належати до розділеного набору ROM, для запуску якого потрібні його батьківські або BIOS файли. Будь ласка, імпортуйте відсутні файли або використовуйте non-merged ROM.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Ця гра може належати до розділеного набору ROM, для запуску якого потрібні його батьківські або BIOS файли. Будь ласка, імпортуйте відсутні файли або використовуйте non-merged ROM.";
+"InputForget" = "Забув";
+"ExactlyTextSizeAllowDesc" = "Введіть рівно %@ символів";
+"EmptyInputNotAllowed" = "Поле не може бути порожнім";
+"BlankInputNotAllowed" = "Поле не може містити лише пробіли";
+"ExactlyTextSize" = "Текст має містити рівно %@ символів";
+"AtSymbolNotAllowed" = "Символ @ заборонено";
+"PercentSymbolNotAllowed" = "Символ %% заборонено";
+"BackslashSymbolNotAllowed" = "Символ \\ заборонено";
+"DigitsMaximumAllowed" = "Дозволено до %@ цифр";
+"Default" = "За замовчуванням";
+"Imported" = "Імпортовано";
+"DownloadRetroArchSahders" = "Завантажити шейдери з RetroArch";
+"ImportShaders" = "Імпортувати шейдери";
+"Shaders" = "Шейдери";
+"DownloadRetroArchShaders" = "Завантажити шейдери з RetroArch? Після завершення категорія шейдерів RetroArch оновиться автоматично. Ви можете скасувати цей процес у будь-який час у менеджері завантажень.";
+"RetroArchShaderUnzipFailed" = "Не вдалося розпакувати %@. Файл міг пошкодитися під час завантаження. Спробуйте завантажити ще раз.";
+"ImportShader" = "Помістіть файли шейдерів у папку ‘Manic EMU-Shaders’, а потім відкрийте цю сторінку знову, щоб оновити та завантажити шейдери.";
+"CustomShaderDesc" = "Створюйте власні шейдери, редагууючи існуючі.";
+"AppendShadersTitle" = "Додати шейдери";
+"AppendShadersDetail" = "Додати шейдери на початок або в кінець поточного стеку";
+"ShaderName" = "Назва шейдера";
+"Parameters" = "Параметри";
+"ShaderEditAlert" = "Під час редагування шейдера автоматично створюється нова копія. Ви знайдете її в категорії «Власні» у списку шейдерів.";
+"ShadersOrder" = "Порядок шейдерів";
+"Base" = "Базовий";
+"NoShaders" = "Немає доступних шейдерів";
+"ShaderLoadFailed" = "Не вдалося завантажити шейдер";
+"ShaderOrderDesc" = "Натисніть та утримуйте, а потім перетягніть, щоб змінити порядок накладених шейдерів";
+"CustomShaderExists" = "Власний шейдер з такою назвою вже існує. Замінити його?";
+"CustomShaderSaveFailed" = "Не вдалося створити шейдер. Перевірте внесені зміни та спробуйте ще раз.";
+"CustomShaderSaveSuccess" = "%@ успішно збережено";
+"CustomShaderTitleWrong" = "Ця назва шейдера недоступна";
+"PlayCasePromo" = "Цей скін розроблено PlayCase. У поєднанні з PlayCase він забезпечує більш плавний та природний досвід керування.
+
+PlayCase спеціалізується на високоякісних чохлах для iPhone, розроблених з урахуванням сумісності з аксесуарами та скінами.
+Якщо ви хочете покращити свою конфігурацію, PlayCase ідеально доповнює цей скін.";
+"LearnPlayCase" = "Дізнатися більше про PlayCase";
+"DontshowAgain" = "Більше не показувати";
+"NotInstallMeloNX" = "MeloNX не встановлено";
+"FetchGamesFromMeloNX" = "Імпортувати ігри з MeloNX";
+"ChangeAlert" = "Вміст було змінено. Закриття призведе до втрати всіх змін. Продовжити закриття?";
diff --git a/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings
index 9b4c39c0..f40f4d89 100644
--- a/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/vi.lproj/Localizable.strings
@@ -780,4 +780,45 @@ Nhấn nút điều khiển...";
"FilterTitle"="Bộ lọc";
"EnableManufacturerFilter"="Bật bộ lọc nhà sản xuất";
"MAMEFileMissingTitle"="Thiếu tệp trò chơi";
-"MAMEFileMissingDesc"="Trò chơi này có thể thuộc bộ ROM tách, cần tệp gốc hoặc tệp BIOS để chạy. Vui lòng nhập các tệp còn thiếu hoặc sử dụng ROM không hợp nhất thay thế.";
\ No newline at end of file
+"MAMEFileMissingDesc"="Trò chơi này có thể thuộc bộ ROM tách, cần tệp gốc hoặc tệp BIOS để chạy. Vui lòng nhập các tệp còn thiếu hoặc sử dụng ROM không hợp nhất thay thế.";
+"InputForget" = "Quên";
+"ExactlyTextSizeAllowDesc" = "Nhập chính xác %@ ký tự";
+"EmptyInputNotAllowed" = "Không được để trống";
+"BlankInputNotAllowed" = "Không được chỉ chứa khoảng trắng";
+"ExactlyTextSize" = "Văn bản phải có đúng %@ ký tự";
+"AtSymbolNotAllowed" = "Không cho phép ký tự @";
+"PercentSymbolNotAllowed" = "Không cho phép ký tự %%";
+"BackslashSymbolNotAllowed" = "Không cho phép ký tự \\";
+"DigitsMaximumAllowed" = "Cho phép tối đa %@ chữ số";
+"Default" = "Mặc định";
+"Imported" = "Đã nhập";
+"DownloadRetroArchSahders" = "Tải Shader từ RetroArch";
+"ImportShaders" = "Nhập Shader";
+"Shaders" = "Shader";
+"DownloadRetroArchShaders" = "Bạn có muốn tải shader từ RetroArch không? Sau khi hoàn tất, danh mục shader RetroArch sẽ tự động làm mới. Bạn có thể hủy quá trình này bất cứ lúc nào trong trình quản lý tải xuống.";
+"RetroArchShaderUnzipFailed" = "Không thể giải nén %@. Tệp có thể đã bị hỏng trong quá trình tải xuống. Vui lòng thử tải lại.";
+"ImportShader" = "Đặt các tệp shader vào thư mục ‘Manic EMU-Shaders’, sau đó mở lại trang này để làm mới và tải shader.";
+"CustomShaderDesc" = "Tạo shader tùy chỉnh bằng cách chỉnh sửa các shader hiện có.";
+"AppendShadersTitle" = "Thêm Shader";
+"AppendShadersDetail" = "Thêm shader vào đầu hoặc cuối ngăn xếp hiện tại";
+"ShaderName" = "Tên Shader";
+"Parameters" = "Thông số";
+"ShaderEditAlert" = "Khi bạn chỉnh sửa một shader, một bản sao mới sẽ tự động được tạo. Bạn có thể tìm thấy nó trong danh mục ‘Tùy chỉnh’ của danh sách shader.";
+"ShadersOrder" = "Thứ tự Shader";
+"Base" = "Cơ bản";
+"NoShaders" = "Không có Shader nào";
+"ShaderLoadFailed" = "Tải Shader thất bại";
+"ShaderOrderDesc" = "Nhấn giữ và kéo để sắp xếp lại thứ tự lớp phủ shader";
+"CustomShaderExists" = "Đã có một shader tùy chỉnh cùng tên. Bạn có muốn thay thế nó không?";
+"CustomShaderSaveFailed" = "Tạo shader thất bại. Vui lòng kiểm tra lại các chỉnh sửa và thử lại.";
+"CustomShaderSaveSuccess" = "Đã lưu %@ thành công";
+"CustomShaderTitleWrong" = "Tên shader này không khả dụng";
+"PlayCasePromo" = "Skin này được thiết kế bởi PlayCase. Khi sử dụng cùng PlayCase, nó mang lại trải nghiệm điều khiển mượt mà và tự nhiên hơn.
+
+PlayCase tập trung vào các ốp iPhone chất lượng cao, được chế tạo với khả năng tương thích phụ kiện và skin.
+Nếu bạn muốn nâng cấp thiết lập của mình, PlayCase là sự kết hợp hoàn hảo cho skin này.";
+"LearnPlayCase" = "Tìm hiểu thêm về PlayCase";
+"DontshowAgain" = "Không hiển thị lại";
+"NotInstallMeloNX" = "Chưa cài đặt MeloNX";
+"FetchGamesFromMeloNX" = "Nhập trò chơi từ MeloNX";
+"ChangeAlert" = "Nội dung đã thay đổi. Đóng ngay bây giờ sẽ mất mọi thay đổi. Tiếp tục đóng?";
diff --git a/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings
index 85194a88..1fa26e23 100644
--- a/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/zh-HK.lproj/Localizable.strings
@@ -792,4 +792,45 @@
"FilterTitle"="篩選";
"EnableManufacturerFilter"="啟用廠商篩選";
"MAMEFileMissingTitle"="遊戲檔案缺失";
-"MAMEFileMissingDesc"="當前遊戲可能屬於 Split 類型的 ROM 集,需要依賴 Parent 或 BIOS 檔案才能運行。請匯入缺失檔案,或使用 non-merged 類型的 ROM。";
\ No newline at end of file
+"MAMEFileMissingDesc"="當前遊戲可能屬於 Split 類型的 ROM 集,需要依賴 Parent 或 BIOS 檔案才能運行。請匯入缺失檔案,或使用 non-merged 類型的 ROM。";
+"InputForget" = "忘記了";
+"ExactlyTextSizeAllowDesc" = "請輸入恰好 %@ 個字符";
+"EmptyInputNotAllowed" = "輸入內容不能為空";
+"BlankInputNotAllowed" = "輸入內容不能僅包含空格";
+"ExactlyTextSize" = "文本長度必須為 %@ 個字符";
+"AtSymbolNotAllowed" = "不允許使用 @ 符號";
+"PercentSymbolNotAllowed" = "不允許使用 %% 符號";
+"BackslashSymbolNotAllowed" = "不允許使用 \\ 符號";
+"DigitsMaximumAllowed" = "最多允許 %@ 位數字";
+"Default" = "預設";
+"Imported" = "已匯入";
+"DownloadRetroArchSahders" = "從 RetroArch 下載畫面着色器";
+"ImportShaders" = "匯入畫面着色器";
+"Shaders" = "畫面着色器";
+"DownloadRetroArchShaders" = "是否從 RetroArch 下載畫面着色器?下載完成後,RetroArch 的着色器分類將自動更新。你可以隨時在「下載管理員」中取消此操作。";
+"RetroArchShaderUnzipFailed" = "無法解壓縮 %@。檔案在下載過程中可能已損壞,請重新下載後再試。";
+"ImportShader" = "請將畫面着色器檔案放入「Manic EMU-Shaders」資料夾,然後重新開啟此頁面以重新整理並載入着色器。";
+"CustomShaderDesc" = "透過編輯現有畫面着色器來創建自訂着色器。";
+"AppendShadersTitle" = "追加畫面着色器";
+"AppendShadersDetail" = "可在當前着色器序列前或後追加着色器";
+"ShaderName" = "着色器名稱";
+"Parameters" = "參數";
+"ShaderEditAlert" = "編輯着色器時,系統會自動創建一個新副本。你可以在着色器列表的「自訂」分類中找到它。";
+"ShadersOrder" = "着色器順序";
+"Base" = "基礎";
+"NoShaders" = "暫無可用的着色器";
+"ShaderLoadFailed" = "着色器載入失敗";
+"ShaderOrderDesc" = "長按並拖動以調整着色器疊加順序";
+"CustomShaderExists" = "已存在同名的自訂着色器,是否替換?";
+"CustomShaderSaveFailed" = "着色器生成失敗,請檢查修改內容後重試。";
+"CustomShaderSaveSuccess" = "%@ 儲存成功";
+"CustomShaderTitleWrong" = "此着色器名稱不可用";
+"PlayCasePromo" = "此主題由 PlayCase 設計。與 PlayCase 手機殼搭配使用時,可帶來更順滑、更自然的操控體驗。
+
+PlayCase 專注於製造高品質 iPhone 手機殼,設計時已充分考慮配件與主題的相容性。
+如果你想進一步提升整體體驗,PlayCase 是此主題的理想搭檔。";
+"LearnPlayCase" = "了解更多 PlayCase";
+"DontshowAgain" = "不再顯示";
+"NotInstallMeloNX" = "尚未安裝 MeloNX";
+"FetchGamesFromMeloNX" = "從 MeloNX 匯入遊戲";
+"ChangeAlert" = "內容已變更,關閉視窗將遺失所有變更。是否繼續關閉?";
diff --git a/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings
index 41407ed8..55774631 100644
--- a/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/zh-Hans.lproj/Localizable.strings
@@ -798,3 +798,42 @@
"EnableManufacturerFilter" = "启用厂商筛选";
"MAMEFileMissingTitle" = "游戏文件缺失";
"MAMEFileMissingDesc" = "当前游戏可能属于 Split 类型的 ROM 集,需要依赖 Parent 或 BIOS 文件才能运行。请导入缺失文件,或使用 non-merged 类型的 ROM。";
+
+"InputForget" = "忘记了";
+"ExactlyTextSizeAllowDesc" = "请输入恰好 %@ 个字符";
+"EmptyInputNotAllowed" = "输入内容不能为空";
+"BlankInputNotAllowed" = "输入内容不能仅包含空格";
+"ExactlyTextSize" = "文本长度必须为 %@ 个字符";
+"AtSymbolNotAllowed" = "不允许使用 @ 符号";
+"PercentSymbolNotAllowed" = "不允许使用 % 符号";
+"BackslashSymbolNotAllowed" = "不允许使用 \\ 符号";
+"DigitsMaximumAllowed" = "最多允许 %@ 位数字";
+"Default" = "默认";
+"Imported" = "已导入";
+"DownloadRetroArchSahders" = "从 RetroArch 下载着色器";
+"ImportShaders" = "导入着色器";
+"Shaders" = "着色器";
+"DownloadRetroArchShaders" = "是否从 RetroArch 下载着色器?下载完成后,RetroArch 的着色器分类将自动刷新。你可以随时在下载管理器中取消该操作。";
+"RetroArchShaderUnzipFailed" = "无法解压 %@。文件在下载过程中可能已损坏,请重新下载后再试。";
+"ImportShader" = "请将着色器文件放入 Manic EMU-Shaders 文件夹,然后重新打开此页面以刷新并加载着色器。";
+"CustomShaderDesc" = "通过编辑现有着色器来创建自定义着色器。";
+"AppendShadersTitle" = "追加着色器";
+"AppendShadersDetail" = "可在当前着色器序列前或后追加着色器";
+"ShaderName" = "着色器名称";
+"Parameters" = "参数";
+"ShaderEditAlert" = "编辑着色器时,系统会自动创建一个新的副本。你可以在着色器列表的“自定义”分类中找到它。";
+"ShadersOrder" = "着色器顺序";
+"Base" = "基础";
+"NoShaders" = "暂无可用着色器";
+"ShaderLoadFailed" = "着色器加载失败";
+"ShaderOrderDesc" = "长按并拖动以调整着色器叠加顺序";
+"CustomShaderExists" = "已存在同名的自定义着色器,是否替换?";
+"CustomShaderSaveFailed" = "着色器生成失败,请检查修改内容后重试。";
+"CustomShaderSaveSuccess" = "%@ 保存成功";
+"CustomShaderTitleWrong" = "该着色器名称不可用";
+"PlayCasePromo" = "该皮肤由 PlayCase 设计。与 PlayCase 搭配使用时,可带来更加顺滑、自然的操控体验。\n\nPlayCase 专注于高品质 iPhone 手机壳,设计时充分考虑配件与皮肤的兼容性。\n如果你希望进一步提升整体体验,PlayCase 是这款皮肤的理想搭档。";
+"LearnPlayCase" = "了解 PlayCase";
+"DontshowAgain" = "不再显示";
+"NotInstallMeloNX" = "尚未安装 MeloNX";
+"FetchGamesFromMeloNX" = "从 MeloNX 导入游戏";
+"ChangeAlert" = "内容已变更,关闭页面将会丢失已变更内容,是否继续关闭?";
diff --git a/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings b/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings
index fd8e0a48..55092934 100644
--- a/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings
+++ b/ManicEmu/ManicEmu/Resources/zh-Hant.lproj/Localizable.strings
@@ -792,4 +792,45 @@
"FilterTitle"="篩選";
"EnableManufacturerFilter"="啟用廠商篩選";
"MAMEFileMissingTitle"="遊戲檔案遺失";
-"MAMEFileMissingDesc"="此遊戲可能屬於分割 ROM 集,需要其父 ROM 或 BIOS 檔案才能執行。請匯入遺失的檔案,或改用非合併 ROM。";
\ No newline at end of file
+"MAMEFileMissingDesc"="此遊戲可能屬於分割 ROM 集,需要其父 ROM 或 BIOS 檔案才能執行。請匯入遺失的檔案,或改用非合併 ROM。";
+"InputForget" = "忘記了";
+"ExactlyTextSizeAllowDesc" = "請輸入恰好 %@ 個字元";
+"EmptyInputNotAllowed" = "輸入內容不得為空";
+"BlankInputNotAllowed" = "輸入內容不能僅包含空白字元";
+"ExactlyTextSize" = "文字長度必須為 %@ 個字元";
+"AtSymbolNotAllowed" = "不允許使用 @ 符號";
+"PercentSymbolNotAllowed" = "不允許使用 %% 符號";
+"BackslashSymbolNotAllowed" = "不允許使用 \\ 符號";
+"DigitsMaximumAllowed" = "最多允許 %@ 位數字";
+"Default" = "預設";
+"Imported" = "已匯入";
+"DownloadRetroArchSahders" = "從 RetroArch 下載著色器";
+"ImportShaders" = "匯入著色器";
+"Shaders" = "著色器";
+"DownloadRetroArchShaders" = "是否要從 RetroArch 下載著色器?完成後,RetroArch 著色器類別將自動更新。您可以隨時在下載管理器中取消此程序。";
+"RetroArchShaderUnzipFailed" = "無法解壓縮 %@。檔案可能在下載過程中損毀。請重新下載後再試一次。";
+"ImportShader" = "請將著色器檔案置於 Manic EMU-Shaders 資料夾中,然後重新開啟此頁面以重新整理並載入著色器。";
+"CustomShaderDesc" = "透過編輯現有著色器來建立自訂著色器。";
+"AppendShadersTitle" = "附加著色器";
+"AppendShadersDetail" = "可在目前堆疊的前方或後方附加著色器";
+"ShaderName" = "著色器名稱";
+"Parameters" = "參數";
+"ShaderEditAlert" = "當您編輯著色器時,系統會自動建立一個新副本。您可以在著色器列表的「自訂」類別中找到它。";
+"ShadersOrder" = "著色器順序";
+"Base" = "基礎";
+"NoShaders" = "無可用著色器";
+"ShaderLoadFailed" = "載入著色器失敗";
+"ShaderOrderDesc" = "長按並拖曳以重新排序著色器疊加層";
+"CustomShaderExists" = "已存在同名的自訂著色器,是否要取代?";
+"CustomShaderSaveFailed" = "著色器產生失敗,請檢視您的編輯後再試一次。";
+"CustomShaderSaveSuccess" = "%@ 儲存成功";
+"CustomShaderTitleWrong" = "此著色器名稱不可用";
+"PlayCasePromo" = "此面板由 PlayCase 設計。與 PlayCase 搭配使用時,可提供更流暢、更自然的操控體驗。
+
+PlayCase 專注於高品質 iPhone 保護殼,設計時充分考慮了配件與面板的相容性。
+如果您想提升您的整體設定,PlayCase 是此面板的完美搭檔。";
+"LearnPlayCase" = "進一步瞭解 PlayCase";
+"DontshowAgain" = "不再顯示";
+"NotInstallMeloNX" = "尚未安裝 MeloNX";
+"FetchGamesFromMeloNX" = "從 MeloNX 匯入遊戲";
+"ChangeAlert" = "內容已變更,關閉將導致變更遺失。是否繼續關閉?";
diff --git a/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift b/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
index 6bd099f6..ac183494 100644
--- a/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/ApplicationSceneDelegate.swift
@@ -74,7 +74,11 @@ class ApplicationSceneDelegate: UIResponder, UIWindowSceneDelegate {
Log.debug("OAuth鉴权回调")
OAuthSwift.handle(url: url)
} else if scheme == Constants.Strings.ManicScheme {
- Self.launchGameID = url.lastPathComponent
+ if let host = url.host, host == Constants.Strings.MeloNXScheme {
+ MelonNXKit.processGames(callbackUrl: url)
+ } else {
+ Self.launchGameID = url.lastPathComponent
+ }
}
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Base/Constants.swift b/ManicEmu/ManicEmu/Sources/Base/Constants.swift
index b52e24f8..3e35ffa9 100644
--- a/ManicEmu/ManicEmu/Sources/Base/Constants.swift
+++ b/ManicEmu/ManicEmu/Sources/Base/Constants.swift
@@ -95,6 +95,7 @@ struct Constants {
case .n64: return 1.369
case .mcd: return (Locale.prefersUS ? 0.5864 : 1.1)
case .arcade: return 0.731
+ case .ns: return 0.611
default: return 1.0
}
case .style2:
@@ -333,6 +334,12 @@ struct Constants {
static let GameplayManuals = Document.appendingPathComponent("Manuals")
static let NESPalettes = Resource.appendingPathComponent("NESPalettes")
static let CustomPalettes = Document.appendingPathComponent("Palettes")
+ static let ShaderDefault = Shaders.appendingPathComponent("default")
+ static let ShaderRetroArch = Shaders.appendingPathComponent("retroarch")
+ static let ShaderRetroArchGLSL = ShaderRetroArch.appendingPathComponent("glsl")
+ static let ShaderRetroArchSlang = ShaderRetroArch.appendingPathComponent("slang")
+ static let ShaderImported = Shaders.appendingPathComponent("imported")
+ static let ShaderImportedInDocument = Document.appendingPathComponent("Shaders")
}
struct DefaultKey {
@@ -351,7 +358,8 @@ struct Constants {
static let HasShowPS1PlayAlert = "HasShowPS1PlayAlert"
static let HasShowJumpGameInfoAlert = "HasShowJumpGameInfoAlert"
static let Appearance = "Appearance"
- static let HalloweenIconShowUpDate = "HalloweenIconShowUpDate"
+ static let HasShowPlayCasePromo = "HasShowPlayCasePromo"
+ static let HasImportedPlayCaseSkin = "HasImportedPlayCaseSkin"
}
struct Font {
@@ -425,6 +433,11 @@ struct Constants {
static var PSXDualShock = "DualShock"
static var ThreeDSHomeMenuRegions = ["JPN", "USA", "EUR", "CHN", "KOR", "TWN"]
static let MAMEBiosTitle = "MAME BIOS"
+ static let GLSLShader = "shaders_glsl.zip"
+ static let SlangShader = "shaders_slang.zip"
+ static let AppendedShaders = "MANIC_EMU_PRESET_LIST"
+ static let ShaderForceBase = "MANIC_EMU_FORCE_BASE"
+ static let MeloNXScheme = "atariemulator"
}
enum Config {
@@ -520,6 +533,8 @@ struct Constants {
static let iCloudEnableChange = NSNotification.Name(rawValue: "iCloudEnableChange")
//厂商分类变更通知
static let ManufacturerFilterChange = NSNotification.Name(rawValue: "ManufacturerFilterChange")
+ //RetroArch的着色器下载成功
+ static let RetroArchShadersDownloadSuccess = NSNotification.Name(rawValue: "RetroArchShadersDownloadSuccess")
}
struct URLs {
@@ -605,6 +620,11 @@ struct Constants {
static let RomPatcher = URL(string: "https://www.marcrobledo.com/RomPatcher.js")!
static let InstallSideload = URL(string: "sidestore://source?url=apps.manicemu.site/altstore")!
static let SideStore = URL(string: "https://sidestore.io")!
+ static let GLSLShaders = URL(string: "https://buildbot.libretro.com/assets/frontend/shaders_glsl.zip")!
+ static let SlangShaders = URL(string: "https://buildbot.libretro.com/assets/frontend/shaders_slang.zip")!
+ static let PlayCasePromo = URL(string: "https://playcase.gg/playmanic")!
+ static let FetchMeloNXGames = URL(string: "\(Constants.Strings.MeloNXScheme)://gameInfo?scheme=manicemu")!
+ static func MeloNXGameLaunch(gameId: String) -> URL { URL(string: "\(Constants.Strings.MeloNXScheme)://game?id=\(gameId)")! }
}
struct BIOS {
diff --git a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/AddCheatCodeView.swift b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/AddCheatCodeView.swift
index f3f0c340..3e679b5f 100644
--- a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/AddCheatCodeView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/AddCheatCodeView.swift
@@ -368,12 +368,12 @@ extension AddCheatCodeView: UICollectionViewDataSource {
}
extension AddCheatCodeView {
- static func show(game: Game, gameCheat: GameCheat? = nil, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil) {
+ static func show(game: Game, gameCheat: GameCheat? = nil, hideCompletion: (()->Void)? = nil) {
Sheet { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeListView.swift b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeListView.swift
index 29a92715..f802cd50 100644
--- a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/CheatCodeListView.swift
@@ -245,12 +245,12 @@ extension CheatCodeListView {
Sheet.find(identifier: String(describing: CheatCodeListView.self)).count > 0 ? true : false
}
- static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ static func show(game: Game, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: CheatCodeListView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
@@ -277,10 +277,10 @@ extension CheatCodeListView {
let listView = CheatCodeListView(game: game)
listView.didTapAdd = {
- AddCheatCodeView.show(game: game, gameViewRect: gameViewRect, menuInsets: menuInsets)
+ AddCheatCodeView.show(game: game)
}
listView.didTapEdt = { gameCheat in
- AddCheatCodeView.show(game: game, gameCheat: gameCheat, gameViewRect: gameViewRect, menuInsets: menuInsets)
+ AddCheatCodeView.show(game: game, gameCheat: gameCheat)
}
listView.didTapClose = { [weak sheet] in
sheet?.pop()
diff --git a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift
index 6d0664c5..541d40fc 100644
--- a/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/CheatCode/Views/FBNeoCheatCodeListView.swift
@@ -141,12 +141,12 @@ extension FBNeoCheatCodeListView {
Sheet.find(identifier: String(describing: FBNeoCheatCodeListView.self)).count > 0 ? true : false
}
- static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ static func show(game: Game, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: FBNeoCheatCodeListView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift
index 38ba7c42..2d484ed2 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Models/ExtraKey.swift
@@ -37,6 +37,5 @@ enum ExtraKey: String {
case nesPalette
case triggerProID
case forceFullSkin
- case recoverIcon
case enableManufacturerFilter
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Views/BlankSlateTableView.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Views/BlankSlateTableView.swift
index 8fe7dae4..e1dbf621 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Views/BlankSlateTableView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Views/BlankSlateTableView.swift
@@ -39,5 +39,7 @@ extension BlankSlateTableView: BlankSlate.DataSource {
}
extension BlankSlateTableView: BlankSlate.Delegate {
-
+ func blankSlateShouldAllowTouch(_ view: UIView) -> Bool {
+ return true
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift
index 0aa602a4..e7d1eae0 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Common/Views/SettingItemCollectionViewCell.swift
@@ -7,6 +7,8 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later
+import ManicEmuCore
+
class SettingItemCollectionViewCell: UICollectionViewCell {
var iconView: UIImageView = {
@@ -63,7 +65,7 @@ class SettingItemCollectionViewCell: UICollectionViewCell {
willSet {
if newValue {
let scale = CGAffineTransformMakeScale(1.05, 1.05)
- self.roundAndBorderView.borderColor = .white
+ self.roundAndBorderView.borderColor = ExternalGameControllerUtils.shared.linkedControllers.count > 0 ? .white : Constants.Color.Border
UIView.springAnimate(animations: {
self.transform = scale
}) { _ in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllerMappingView.swift b/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllerMappingView.swift
index 315e19f8..dd22a086 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllerMappingView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllerMappingView.swift
@@ -34,8 +34,8 @@ class ControllerMappingView: UIView {
view.backgroundColor = .clear
view.addTapGesture { [weak self] gesture in
guard let self = self else { return }
- let allGameTypes = System.allCases.map { $0.gameType }
- let itemTitles = System.allCases.map { $0.gameType.localizedShortName }
+ let allGameTypes = System.allCases.filter({ $0 != .ns }).map { $0.gameType }
+ let itemTitles = System.allCases.filter({ $0 != .ns }).map { $0.gameType.localizedShortName }
var items: [UIAction] = []
let currentGameTypeName = self.gameType.localizedShortName
for (index, title) in itemTitles.enumerated() {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersSettingView.swift b/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersSettingView.swift
index be3471c6..e5f5dabd 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersSettingView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Controllers/Views/ControllersSettingView.swift
@@ -283,12 +283,12 @@ extension ControllersSettingView {
Sheet.find(identifier: String(describing: ControllersSettingView.self)).count > 0 ? true : false
}
- static func show(gameType: GameType, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ static func show(gameType: GameType, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: ControllersSettingView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/Models/LibretroPreViewFilter.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/Models/LibretroPreViewFilter.swift
deleted file mode 100644
index 467c45b4..00000000
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/Models/LibretroPreViewFilter.swift
+++ /dev/null
@@ -1,19 +0,0 @@
-//
-// LibretroPreViewFilter.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/5/24.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-class LibretroPreViewFilter: CIFilter {
- var shaderPath: String? = nil
- override init() {
- super.init()
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/Models/OriginFilter.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/Models/OriginFilter.swift
deleted file mode 100644
index 1d45dfee..00000000
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/Models/OriginFilter.swift
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// OriginFilter.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/8.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-class OriginFilter: CIFilter {
- static let name = R.string.localizable.filterOriginTitle()
- override init() {
- super.init()
- name = OriginFilter.name
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/ViewControllers/FilterSelectionViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/ViewControllers/FilterSelectionViewController.swift
deleted file mode 100644
index 65b5cbde..00000000
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/ViewControllers/FilterSelectionViewController.swift
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// FilterSelectionViewController.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/7.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-import UIKit
-import ManicEmuCore
-
-class FilterSelectionViewController: BaseViewController {
-
- private lazy var filterSelectionView: FilterSelectionView = {
- let view = FilterSelectionView(game: game, snapshot: snapshot)
- view.didTapClose = {[weak self] in
- self?.dismiss(animated: true)
- }
- return view
- }()
-
- private let game: Game
- private let snapshot: UIImage?
-
- deinit {
- Log.debug("\(String(describing: Self.self)) deinit")
- }
-
- init(game: Game, snapshot: UIImage? = nil) {
- self.game = game
- self.snapshot = snapshot
- super.init(nibName: nil, bundle: nil)
- Log.debug("\(String(describing: Self.self)) init")
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- view.addSubview(filterSelectionView)
- filterSelectionView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterCollectionViewCell.swift
deleted file mode 100644
index bdb7005b..00000000
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterCollectionViewCell.swift
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// FilterCollectionViewCell.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/8.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-class FilterCollectionViewCell: UICollectionViewCell {
-
- var imageView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .scaleAspectFill
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
- return view
- }()
-
- private var titleLabel: UILabel = {
- let view = UILabel()
- view.font = Constants.Font.body()
- view.textColor = Constants.Color.LabelPrimary
- view.textAlignment = .center
- return view
- }()
-
- private var selectImageView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .center
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
- view.layer.shadowColor = Constants.Color.Shadow.cgColor
- view.layer.shadowOpacity = 0.5
- view.layer.shadowRadius = 2
- view.image = UIImage(symbol: .checkmarkCircleFill, weight: .bold, colors: [Constants.Color.LabelPrimary, Constants.Color.Main])
- view.alpha = 0
- return view
- }()
-
- override var isSelected: Bool {
- willSet {
- UIView.springAnimate {
- self.selectImageView.alpha = newValue ? 1 : 0
- }
- }
- }
-
- override init(frame: CGRect) {
- super.init(frame: frame)
- enableInteractive = true
- delayInteractiveTouchEnd = true
- layerCornerRadius = Constants.Size.CornerRadiusMid
- addSubview(imageView)
- imageView.snp.makeConstraints { make in
- make.leading.trailing.top.equalToSuperview()
- make.bottom.equalToSuperview().offset(-Constants.Size.ItemHeightMin)
- }
-
- addSubview(titleLabel)
- titleLabel.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview()
- make.top.equalTo(imageView.snp.bottom).offset(Constants.Size.ContentSpaceMin)
- }
-
- addSubview(selectImageView)
- selectImageView.snp.makeConstraints { make in
- make.top.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
- make.size.equalTo(Constants.Size.IconSizeMin)
- }
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- func setData(image: UIImage?, title: String) {
- imageView.image = image
- titleLabel.text = title
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterNameOnlyCollectionCell.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterNameOnlyCollectionCell.swift
deleted file mode 100644
index d14b1119..00000000
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterNameOnlyCollectionCell.swift
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// FilterNameOnlyCollectionCell.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/5/24.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-class FilterNameOnlyCollectionCell: UICollectionViewCell {
- private var titleLabel: UILabel = {
- let view = UILabel()
- view.font = Constants.Font.body(size: .l)
- view.textColor = Constants.Color.LabelPrimary
- view.textAlignment = .center
- return view
- }()
-
- private var selectImageView: UIImageView = {
- let view = UIImageView()
- view.contentMode = .center
- view.layerCornerRadius = Constants.Size.CornerRadiusMin
- view.layer.shadowColor = Constants.Color.Shadow.cgColor
- view.layer.shadowOpacity = 0.5
- view.layer.shadowRadius = 2
- view.image = UIImage(symbol: .checkmarkCircleFill, weight: .bold, colors: [Constants.Color.LabelPrimary.forceStyle(.dark), Constants.Color.Main])
- view.alpha = 0
- return view
- }()
-
- override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
- super.traitCollectionDidChange(previousTraitCollection)
- if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
- selectImageView.layer.shadowColor = Constants.Color.Shadow.cgColor
- }
- }
-
- override var isSelected: Bool {
- willSet {
- UIView.springAnimate {
- self.selectImageView.alpha = newValue ? 1 : 0
- }
- }
- }
-
- override init(frame: CGRect) {
- super.init(frame: frame)
- enableInteractive = true
- delayInteractiveTouchEnd = true
- layerCornerRadius = Constants.Size.CornerRadiusMid
- backgroundColor = Constants.Color.Background
-
- addSubview(titleLabel)
- titleLabel.snp.makeConstraints { make in
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
- make.centerY.equalToSuperview()
- }
-
- addSubview(selectImageView)
- selectImageView.snp.makeConstraints { make in
- make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- make.size.equalTo(Constants.Size.IconSizeMin)
- make.centerY.equalToSuperview()
- }
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- func setData(title: String) {
- titleLabel.text = title
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift b/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift
deleted file mode 100644
index e2ce62d5..00000000
--- a/ManicEmu/ManicEmu/Sources/Business/Filter/Views/FilterSelectionView.swift
+++ /dev/null
@@ -1,323 +0,0 @@
-//
-// FilterSelectionView.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/7.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-import UIKit
-import ManicEmuCore
-
-import RealmSwift
-import BetterSegmentedControl
-import UniformTypeIdentifiers
-import ProHUD
-
-class FilterSelectionView: BaseView {
- /// 充当导航条
- private var navigationBlurView: UIView = {
- let view = UIView()
- view.makeBlur()
- return view
- }()
-
- private var howToFetchButton: HowToButton = {
- let view = HowToButton(title: R.string.localizable.howToFetch(), enableGlass: true) {
- topViewController()?.present(WebViewController(url: Constants.URLs.GameImportGuide), animated: true)
- }
- return view
- }()
-
- private lazy var closeButton: SymbolButton = {
- let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
- view.enableRoundCorner = true
- view.addTapGesture { [weak self] gesture in
- guard let self = self else { return }
- self.didTapClose?()
- }
- return view
- }()
-
- private lazy var collectionView: UICollectionView = {
- let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
- view.backgroundColor = .clear
- view.contentInsetAdjustmentBehavior = .never
- view.register(cellWithClass: FilterCollectionViewCell.self)
- view.register(cellWithClass: FilterNameOnlyCollectionCell.self)
- view.showsVerticalScrollIndicator = false
- view.dataSource = self
- view.delegate = self
- view.allowsSelection = true
- view.allowsMultipleSelection = false
- view.contentInset = UIEdgeInsets(top: Constants.Size.ItemHeightMid + Constants.Size.ContentSpaceMax, left: 0, bottom: Constants.Size.ContentInsetBottom, right: 0)
- return view
- }()
-
- ///游戏
- private var game: Game
- private var snapshot: UIImage
- ///数据源
- private var filters = [CIFilter]() {
- didSet {
- self.collectionView.reloadData()
- }
- }
-
- //当前选中的滤镜
- private var currentSelected: CIFilter = OriginFilter()
-
- ///点击关闭按钮回调
- var didTapClose: (()->Void)? = nil
-
- deinit {
- Log.debug("\(String(describing: Self.self)) deinit")
- }
-
- init(game: Game, snapshot: UIImage?) {
- self.game = game
- self.snapshot = snapshot ?? UIImage.placeHolder(preferenceSize: game.gameType.manicEmuCore?.videoFormat.dimensions ?? .zero)
- super.init(frame: .zero)
- Log.debug("\(String(describing: Self.self)) init")
-
- if !game.isLibretroType {
- UIView.makeLoading()
- }
-
- if game.isLibretroType {
- FilterManager.allLibretroPreviews(origin: self.snapshot, isGlsl: game.gameType == .n64 ? true : false) { [weak self] results in
- if !game.isLibretroType {
- UIView.hideLoading()
- }
-
- guard let self = self else { return }
- self.filters = results
- if let filterName = self.game.filterName?.deletingPathExtension.lastPathComponent, let filter = self.filters.first(where: { $0.name == filterName }) {
- self.currentSelected = filter
- }
- for (index, filter) in self.filters.enumerated() {
- if filter.name == self.currentSelected.name {
- collectionView.selectItem(at: IndexPath(row: index, section: 0), animated: false, scrollPosition: [])
- break
- }
- }
- }
-
- }
-
- addSubview(collectionView)
- collectionView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
-
- addSubview(navigationBlurView)
- navigationBlurView.snp.makeConstraints { make in
- make.leading.top.trailing.equalToSuperview()
- make.height.equalTo(Constants.Size.ItemHeightMid)
- }
-
- let headerLabel = UILabel()
- headerLabel.font = Constants.Font.title(size: .s, weight: .bold)
- headerLabel.textColor = Constants.Color.LabelPrimary
- headerLabel.text = R.string.localizable.filterSectionHeaderTitle()
- navigationBlurView.addSubview(headerLabel)
- headerLabel.snp.makeConstraints { make in
- make.centerY.equalToSuperview()
- make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
- }
-
- navigationBlurView.addSubview(closeButton)
- closeButton.snp.makeConstraints { make in
- make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
- make.centerY.equalToSuperview()
- make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
- }
-
- //暂时不支持导入滤镜 所以不需要教程
-// navigationBlurView.addSubview(howToFetchButton)
-// howToFetchButton.snp.makeConstraints { make in
-// make.height.equalTo(Constants.Size.ItemHeightUltraTiny)
-// make.trailing.equalTo(closeButton.snp.leading).offset(-Constants.Size.ContentSpaceMax)
-// make.centerY.equalTo(closeButton)
-// }
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- private func createLayout() -> UICollectionViewLayout {
- let layout = UICollectionViewCompositionalLayout { [weak self] sectionIndex, env in
- guard let self = self else { return nil }
-
- var group: NSCollectionLayoutGroup
- if self.game.isLibretroType {
- let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .fractionalHeight(1)))
- group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(50)), subitem: item, count: Int(1))
- } else {
- let column = 2.0
- let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1/column), heightDimension: .fractionalHeight(1)))
-
- var gameVideoSize = self.game.gameType.manicEmuCore?.videoFormat.dimensions ?? CGSize(width: 100, height: 100)
- if self.game.gameType == .ds {
- gameVideoSize = CGSize(width: gameVideoSize.width, height: gameVideoSize.height/2)
- }
- let screenRation = gameVideoSize.width/gameVideoSize.height
- let itemWidth = (env.container.contentSize.width - Constants.Size.ContentSpaceMid*4 - ((column-1)*Constants.Size.ContentSpaceMid))/column
- let itemHeight = itemWidth/screenRation + Constants.Size.ItemHeightMin
-
- group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(itemHeight)), subitem: item, count: Int(column))
- }
-
-
- group.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: Constants.Size.ContentSpaceMid, bottom: 0, trailing: Constants.Size.ContentSpaceMid)
- group.interItemSpacing = NSCollectionLayoutSpacing.fixed(Constants.Size.ContentSpaceMid)
-
- let section = NSCollectionLayoutSection(group: group)
- section.interGroupSpacing = Constants.Size.ContentSpaceMid
-
- section.decorationItems = [NSCollectionLayoutDecorationItem.background(elementKind: String(describing: FilterDecorationCollectionReusableView.self))]
- section.contentInsets = NSDirectionalEdgeInsets(top: Constants.Size.ContentSpaceMid, leading: Constants.Size.ContentSpaceMid, bottom: Constants.Size.ContentSpaceMid, trailing: Constants.Size.ContentSpaceMid)
-
- return section
- }
- layout.register(FilterDecorationCollectionReusableView.self, forDecorationViewOfKind: String(describing: FilterDecorationCollectionReusableView.self))
- return layout
- }
-
- class FilterDecorationCollectionReusableView: UICollectionReusableView {
- var backgroundView: UIView = {
- let view = UIView()
- view.layerCornerRadius = Constants.Size.CornerRadiusMax
- view.backgroundColor = Constants.Color.BackgroundPrimary
- return view
- }()
-
- override init(frame: CGRect) {
- super.init(frame: frame)
-
- addSubview(backgroundView)
- backgroundView.snp.makeConstraints { make in
- make.top.bottom.equalToSuperview()
- make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
- }
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
-}
-
-
-extension FilterSelectionView: UICollectionViewDataSource {
- func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
- filters.count
- }
-
- func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
- let filter = filters[indexPath.row]
- if game.isLibretroType {
- let cell = collectionView.dequeueReusableCell(withClass: FilterNameOnlyCollectionCell.self, for: indexPath)
- cell.setData(title: filter.name)
- return cell
- } else {
- let cell = collectionView.dequeueReusableCell(withClass: FilterCollectionViewCell.self, for: indexPath)
- cell.setData(image: filter.preview(image: snapshot), title: filter.name)
- return cell
- }
- }
-}
-
-extension FilterSelectionView: UICollectionViewDelegate {
- func collectionView(_ collectionView: UICollectionView, shouldDeselectItemAt indexPath: IndexPath) -> Bool {
- if let indexPaths = collectionView.indexPathsForSelectedItems, indexPaths.contains(where: { $0 == indexPath }) {
- //不允许取消选择 只允许更换选择
- return false
- }
- return true
- }
-
- func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool {
- currentSelected = filters[indexPath.row]
- //如果目前已经选中该cell 则不再进行数据库更新
- if let indexPaths = collectionView.indexPathsForSelectedItems, !indexPaths.contains(where: { $0 == indexPath }) {
- if !PurchaseManager.isMember {
- topViewController()?.present(PurchaseViewController(), animated: true)
- return false
- }
- Game.change { [weak self] realm in
- guard let self = self else { return }
- if currentSelected is OriginFilter {
- self.game.filterName = nil
- } else {
- if self.game.isLibretroType {
- if let filter = currentSelected as? LibretroPreViewFilter {
- if let shaderPath = filter.shaderPath, let range = shaderPath.range(of: "shaders/") {
- self.game.filterName = String(shaderPath[range.upperBound...])
- } else {
- self.game.filterName = nil
- }
- }
- } else {
- self.game.filterName = self.currentSelected.name
- }
- }
- }
- }
- return true
- }
-}
-
-extension FilterSelectionView {
- static var isShow: Bool {
- Sheet.find(identifier: String(describing: FilterSelectionView.self)).count > 0 ? true : false
- }
-
- static func show(game: Game, snapshot: UIImage?, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
- Sheet.lazyPush(identifier: String(describing: FilterSelectionView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
-
- let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
- containerView.backgroundColor = Constants.Color.Background
- view.addSubview(containerView)
- containerView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- if let maxHeight = sheet.config.cardMaxHeight {
- make.height.equalTo(maxHeight)
- }
- }
- view.addPanGesture { [weak view, weak sheet] gesture in
- guard let view = view, let sheet = sheet else { return }
- let point = gesture.translation(in: gesture.view)
- view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
- if gesture.state == .recognized {
- let v = gesture.velocity(in: gesture.view)
- if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
- // 达到移除的速度
- sheet.pop()
- }
- UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
- view.transform = .identity
- })
- }
- }
-
- let listView = FilterSelectionView(game: game, snapshot: snapshot)
- listView.didTapClose = { [weak sheet] in
- sheet?.pop()
- didTapClose?()
- }
- containerView.addSubview(listView)
- listView.snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
-
- sheet.set(customView: view).snp.makeConstraints { make in
- make.edges.equalToSuperview()
- }
- }
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift
index a92ad5fc..c91a9fe7 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoCoverView.swift
@@ -134,10 +134,14 @@ class GameInfoCoverView: BaseView {
//点击选择封面照片
var titles = [R.string.localizable.readyEditCoverTakePhoto(),
R.string.localizable.readyEditCoverAlbum(),
- R.string.localizable.readyEditCoverFile(),
- R.string.localizable.readyEditCoverSearch()]
+ R.string.localizable.readyEditCoverFile()]
- var symbols: [SFSymbol] = [.camera, .photoOnRectangleAngled, .folder, .magnifyingglass]
+ var symbols: [SFSymbol] = [.camera, .photoOnRectangleAngled, .folder]
+
+ if game.gameType != .ns {
+ titles.append(R.string.localizable.readyEditCoverSearch())
+ symbols.append(.magnifyingglass)
+ }
if let _ = game.gameCover?.storedData() {
titles.append(R.string.localizable.editTitle())
@@ -160,10 +164,10 @@ class GameInfoCoverView: BaseView {
} else if index == 2 {
//文件
ImageFetcher.file(completion: self.coverUpdation)
- } else if index == 3 {
+ } else if game.gameType != .ns, index == 3 {
//搜索
topViewController()?.present(GameCoverSearchViewController(game: game, completion: self.coverUpdation), animated: true)
- } else if index == 4 {
+ } else if (game.gameType == .ns && index == 3) || (index == 4) {
//编辑
if let imageData = game.gameCover?.storedData(), let image = UIImage(data: imageData) {
ImageFetcher.edit(image: image, completion: self.coverUpdation)
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift
index c5e898d1..38e48cf8 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoDetailReusableView.swift
@@ -1192,6 +1192,8 @@ class GameInfoDetailReusableView: UICollectionReusableView {
updateMDFunctionButton()
} else if game.gameType == .snes {
updateSNESFunctionButton()
+ } else if game.gameType == .ns {
+ updateNSFunctionButton()
}
addManualsButton()
hasSetupViews = true
@@ -1754,6 +1756,10 @@ class GameInfoDetailReusableView: UICollectionReusableView {
}
}
+ private func updateNSFunctionButton() {
+ functionButtonContainerView.subviews.forEach({ $0.removeFromSuperview() })
+ }
+
private func addManualsButton() {
//添加游戏手册按钮
diff --git a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoView.swift b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoView.swift
index 63f33520..b1de1154 100644
--- a/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/GameInfo/VIews/GameInfoView.swift
@@ -567,12 +567,12 @@ extension GameInfoView {
Sheet.find(identifier: String(describing: GameInfoView.self)).count > 0 ? true : false
}
- static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, selection: ((GameSaveState)->Void)? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ static func show(game: Game, selection: ((GameSaveState)->Void)? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: GameInfoView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift
index 45a3f77a..d6af2e3f 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameCoverView.swift
@@ -216,6 +216,8 @@ class GameCoverView: UIView {
image = style == .style2 ? R.image.dc_cover_v() : R.image.dc_cover_h()
} else if gameType == .arcade {
image = style == .style2 ? R.image.arcade_cover_v() : R.image.arcade_cover_h()
+ } else if gameType == .ns {
+ image = style == .style2 ? R.image.ns_cover_v() : R.image.ns_cover_h()
}
if UIDevice.isPhone, !UIDevice.isLandscape, scalePlatform, Constants.Size.GamesPerRow != 2, let unwrapImage = image {
image = unwrapImage.scaled(toWidth: unwrapImage.size.width * (1/(Constants.Size.GamesPerRow-1)))
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameEditToolBar.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameEditToolBar.swift
index a1eb05a4..c9c1f8e5 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameEditToolBar.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameEditToolBar.swift
@@ -8,6 +8,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import UIKit
+import ManicEmuCore
enum GameEditToolItem: SettingCellItem, CaseIterable {
case rename, cover, skin, shareRom, checkSave, importSave, shareSave, delete
@@ -62,6 +63,18 @@ enum GameEditToolItem: SettingCellItem, CaseIterable {
}
var enableLongPress: Bool { false }
+
+ func support(for gameType: GameType) -> Bool {
+ if gameType == .ns {
+ switch self {
+ case .rename, .cover, .delete:
+ return true
+ default:
+ return false
+ }
+ }
+ return true
+ }
}
class GameEditToolBar: RoundAndBorderView {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
index 2eff260b..b0a44faf 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameListView.swift
@@ -610,9 +610,17 @@ class GameListView: BaseView {
func editGame(item: GameEditToolItem, indexPath: IndexPath? = nil) {
var games: [Game] = []
if let indexPath = indexPath, let game = self.getGame(at: indexPath) {
+ if !item.support(for: game.gameType) {
+ UIView.makeToast(message: R.string.localizable.notSupportGameSetting(GameType.ns.localizedShortName))
+ return
+ }
games.append(game)
} else if let tempIndexPaths = collectionView.indexPathsForSelectedItems {
games.append(contentsOf: tempIndexPaths.compactMap({ getGame(at: $0) }))
+ if games.count == 1, !item.support(for: games.first!.gameType) {
+ UIView.makeToast(message: R.string.localizable.notSupportGameSetting(GameType.ns.localizedShortName))
+ return
+ }
} else {
return
}
@@ -1094,18 +1102,30 @@ extension GameListView: UICollectionViewDelegate {
guard let self = self else { return }
self.editGame(item: editItems[index], indexPath: indexPath)
}
- if index < 4 {
- //0-3为一组
- firstGroup.append(action)
- } else if index < 7 {
- //4-6为一组
- secondGroup.append(action)
+ if game.gameType == .ns {
+ if editItem == .rename {
+ firstGroup.append(action)
+ } else if editItem == .cover {
+ secondGroup.append(action)
+ } else if editItem == .delete {
+ thirdGroup.append(action)
+ }
} else {
- //删除按钮为单独一组
- thirdGroup.append(action)
+ if index < 4 {
+ //0-3为一组
+ firstGroup.append(action)
+ } else if index < 7 {
+ //4-6为一组
+ secondGroup.append(action)
+ } else {
+ //删除按钮为单独一组
+ thirdGroup.append(action)
+ }
}
}
+
+
if game.isNDSHomeMenuGame {
//NDS Home Menu只保留删除操作
return UIContextMenuConfiguration(previewProvider: {
@@ -1154,14 +1174,6 @@ extension GameListView: UICollectionViewDelegate {
}
#endif
-// if game.gameType == ._3ds {
-// if game.is3DSHomeMenuGame {
-// supportSwitchCore = false
-// } else if game.fileExtension.lowercased() != "3ds" {
-// supportSwitchCore = false
-// }
-// }
-
if supportSwitchCore {
//添加切换核心的操作
let action = UIAction(title: R.string.localizable.switchEmulationCore(), image: .symbolImage(.memorychip)) { _ in
@@ -1180,7 +1192,7 @@ extension GameListView: UICollectionViewDelegate {
//添加"复制启动链接"
let action = UIAction(title: R.string.localizable.copyLaunchLinkTitle(), image: .symbolImage(.link)) { _ in
- UIPasteboard.general.string = "manicemu://launch/\(game.id)"
+ UIPasteboard.general.string = (game.gameType == .ns ? Constants.URLs.MeloNXGameLaunch(gameId: game.id).absoluteString : "manicemu://launch/\(game.id)")
if game.gameCover != nil || game.onlineCoverUrl != nil {
//弹出提示询问用户是否需要进行封面的保存
UIView.makeAlert(detail: R.string.localizable.askIfNeedToSaveCover(), confirmTitle: R.string.localizable.saveTitle(), confirmAction: {
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameplayManualsView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameplayManualsView.swift
index e7e8569e..884733b3 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameplayManualsView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GameplayManualsView.swift
@@ -91,12 +91,12 @@ extension GameplayManualsView {
Sheet.find(identifier: String(describing: GameplayManualsView.self)).count > 0 ? true : false
}
- static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil) {
+ static func show(game: Game, hideCompletion: (()->Void)? = nil) {
Sheet { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift
index 8237c42f..f15cf911 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Games/Views/GamesCollectionReusableView.swift
@@ -200,6 +200,8 @@ class GamesCollectionReusableView: UICollectionReusableView {
image = R.image.dc_group_brand(compatibleWith: traitCollection)
} else if gameType == .arcade {
image = R.image.arcade_group_brand(compatibleWith: traitCollection)
+ } else if gameType == .ns {
+ image = R.image.ns_group_brand(compatibleWith: traitCollection)
}
Self.brandImageCaches[key] = image
return image
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift
index 89750d75..805e8a86 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/GameSaveMatchGameView.swift
@@ -385,7 +385,7 @@ class GameSaveMatchGameView: BaseView {
extension GameSaveMatchGameView: UICollectionViewDataSource {
private func sortDatasKeys() -> [GameType] {
- let predefinedOrder: [GameType] = System.allCases.map { $0.gameType }
+ let predefinedOrder: [GameType] = System.allCases.filter({ $0 != .ns }).map { $0.gameType }
let sortedKeys: [GameType] = predefinedOrder.filter { normalDatas.keys.contains($0) }
return sortedKeys
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListView.swift b/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListView.swift
index 53192951..12bc386d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Import/Views/ImportServiceListView.swift
@@ -31,6 +31,10 @@ class ImportServiceListView: BaseView {
//how to import
topViewController()?.present(WebViewController(url: Constants.URLs.GameImportGuide), animated: true)
}))
+ actions.append((UIAction(title: R.string.localizable.fetchGamesFromMeloNX(), image: UIImage(symbol: .gamecontroller)) { [weak self] _ in
+ guard let self = self else { return }
+ MelonNXKit.fetchGames()
+ }))
let view = ContextMenuButton(image: nil, menu: UIMenu(children: actions))
return view
}()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
index 1478d498..8a74a1ac 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Models/GameSetting.swift
@@ -525,7 +525,7 @@ struct GameSetting: SettingCellItem {
case .skins:
UIImage(symbol: .tshirt)
case .filter:
- UIImage(symbol: .cameraFilters)
+ R.image.customAppBackgroundDotted()!.applySymbolConfig(size: 20)
case .screenShot:
UIImage(symbol: .cameraViewfinder)
case .haptic:
@@ -590,7 +590,7 @@ struct GameSetting: SettingCellItem {
case .skins:
R.string.localizable.gameSettingSkins()
case .filter:
- R.string.localizable.gameSettingFilter()
+ R.string.localizable.shaders()
case .screenShot:
R.string.localizable.gameSettingScreenShot()
case .haptic:
@@ -658,11 +658,11 @@ struct GameSetting: SettingCellItem {
switch gameType {
case ._3ds:
if defaultCore == 0 {
- if type == .fastForward || type == .filter || type == .palette || type == .swapDisk || type == .retro || type == .airPlayScaling || type == .retro {
+ if type == .fastForward || type == .filter || type == .palette || type == .swapDisk || type == .retro || type == .airPlayScaling {
return false
}
} else {
- if type == .palette || type == .swapDisk || type == .retro || type == .retro || type == .consoleHome || type == .amiibo {
+ if type == .palette || type == .swapDisk || type == .retro || type == .consoleHome {
return false
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Models/Skin.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Models/Skin.swift
index 9d243c89..8af90b6d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Models/Skin.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Models/Skin.swift
@@ -15,7 +15,7 @@ extension Skin: CKRecordConvertible & CKRecordRecoverable { }
enum SkinType: Int, PersistableEnum {
// case `default`, manic, delta
- case `default`, buildIn, `import`
+ case `default`, buildIn, `import`, playcase
}
///只存储用户皮肤 自带的默认皮肤不会进行存储
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
index d8ce5da7..814ea553 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/VIewControllers/PlayViewController.swift
@@ -192,6 +192,11 @@ class PlayViewController: GameViewController {
private var isFirstTimeSetGBPalette = true;
static func startGame(game: Game, saveState: GameSaveState? = nil) {
+ if game.gameType == .ns {
+ MelonNXKit.startGame(id: game.id)
+ return
+ }
+
#if !SIDE_LOAD
//AppStore版本禁用MCD和32X
if game.gameType == .mcd || game.gameType == ._32x {
@@ -254,7 +259,7 @@ class PlayViewController: GameViewController {
launchGameByDismissOtherVC()
}
}
- if game.gameType == ._3ds, !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShow3DSPlayAlert) {
+ if game.isCitra3DS, !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShow3DSPlayAlert) {
UIView.makeAlert(title: R.string.localizable.threeDSBetaAlertTitle(),
detail: R.string.localizable.threeDSBetaAlertDetail(),
detailAlignment: .left,
@@ -761,13 +766,7 @@ class PlayViewController: GameViewController {
(gameSortType == .latestPlayed || gameSortType == .playTime) {
NotificationCenter.default.post(name: Constants.NotificationName.GameSortChange, object: nil)
}
-
- //取消Alert的MenuInset
- UIView.alertBottomInset = nil
-
- if manicGame.gameType == .arcade, manicGame.defaultCore == 0 {
- LibretroCore.sharedInstance().setLibretroLogMonitor(false)
- }
+ //Libretro已经停止,不要在这里进行注销事项,应该在stop()函数中完成
}
/// 进入默认显示的方向
@@ -830,8 +829,6 @@ class PlayViewController: GameViewController {
manicGame.currentDiskIndex = LibretroCore.sharedInstance().getCurrentDiskIndex()
}
GameSettingView.show(game: manicGame,
- gameViewRect: gameView.frame,
- menuInsets: getMenuInsets(),
didSelectItem: { [weak self] item, sheet in
//点击菜单选项
guard let self = self else { return true }
@@ -1330,7 +1327,7 @@ extension PlayViewController {
if menuSheet == nil {
pauseEmulation()
}
- GameInfoView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), selection: { [weak self, weak menuSheet] saveState in
+ GameInfoView.show(game: manicGame, selection: { [weak self, weak menuSheet] saveState in
guard let self = self else { return }
func loadSave() {
if self.manicGame.isCitra3DS {
@@ -1379,13 +1376,13 @@ extension PlayViewController {
pauseEmulation()
}
if manicGame.gameType == .arcade, manicGame.defaultCore == 1 {
- FBNeoCheatCodeListView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ FBNeoCheatCodeListView.show(game: manicGame, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
})
} else {
- CheatCodeListView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ CheatCodeListView.show(game: manicGame, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
@@ -1398,7 +1395,7 @@ extension PlayViewController {
if menuSheet == nil {
pauseEmulation()
}
- SkinSettingsView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ SkinSettingsView.show(game: manicGame, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
@@ -1411,10 +1408,19 @@ extension PlayViewController {
pauseEmulation()
}
if manicGame.isLibretroType {
- FilterSelectionView.show(game: self.manicGame, snapshot: nil, gameViewRect: self.gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ ShadersListView.show(game: self.manicGame, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
+ }, didSelectShader: { shader in
+ Game.change { [weak self] realm in
+ guard let self = self else { return }
+ if shader.isOriginal {
+ self.manicGame.filterName = nil
+ } else {
+ self.manicGame.filterName = shader.relativePath
+ }
+ }
})
}
return false
@@ -1500,7 +1506,7 @@ extension PlayViewController {
if menuSheet == nil {
pauseEmulation()
}
- ControllersSettingView.show(gameType: manicGame.gameType, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ ControllersSettingView.show(gameType: manicGame.gameType, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
@@ -1525,7 +1531,7 @@ extension PlayViewController {
if menuSheet == nil {
pauseEmulation()
}
- GameSettingView.show(game: manicGame, gameViewRect: gameView.frame, isEditingMode: true, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ GameSettingView.show(game: manicGame, isEditingMode: true, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
@@ -1615,32 +1621,33 @@ extension PlayViewController {
case .amiibo:
//MARK: handleMenuGameSetting.amiibo
//加载amiibo
- if manicGame.gameType == ._3ds, let threeDSCore {
- if manicGame.isCitra3DS {
- if threeDSCore.isAmiiboSearching() {
- if menuSheet == nil {
- pauseEmulation()
- }
- Log.debug("amiibo正在搜索中")
- FilesImporter.shared.presentImportController(supportedTypes: UTType.binTypes, allowsMultipleSelection: false) { [weak self] urls in
+ if manicGame.gameType == ._3ds {
+ let isSearchingAmiibo = (manicGame.isCitra3DS && (threeDSCore?.isAmiiboSearching() ?? false)) || (manicGame.isAzahar3DS && LibretroCore.sharedInstance().isSearchingAmiibo())
+ if isSearchingAmiibo {
+ if menuSheet == nil {
+ pauseEmulation()
+ }
+ Log.debug("amiibo正在搜索中")
+ FilesImporter.shared.presentImportController(supportedTypes: UTType.binTypes, allowsMultipleSelection: false) { [weak self] urls in
+ guard let self = self else { return }
+ self.resumeEmulationAndHandleAudio()
+ UIView.hideAllAlert { [weak self] in
guard let self = self else { return }
- self.resumeEmulationAndHandleAudio()
- UIView.hideAllAlert { [weak self] in
- guard let self = self else { return }
- if let url = urls.first {
- DispatchQueue.main.asyncAfter(delay: 1) {
+ if let url = urls.first {
+ DispatchQueue.main.asyncAfter(delay: 1) {
+ if self.manicGame.isCitra3DS {
self.threeDSCore?.loadAmiibo(path: url.path)
+ } else {
+ LibretroCore.sharedInstance().loadAmiibo(url.path)
}
}
}
}
- return false
- } else {
- Log.debug("amiibo没有搜索")
- UIView.makeToast(message: R.string.localizable.amiiboNotSearching())
}
+ return false
} else {
- //TODO: azahar amiibo
+ Log.debug("amiibo没有搜索")
+ UIView.makeToast(message: R.string.localizable.amiiboNotSearching())
}
}
case .toggleFullscreen:
@@ -1805,7 +1812,7 @@ extension PlayViewController {
}
func showManualsView() {
- GameplayManualsView.show(game: manicGame, gameViewRect: gameView.frame, menuInsets: getMenuInsets(), hideCompletion: { [weak self] in
+ GameplayManualsView.show(game: manicGame, hideCompletion: { [weak self] in
if menuSheet == nil {
self?.resumeEmulationAndHandleAudio()
}
@@ -2261,7 +2268,8 @@ extension PlayViewController {
"fastforward_frameskip": "false",
"log_verbosity": enableLibretroLog,
"libretro_log_level": libretroLogLevel,
- "camera_driver": ((manicGame.gameType == .gb || manicGame.gameType == .gbc) && manicGame.defaultCore == 1) ? "null" : "avfoundation",
+ "camera_allow": "true",
+ "camera_driver": "avfoundation",
"microphone_enable": enableMircophone ? "true" : "false",
"microphone_driver": "coreaudio",
"audio_latency": "200"
@@ -2409,12 +2417,6 @@ extension PlayViewController {
}
//更新3DS画面视图
updateCitra3DSViews()
- //设置Alert的menuInsets
- if let menuInsets = getMenuInsets() {
- UIView.alertBottomInset = menuInsets.bottom
- } else {
- UIView.alertBottomInset = nil
- }
}
/// 按照配置开始强制旋转屏幕
@@ -2713,7 +2715,7 @@ extension PlayViewController {
language: manicGame.region-1,
renderRightEye: manicGame.renderRightEye)
threeDSCore?.openKeyboardAction { hintText, keyboardType, maxTextSize in
- ThreeDSKeyboardView.show(hintText: hintText, keyboardType: keyboardType, maxTextSize: maxTextSize)
+ ThreeDSKeyboardView.showForCitra(hintText: hintText, keyboardType: keyboardType, maxTextSize: maxTextSize)
}
}
}
@@ -2776,12 +2778,21 @@ extension PlayViewController {
self.manicGame.setExtras(gameInfo)
}
}
+ } else if manicGame.isAzahar3DS {
+ //注册azahar的键盘
+ compltion = { _ in
+ LibretroCore.sharedInstance().registerAzaharKeyboard { config in
+ ThreeDSKeyboardView.showForAzahar(config: config,
+ tapAction: { buttonType, text in
+ LibretroCore.sharedInstance().inputAzaharKeyboard(text, buttonType: buttonType)
+ })
+ }
+ }
}
self.updateDualScreenViews()
LibretroCore.sharedInstance().setCustomSaveExtension(customSaveExtension)
if self.manicGame.isNDSHomeMenuGame || self.manicGame.isDSiHomeMenuGame {
LibretroCore.sharedInstance().loadWithoutContent(corePath)
- //TODO: Azahar的home menu加载
} else {
LibretroCore.sharedInstance().loadGame(manicGame.romUrl.path, corePath: corePath, completion: compltion)
}
@@ -3151,9 +3162,7 @@ extension PlayViewController {
guard let self else { return }
self.pauseEmulation()
CheevosPopupView.show(type: .leaderboard,
- leaderboards: leaderboards.reversed(),
- gameViewRect: self.gameView.frame,
- menuInsets: getMenuInsets()) { [weak self] in
+ leaderboards: leaderboards.reversed()) { [weak self] in
self?.resumeEmulationAndHandleAudio()
}
}
@@ -3174,9 +3183,7 @@ extension PlayViewController {
guard let self else { return }
self.pauseEmulation()
CheevosPopupView.show(type: .progress,
- achievements: progressAchievements.reversed(),
- gameViewRect: self.gameView.frame,
- menuInsets: getMenuInsets()) { [weak self] in
+ achievements: progressAchievements.reversed()) { [weak self] in
self?.resumeEmulationAndHandleAudio()
}
}
@@ -3198,9 +3205,7 @@ extension PlayViewController {
self.pauseEmulation()
CheevosPopupView.show(type: .challenge,
- achievements: self.challengeAchievements.reversed(),
- gameViewRect: self.gameView.frame,
- menuInsets: getMenuInsets()) { [weak self] in
+ achievements: self.challengeAchievements.reversed()) { [weak self] in
self?.resumeEmulationAndHandleAudio()
}
}
@@ -3372,7 +3377,7 @@ extension PlayViewController: GameViewControllerDelegate {
if SheetProvider.find(identifier: Constants.Strings.PlayPurchaseAlertIdentifier).count > 0 {
return false
}
- return (GameSettingView.isShow || GameInfoView.isShow || CheatCodeListView.isShow || SkinSettingsView.isShow || FilterSelectionView.isShow || ControllersSettingView.isShow || GameSettingView.isEditingShow || WebViewController.isShow || FlexSkinSettingViewController.isShow || RetroAchievementsListViewController.isShow || CheevosPopupView.isShow || GameplayManualsView.isShow || FBNeoCheatCodeListView.isShow) ? false : true
+ return (GameSettingView.isShow || GameInfoView.isShow || CheatCodeListView.isShow || SkinSettingsView.isShow || ShadersListView.isShow || ControllersSettingView.isShow || GameSettingView.isEditingShow || WebViewController.isShow || FlexSkinSettingViewController.isShow || RetroAchievementsListViewController.isShow || CheevosPopupView.isShow || GameplayManualsView.isShow || FBNeoCheatCodeListView.isShow) ? false : true
}
}
@@ -3405,4 +3410,11 @@ extension PlayViewController {
}
return false
}
+
+ static var menuInsets: UIEdgeInsets? {
+ if let currentPlayViewController {
+ return currentPlayViewController.getMenuInsets()
+ }
+ return nil
+ }
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Views/CheevosPopupView.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Views/CheevosPopupView.swift
index cf4aafc9..5f387175 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Views/CheevosPopupView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Views/CheevosPopupView.swift
@@ -341,11 +341,9 @@ extension CheevosPopupView {
static func show(type: CheevosPopupViewType,
leaderboards: [CheevosLeaderboard]? = nil,
achievements: [CheevosAchievement]? = nil,
- gameViewRect: CGRect,
- menuInsets: UIEdgeInsets?,
hideCompletion: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: CheevosPopupView.self)) { sheet in
- sheet.configGamePlayingStyle(isForGameMenu: true, gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(isForGameMenu: true, hideCompletion: hideCompletion)
let view = UIView()
@@ -359,7 +357,7 @@ extension CheevosPopupView {
make.height.equalTo(grabberHeight)
}
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.makeBlur()
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Views/GameSettingView.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Views/GameSettingView.swift
index ac93948d..4dd74d42 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Views/GameSettingView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Views/GameSettingView.swift
@@ -853,14 +853,12 @@ extension GameSettingView {
}
static func show(game: Game,
- gameViewRect: CGRect,
isEditingMode: Bool = false,
- menuInsets: UIEdgeInsets? = nil,
didSelectItem:((_ item: GameSetting, _ sheet: SheetTarget?)->Bool)? = nil,
hideCompletion: (()->Void)? = nil) {
let initializer: ((SheetTarget)->Void) = { sheet in
- sheet.configGamePlayingStyle(isForGameMenu: isEditingMode ? false : true, gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(isForGameMenu: isEditingMode ? false : true, hideCompletion: hideCompletion)
let view = UIView()
let grabber = UIImageView(image: R.image.grabber_icon())
@@ -891,7 +889,7 @@ extension GameSettingView {
}
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
if !isEditingMode {
containerView.makeBlur()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Play/Views/ThreeDSKeyboardView.swift b/ManicEmu/ManicEmu/Sources/Business/Play/Views/ThreeDSKeyboardView.swift
index c06923ea..0e27c793 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Play/Views/ThreeDSKeyboardView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Play/Views/ThreeDSKeyboardView.swift
@@ -11,14 +11,9 @@ import ProHUD
import IQKeyboardManagerSwift
struct ThreeDSKeyboardView {
- enum TapType {
- case cancel, ok, forget
- }
-
- static func show(hintText: String?,
- keyboardType: ThreeDSKeyboardType,
- maxTextSize: UInt16,
- tapAction: ((_ tapType: TapType, _ inputText: String?)->Void)? = nil) {
+ static func showForCitra(hintText: String?,
+ keyboardType: ThreeDSKeyboardType,
+ maxTextSize: UInt16) {
Task { @MainActor in
IQKeyboardManager.shared.isEnabled = true
@@ -140,30 +135,254 @@ struct ThreeDSKeyboardView {
}
}
-// let cancelButton = UILabel()
-// cancelButton.isUserInteractionEnabled = true
-// cancelButton.enableInteractive = true
-// cancelButton.text = R.string.localizable.cancelTitle()
-// cancelButton.textAlignment = .center
-// cancelButton.font = Constants.Font.title(size: .s, weight: .regular)
-// cancelButton.textColor = Constants.Color.LabelSecondary
-// cancelButton.addTapGesture { gesture in
-// closeKeyboard(text: nil, buttonPressed: 0)
-// }
-//
-// let forgetButton = UILabel()
-// forgetButton.isUserInteractionEnabled = true
-// forgetButton.enableInteractive = true
-// forgetButton.text = R.string.localizable.game3DSInputForget()
-// forgetButton.textAlignment = .center
-// forgetButton.font = Constants.Font.title(size: .s, weight: .regular)
-// forgetButton.textColor = Constants.Color.LabelSecondary
-// forgetButton.addTapGesture { gesture in
-// closeKeyboard(text: nil, buttonPressed: 1)
-// }
-
-// if keyboardType == .single {
- //只有确定按钮
+ containerView.addSubview(okButton)
+ okButton.snp.makeConstraints { make in
+ make.centerX.equalToSuperview()
+ make.top.equalTo(line.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMax)
+ }
+
+ alert.set(customView: containerView).snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+ }
+
+ static func showForAzahar(config: AzaharKeyboardConfig,
+ tapAction: ((_ buttonType: AzaharButtonType, _ inputText: String?)->Void)? = nil) {
+
+ Task { @MainActor in
+ IQKeyboardManager.shared.isEnabled = true
+ IQKeyboardManager.shared.keyboardDistance = 100
+ }
+
+ Alert { alert in
+ alert.config.cardCornerRadius = 0
+ alert.contentMaskView.alpha = 0
+ alert.config.backgroundViewMask { mask in
+ mask.backgroundColor = .clear
+ }
+
+ let textfiledWidth = UIDevice.isPhone ? 300 : 380
+
+ let containerView = RoundAndBorderView(roundCorner: .allCorners)
+ containerView.backgroundColor = Constants.Color.Background
+ containerView.makeBlur()
+
+ // 标题
+ let titleLabel = UILabel()
+ titleLabel.textAlignment = .center
+ let textTitle: String
+ if let hintText = config.hintText, !hintText.isEmpty {
+ textTitle = hintText
+ } else {
+ textTitle = R.string.localizable.game3DSInputTitle()
+ }
+ titleLabel.text = textTitle
+ titleLabel.font = Constants.Font.title(size: .s)
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ containerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerX.equalToSuperview()
+ make.top.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ make.leading.trailing.greaterThanOrEqualToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+
+ // 输入框容器高度根据是否多行模式调整
+ let textFieldHeight = config.multilineMode ? Constants.Size.ItemHeightMid * 3 : Constants.Size.ItemHeightMid
+
+ let textFieldContainer = RoundAndBorderView(roundCorner: .allCorners, radius: Constants.Size.CornerRadiusMid, borderColor: Constants.Color.Border, borderWidth: 1)
+ textFieldContainer.backgroundColor = Constants.Color.InputBackground
+ containerView.addSubview(textFieldContainer)
+ textFieldContainer.snp.makeConstraints { make in
+ make.height.equalTo(textFieldHeight)
+ make.top.equalTo(titleLabel.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.width.equalTo(textfiledWidth)
+ }
+
+ // 创建输入控件 - 根据多行模式使用不同控件
+ var inputText: () -> String? = { nil }
+
+ if config.multilineMode {
+ // 多行模式使用 UITextView
+ let textView = UITextView()
+ textView.backgroundColor = .clear
+ textView.tintColor = Constants.Color.Main
+ textView.textColor = Constants.Color.LabelPrimary
+ textView.font = Constants.Font.body()
+ textView.textContainerInset = UIEdgeInsets(top: 8, left: 4, bottom: 8, right: 4)
+ textFieldContainer.addSubview(textView)
+ textView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ textView.becomeFirstResponder()
+ inputText = { textView.text }
+ } else {
+ // 单行模式使用 UITextField
+ let textField = UITextField()
+
+ // 设置placeholder - 显示最大长度限制或者固定长度要求
+ if config.acceptedInput == .fixedLength, config.maxTextLength > 0 {
+ textField.placeholder = R.string.localizable.exactlyTextSizeAllowDesc("\(config.maxTextLength)")
+ } else if config.maxTextLength > 0 {
+ textField.placeholder = R.string.localizable.maxTextSizeAllowDesc("\(config.maxTextLength)")
+ }
+
+ textField.tintColor = Constants.Color.Main
+ textField.textColor = Constants.Color.LabelPrimary
+ textField.font = Constants.Font.body()
+ textField.clearButtonMode = .whileEditing
+
+ // 根据过滤器设置键盘类型
+ if config.preventDigit && config.maxDigits == 0 {
+ // 如果完全禁止数字,可以考虑使用默认键盘
+ textField.keyboardType = .default
+ }
+
+ textFieldContainer.addSubview(textField)
+ textField.snp.makeConstraints { make in
+ make.top.bottom.equalToSuperview()
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceTiny)
+ }
+ textField.becomeFirstResponder()
+ inputText = { textField.text }
+ }
+
+ let line = UIView()
+ line.backgroundColor = Constants.Color.Border
+ containerView.addSubview(line)
+ line.snp.makeConstraints { make in
+ make.height.equalTo(1)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
+ make.top.equalTo(textFieldContainer.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+ }
+
+ // 输入验证函数
+ func validateInput(_ text: String?) -> String? {
+ guard let text = text else { return nil }
+
+ // 检查是否为空
+ if config.acceptedInput == .notEmpty || config.acceptedInput == .notEmptyAndNotBlank {
+ if text.isEmpty {
+ return R.string.localizable.emptyInputNotAllowed()
+ }
+ }
+
+ // 检查是否为空白
+ if config.acceptedInput == .notBlank || config.acceptedInput == .notEmptyAndNotBlank {
+ if text.trimmingCharacters(in: .whitespaces).isEmpty && !text.isEmpty {
+ return R.string.localizable.blankInputNotAllowed()
+ }
+ }
+
+ // 检查固定长度
+ if config.acceptedInput == .fixedLength {
+ if text.count != config.maxTextLength {
+ return R.string.localizable.exactlyTextSize("\(config.maxTextLength)")
+ }
+ }
+
+ // 检查最大长度
+ if config.maxTextLength > 0, text.count > config.maxTextLength {
+ return R.string.localizable.maxTextSizeAllowDesc("\(config.maxTextLength)")
+ }
+
+ // 检查过滤器
+ if config.preventAt, text.contains("@") {
+ return R.string.localizable.atSymbolNotAllowed()
+ }
+
+ if config.preventPercent, text.contains("%") {
+ return R.string.localizable.percentSymbolNotAllowed()
+ }
+
+ if config.preventBackslash, text.contains("\\") {
+ return R.string.localizable.backslashSymbolNotAllowed()
+ }
+
+ // 检查数字限制
+ if config.preventDigit, config.maxDigits > 0 {
+ let digitCount = text.filter { $0.isNumber }.count
+ if digitCount > config.maxDigits {
+ return R.string.localizable.digitsMaximumAllowed("\(config.maxDigits)")
+ }
+ }
+
+ return nil
+ }
+
+ // 关闭键盘函数
+ func closeKeyboard(text: String?, buttonType: AzaharButtonType) {
+ alert.pop()
+ tapAction?(buttonType, text)
+
+ Task { @MainActor in
+ IQKeyboardManager.shared.isEnabled = false
+ }
+ }
+
+ // 获取自定义按钮文本
+ func getButtonText(at index: Int, defaultText: String) -> String {
+ if let buttonTexts = config.buttonText, index < buttonTexts.count, !buttonTexts[index].isEmpty {
+ return buttonTexts[index]
+ }
+ return defaultText
+ }
+
+ // 创建按钮
+ // buttonText数组顺序: [0]=Cancel, [1]=Forgot, [2]=Ok
+ let okButton = UILabel()
+ okButton.isUserInteractionEnabled = true
+ okButton.enableInteractive = true
+ okButton.text = getButtonText(at: 2, defaultText: R.string.localizable.confirmTitle())
+ okButton.textAlignment = .center
+ okButton.font = Constants.Font.title(size: .s, weight: .regular)
+ okButton.textColor = Constants.Color.LabelPrimary
+ okButton.addTapGesture { gesture in
+ let text = inputText()
+
+ // 验证输入
+ if let errorMessage = validateInput(text) {
+ textFieldContainer.shake()
+ UIView.makeToast(message: errorMessage)
+ return
+ }
+
+ // 对于 Anything 模式允许空输入
+ if config.acceptedInput == .anything || (text != nil && !text!.isEmpty) {
+ closeKeyboard(text: text, buttonType: .ok)
+ } else {
+ textFieldContainer.shake()
+ }
+ }
+
+ let cancelButton = UILabel()
+ cancelButton.isUserInteractionEnabled = true
+ cancelButton.enableInteractive = true
+ cancelButton.text = getButtonText(at: 0, defaultText: R.string.localizable.cancelTitle())
+ cancelButton.textAlignment = .center
+ cancelButton.font = Constants.Font.title(size: .s, weight: .regular)
+ cancelButton.textColor = Constants.Color.LabelSecondary
+ cancelButton.addTapGesture { gesture in
+ closeKeyboard(text: nil, buttonType: .cancel)
+ }
+
+ let forgetButton = UILabel()
+ forgetButton.isUserInteractionEnabled = true
+ forgetButton.enableInteractive = true
+ forgetButton.text = getButtonText(at: 1, defaultText: R.string.localizable.inputForget())
+ forgetButton.textAlignment = .center
+ forgetButton.font = Constants.Font.title(size: .s, weight: .regular)
+ forgetButton.textColor = Constants.Color.LabelSecondary
+ forgetButton.addTapGesture { gesture in
+ closeKeyboard(text: nil, buttonType: .forgot)
+ }
+
+ // 根据按钮配置布局
+ if config.buttonConfig == .single {
+ // 只有确定按钮
containerView.addSubview(okButton)
okButton.snp.makeConstraints { make in
make.centerX.equalToSuperview()
@@ -171,66 +390,67 @@ struct ThreeDSKeyboardView {
make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMax)
}
-// } else if keyboardType == .dual {
-// //有取消 和 确定
-// containerView.addSubview(cancelButton)
-// containerView.addSubview(okButton)
-//
-// let verticalLine = UIView()
-// verticalLine.backgroundColor = Constants.Color.BackgroundSecondary
-// containerView.addSubview(verticalLine)
-// verticalLine.snp.makeConstraints { make in
-// make.size.equalTo(CGSize(width: 1, height: 26))
-// make.centerX.equalToSuperview()
-// make.centerY.equalTo(cancelButton)
-// }
-//
-// cancelButton.snp.makeConstraints { make in
-// make.top.equalTo(line.snp.bottom).offset(Constants.Size.ContentSpaceMax)
-// make.leading.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
-// make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMax)
-// make.trailing.equalTo(verticalLine.snp.leading)
-// }
-// okButton.snp.makeConstraints { make in
-// make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
-// make.leading.equalTo(verticalLine.snp.trailing)
-// make.centerY.equalTo(cancelButton)
-// }
-//
-// } else if keyboardType == .triple {
-// //取消 忘记了 确定
-// containerView.addSubview(cancelButton)
-// containerView.addSubview(forgetButton)
-// containerView.addSubview(okButton)
-//
-// forgetButton.snp.makeConstraints { make in
-// make.centerX.equalToSuperview()
-// make.top.equalTo(line.snp.bottom).offset(Constants.Size.ContentSpaceMax)
-// make.width.equalToSuperview().dividedBy(3)
-// make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMax)
-// }
-//
-// cancelButton.snp.makeConstraints { make in
-// make.leading.equalToSuperview()
-// make.trailing.equalTo(forgetButton.snp.leading)
-// make.centerY.equalTo(forgetButton)
-// }
-//
-// okButton.snp.makeConstraints { make in
-// make.trailing.equalToSuperview()
-// make.leading.equalTo(forgetButton.snp.trailing)
-// make.centerY.equalTo(forgetButton)
-// }
-// } else {
-// line.isHidden = true
-// textFieldContainer.snp.remakeConstraints { make in
-// make.height.equalTo(Constants.Size.ItemHeightMid)
-// make.top.equalTo(titleLabel.snp.bottom).offset(Constants.Size.ContentSpaceMid)
-// make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
-// make.width.equalTo(textfiledWidth)
-// make.bottom.equalToSuperview().offset(-Constants.Size.ContentSpaceMid)
-// }
-// }
+ } else if config.buttonConfig == .dual {
+ // 取消 | 确定
+ containerView.addSubview(cancelButton)
+ containerView.addSubview(okButton)
+
+ let verticalLine = UIView()
+ verticalLine.backgroundColor = Constants.Color.BackgroundSecondary
+ containerView.addSubview(verticalLine)
+ verticalLine.snp.makeConstraints { make in
+ make.size.equalTo(CGSize(width: 1, height: 26))
+ make.centerX.equalToSuperview()
+ make.centerY.equalTo(cancelButton)
+ }
+
+ cancelButton.snp.makeConstraints { make in
+ make.top.equalTo(line.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.leading.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMax)
+ make.trailing.equalTo(verticalLine.snp.leading)
+ }
+ okButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.leading.equalTo(verticalLine.snp.trailing)
+ make.centerY.equalTo(cancelButton)
+ }
+
+ } else if config.buttonConfig == .triple {
+ // 取消 | 忘记了 | 确定
+ containerView.addSubview(cancelButton)
+ containerView.addSubview(forgetButton)
+ containerView.addSubview(okButton)
+
+ forgetButton.snp.makeConstraints { make in
+ make.centerX.equalToSuperview()
+ make.top.equalTo(line.snp.bottom).offset(Constants.Size.ContentSpaceMax)
+ make.width.equalToSuperview().dividedBy(3)
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentSpaceMax)
+ }
+
+ cancelButton.snp.makeConstraints { make in
+ make.leading.equalToSuperview()
+ make.trailing.equalTo(forgetButton.snp.leading)
+ make.centerY.equalTo(forgetButton)
+ }
+
+ okButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview()
+ make.leading.equalTo(forgetButton.snp.trailing)
+ make.centerY.equalTo(forgetButton)
+ }
+ } else {
+ // None - 无按钮模式
+ line.isHidden = true
+ textFieldContainer.snp.remakeConstraints { make in
+ make.height.equalTo(textFieldHeight)
+ make.top.equalTo(titleLabel.snp.bottom).offset(Constants.Size.ContentSpaceMid)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.width.equalTo(textfiledWidth)
+ make.bottom.equalToSuperview().offset(-Constants.Size.ContentSpaceMid)
+ }
+ }
alert.set(customView: containerView).snp.makeConstraints { make in
make.edges.equalToSuperview()
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift
index 2a869d8b..255d2a9d 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Models/SettingItem.swift
@@ -10,7 +10,7 @@
struct SettingItem {
enum ItemType: String {
- case theme, quickGame, airPlay, iCloud, fullScreenWhenConnectController, FAQ, feedback, shareApp, qq, telegram, discord, clearCache, language, userAgreement, privacyPolicy, autoSaveState, bios, respectSilentMode, onlinePlay, about, retro, rumble, appearance, triggerPro, skin, jit
+ case theme, quickGame, airPlay, iCloud, fullScreenWhenConnectController, FAQ, feedback, shareApp, qq, telegram, discord, clearCache, language, userAgreement, privacyPolicy, autoSaveState, bios, respectSilentMode, onlinePlay, about, retro, rumble, appearance, triggerPro, skin, jit, shaders
}
var type: ItemType
@@ -31,7 +31,7 @@ struct SettingItem {
return Constants.Color.Blue
case .fullScreenWhenConnectController, .shareApp, .triggerPro:
return Constants.Color.Orange
- case .bios, .language, .skin:
+ case .bios, .language, .skin, .shaders:
return Constants.Color.Pink
case .qq, .telegram, .discord, .retro:
return .clear
@@ -100,6 +100,8 @@ struct SettingItem {
UIImage(symbol: .tshirtFill, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
case .jit:
UIImage(symbol: .boltFill, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ case .shaders:
+ R.image.customAppBackgroundDotted()!.applySymbolConfig(font: Constants.Font.body(size: .m, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
}
}
@@ -157,6 +159,8 @@ struct SettingItem {
R.string.localizable.gamesSpecifySkin()
case .jit:
"JIT"
+ case .shaders:
+ R.string.localizable.shaders()
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/DesktopIconCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/DesktopIconCollectionViewCell.swift
index 199f3ecf..3330799c 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/DesktopIconCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/DesktopIconCollectionViewCell.swift
@@ -93,12 +93,7 @@ class DesktopIconCollectionViewCell: UICollectionViewCell {
make.height.equalTo(100)
}
- var icons = ["AppIcon", "AppIcon_Dark", "AppIcon_Retro", "AppIcon_Color"]
- let showUpDate = Date(timeIntervalSince1970: 1761840000)
- if Date.now.secondsSince(showUpDate) > 0 {
- //2025/10/31之后才添加万圣节图标
- icons.append("AppIcon_Halloween")
- }
+ let icons = ["AppIcon", "AppIcon_Xmas", "AppIcon_Pixel32", "AppIcon_Halloween", "AppIcon_Dark", "AppIcon_Retro", "AppIcon_Color"]
let theme = Theme.defalut
for (index, icon) in icons.enumerated() {
let iconView = IconView()
@@ -139,7 +134,6 @@ class DesktopIconCollectionViewCell: UICollectionViewCell {
Theme.change { realm in
Theme.defalut.icon = icons[index]
}
- Theme.defalut.updateExtra(key: ExtraKey.recoverIcon.rawValue, value: "")
} else {
view.selectImageView.isHidden = true
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingDescriptionCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingDescriptionCollectionViewCell.swift
index 5bd2a7e6..e8587a8b 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingDescriptionCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingDescriptionCollectionViewCell.swift
@@ -28,3 +28,26 @@ class SettingDescriptionCollectionViewCell: UICollectionViewCell {
fatalError("init(coder:) has not been implemented")
}
}
+
+class NoInsetDescriptionCollectionViewCell: UICollectionViewCell {
+ let descLabel: UILabel = {
+ let desc = UILabel()
+ desc.numberOfLines = 0
+ desc.textColor = Constants.Color.LabelSecondary
+ desc.font = Constants.Font.body()
+ return desc
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ addSubview(descLabel)
+ descLabel.snp.makeConstraints { make in
+ make.top.bottom.equalToSuperview()
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMin)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift
index 88a147a8..96f10b81 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Settings/Views/SettingsListView.swift
@@ -115,7 +115,8 @@ class SettingsListView: BaseView {
SettingItem(type: .rumble, isOn: Settings.defalut.getExtraBool(key: ExtraKey.rumble.rawValue) ?? false),
SettingItem(type: .retro),
SettingItem(type: .triggerPro),
- SettingItem(type: .jit)
+ SettingItem(type: .jit),
+ SettingItem(type: .shaders),
]
#else
datas[section] = [SettingItem(type: .airPlay, isOn: Settings.defalut.airPlay),
@@ -127,7 +128,8 @@ class SettingsListView: BaseView {
SettingItem(type: .rumble, isOn: Settings.defalut.getExtraBool(key: ExtraKey.rumble.rawValue) ?? false),
SettingItem(type: .retro),
SettingItem(type: .triggerPro),
- SettingItem(type: .jit)
+ SettingItem(type: .jit),
+ SettingItem(type: .shaders),
]
#endif
} else if section == .support {
@@ -572,6 +574,13 @@ extension SettingsListView: UICollectionViewDelegate {
} else {
topViewController()?.present(vc, animated: true)
}
+ case .shaders:
+ let vc = ShadersListViewController(showClose: UIDevice.isPad ? false : true, initType: .normal)
+ if UIDevice.isPad {
+ didTapDetail?(vc)
+ } else {
+ topViewController()?.present(vc, animated: true)
+ }
default:
break
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Models/Shader.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Models/Shader.swift
new file mode 100644
index 00000000..9690abf4
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Models/Shader.swift
@@ -0,0 +1,274 @@
+//
+// Shader.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/13.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+struct Shader: Equatable {
+ struct Parameter {
+ var identifier: String
+ var desc: String
+ var current: Float
+ var minimum: Float
+ var maximum: Float
+ var step: Float
+ var pass: UInt32
+ }
+
+ var title: String
+ var isSelected: Bool
+ var relativePath: String
+
+ //需要通过Libretro获取以下参数
+ var parameters = [Parameter]()
+ var appendedShaders = [Shader]()
+ var indexInAppendage = 0
+ var isBase: Bool = false
+
+ //特殊属性
+ var isOriginal: Bool = false
+ var baseRelativePath: String? = nil
+ var forceBase: String? = nil
+
+ //计算属性
+ var filePath: String {
+ Constants.Path.Shaders.appendingPathComponent(relativePath)
+ }
+
+ var changingPath: String {
+ Constants.Path.Shaders.appendingPathComponent("retroarch.\(relativePath.pathExtension)")
+ }
+
+ var customPath: String {
+ Constants.Path.Shaders.appendingPathComponent("\(title).\(relativePath.pathExtension)")
+ }
+
+ var forceBasePath: String? {
+ if let forceBase {
+ return Constants.Path.Shaders.appendingPathComponent(forceBase)
+ }
+ return nil
+ }
+
+ static func == (lhs: Shader, rhs: Shader) -> Bool {
+ if lhs.title != rhs.title {
+ return false
+ }
+ if lhs.indexInAppendage != rhs.indexInAppendage {
+ return false
+ }
+ if lhs.appendedShaders.count != rhs.appendedShaders.count {
+ return false
+ }
+ for (index, lhsShader) in lhs.appendedShaders.enumerated() {
+ let rhsShader = rhs.appendedShaders[index]
+ if lhsShader != rhsShader {
+ return false
+ }
+ }
+ if lhs.parameters.count != rhs.parameters.count {
+ return false
+ }
+ for (index, lhsParams) in lhs.parameters.enumerated() {
+ let rhsParams = rhs.parameters[index]
+ if lhsParams.identifier != rhsParams.identifier {
+ return false
+ }
+ if lhsParams.current != rhsParams.current {
+ return false
+ }
+ }
+ return true
+ }
+
+ //从预设中文件中读取已经附加的其他预设并填充appendedShaders属性
+ mutating func fulfillAppendedShaders() {
+ if let shaderString = try? String(contentsOfFile: filePath, encoding: .utf8) {
+ for line in shaderString.lines() {
+ if line.starts(with: Constants.Strings.AppendedShaders) {
+ if let listString = line.components(separatedBy: "=").last?.trimmed.replacingOccurrences(of: "\"", with: "") {
+ let appendedShadersPathes = listString.components(separatedBy: ",")
+ var appendedShaders = [Shader]()
+ for (index, path) in appendedShadersPathes.enumerated() {
+ if path.trimmed.isEmpty {
+ continue
+ }
+ let shader = Shader(title: path.trimmed.lastPathComponent.deletingPathExtension, isSelected: false, relativePath: path.trimmed)
+ if shader.relativePath == self.relativePath {
+ self.indexInAppendage = index
+ continue
+ }
+ appendedShaders.append(shader)
+ }
+ self.appendedShaders = appendedShaders
+ break
+ }
+ }
+ }
+ }
+ }
+
+ mutating func fulfillParameters() {
+ if let parameters = LibretroCore.sharedInstance().loadParameters() {
+ self.parameters = parameters.map({ Parameter(identifier: $0.identifier, desc: $0.desc, current: $0.current, minimum: $0.minimum, maximum: $0.maximum, step: $0.step, pass: $0.pass)})
+ }
+ }
+
+ func updateForceBasePrameters() {
+ if let _ = forceBase {
+ LibretroCore.sharedInstance().setShader(filePath)
+ if let parameters = LibretroCore.sharedInstance().loadParameters() {
+ updateAppendedShadersForEngine()
+ for parameter in parameters {
+ updateParameters(identifier: parameter.identifier, value: parameter.current)
+ }
+ }
+ }
+ }
+
+ func updateAppendedShadersForEngine() {
+ LibretroCore.sharedInstance().setShader(forceBasePath ?? filePath)
+
+ //更新附加预设
+ var tempAppendedShaders = appendedShaders
+ tempAppendedShaders.insert(self, at: indexInAppendage)
+ if tempAppendedShaders.count > 1, indexInAppendage < tempAppendedShaders.count {
+ var prepends = [Shader]()
+ var appends = [Shader]()
+ if indexInAppendage > 0 {
+ prepends = (tempAppendedShaders[..<indexInAppendage]).reversed()
+ }
+
+ if indexInAppendage != tempAppendedShaders.count - 1 {
+ appends = Array(appendedShaders[(indexInAppendage)...])
+ }
+
+ for prepend in prepends {
+ LibretroCore.sharedInstance().appendShader(prepend.filePath, prepend: true)
+ LibretroCore.sharedInstance().setShader(changingPath)
+ }
+ for append in appends {
+ LibretroCore.sharedInstance().appendShader(append.filePath, prepend: false)
+ LibretroCore.sharedInstance().setShader(changingPath)
+ }
+ }
+ }
+
+ func updateParameters(identifier: String, value: Float) {
+ LibretroCore.sharedInstance().updateParameter(with: identifier, value: value, changingPath: changingPath)
+ }
+
+ func getChangingParameters(with originShader: Shader) -> [(identifier: String, value: Float)] {
+ var result = [(identifier: String, value: Float)]()
+ for parameter in parameters {
+ if let originParameter = originShader.parameters.first(where: { $0.identifier == parameter.identifier }) {
+ if parameter.current != originParameter.current {
+ result.append((parameter.identifier, parameter.current))
+ }
+ } else {
+ result.append((parameter.identifier, parameter.current))
+ }
+ }
+ return result
+ }
+
+ func optimizeConfig() {
+ func readConfig(content: String) -> [(key: String, value: String)] {
+ let pattern = #"\s*([A-Za-z0-9_]+)\s*=\s*"(.*?)"\s*"#
+ let regex = try! NSRegularExpression(pattern: pattern)
+
+ let nsRange = NSRange(content.startIndex..., in: content)
+ let matches = regex.matches(in: content, range: nsRange)
+
+ return matches.compactMap { match in
+ guard
+ let keyRange = Range(match.range(at: 1), in: content),
+ let valueRange = Range(match.range(at: 2), in: content)
+ else {
+ return nil
+ }
+
+ return (
+ key: String(content[keyRange]),
+ value: String(content[valueRange])
+ )
+ }
+ }
+
+ func updateConfig(
+ content: String,
+ key: String,
+ value: String
+ ) -> String {
+ let pattern = #"(^|\n)\s*\#(key)\s*=\s*"(.*?)""#
+
+ guard let regex = try? NSRegularExpression(pattern: pattern, options: []) else {
+ return content
+ }
+
+ let range = NSRange(content.startIndex..., in: content)
+
+ return regex.stringByReplacingMatches(
+ in: content,
+ options: [],
+ range: range,
+ withTemplate: #"$1\#(key) = "\#(value)""#
+ )
+ }
+
+ if let configString = try? String(contentsOfFile: changingPath, encoding: .utf8) {
+ let configs = readConfig(content: configString)
+ let pathMatch = "/Library/Libretro/shaders/"
+ var needToUpdates = [String: String]()
+ for config in configs {
+ if let range = config.value.range(of: pathMatch) {
+ needToUpdates[config.key] = String(config.value[range.upperBound...])
+ }
+ }
+ var newConfig = configString
+ if needToUpdates.count > 0 {
+ for update in needToUpdates {
+ newConfig = updateConfig(content: newConfig, key: update.key, value: update.value)
+ }
+ }
+
+ if appendedShaders.count > 0 {
+ var tempAppendedShaders = appendedShaders
+ var tempShader = self
+ tempShader.relativePath = tempShader.title + "." + tempShader.relativePath.pathExtension
+ tempAppendedShaders.insert(tempShader, at: indexInAppendage)
+ let appendString = tempAppendedShaders.reduce("", { $0 + ($0 == "" ? "" : ",") + $1.relativePath })
+
+ if configs.contains(where: { $0.key == Constants.Strings.AppendedShaders }) {
+ newConfig = updateConfig(content: newConfig, key: Constants.Strings.AppendedShaders, value: appendString)
+ } else {
+ newConfig = newConfig + "\n\(Constants.Strings.AppendedShaders) = \"\(appendString)\""
+ }
+
+ if configs.contains(where: { $0.key == Constants.Strings.ShaderForceBase }) {
+ newConfig = updateConfig(content: newConfig, key: Constants.Strings.ShaderForceBase, value: forceBase ?? relativePath)
+ } else {
+ newConfig = newConfig + "\n\(Constants.Strings.ShaderForceBase) = \"\(forceBase ?? relativePath)\""
+ }
+
+ } else if let baseRelativePath {
+ newConfig = newConfig.lines().reduce("", {
+ var newLine = $1
+ if $1.contains("#reference") {
+ newLine = "#reference \"\(baseRelativePath)\""
+ }
+ return $0 + ($0 == "" ? "" : "\n") + newLine
+ })
+ }
+ Log.debug(
+"""
+\n=======================Shader已更新=======================
+\(newConfig)
+=========================================================
+""")
+ try? newConfig.write(toFile: changingPath, atomically: true, encoding: .utf8)
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/ViewControllers/ShadersListViewController.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/ViewControllers/ShadersListViewController.swift
new file mode 100644
index 00000000..47ebd77b
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/ViewControllers/ShadersListViewController.swift
@@ -0,0 +1,42 @@
+//
+// ShadersListViewController.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/11.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class ShadersListViewController: BaseViewController {
+
+ private lazy var shadersListView: ShadersListView = {
+ let view = ShadersListView(showClose: showClose, initType: initType, usingShaderPath: usingShaderPath)
+ view.didTapClose = {[weak self] in
+ self?.dismiss(animated: true)
+ }
+ return view
+ }()
+
+ private var showClose: Bool
+ private var initType: ShadersListView.InitType
+ private var usingShaderPath: String? = nil
+
+ init(showClose: Bool = true, initType: ShadersListView.InitType, isGlsl: Bool = false, usingShaderPath: String? = nil) {
+ self.showClose = showClose
+ self.initType = initType
+ super.init(nibName: nil, bundle: nil)
+ self.usingShaderPath = usingShaderPath
+ }
+
+ @MainActor required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ view.addSubview(shadersListView)
+ shadersListView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoAppendCell.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoAppendCell.swift
new file mode 100644
index 00000000..baa0f775
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoAppendCell.swift
@@ -0,0 +1,80 @@
+//
+// ShaderInfoAppendCell.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/14.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class ShaderInfoAppendCell: UICollectionViewCell {
+ private var iconView: UIImageView = {
+ let view = UIImageView()
+ view.backgroundColor = Constants.Color.Main
+ view.contentMode = .center
+ view.layerCornerRadius = 6
+ view.image = UIImage(symbol: .timer, font: Constants.Font.body(size: .s, weight: .medium), color: Constants.Color.LabelPrimary.forceStyle(.dark))
+ return view
+ }()
+
+ private var titleLabel: UILabel = {
+ let label = UILabel()
+ label.numberOfLines = 2
+ let matt = NSMutableAttributedString(string: R.string.localizable.appendShadersTitle(), attributes: [.font: Constants.Font.body(size: .l, weight: .semibold), .foregroundColor: Constants.Color.LabelPrimary])
+ matt.append(NSAttributedString(string: "\n\(R.string.localizable.appendShadersDetail())", attributes: [.font: Constants.Font.caption(size: .l), .foregroundColor: Constants.Color.LabelSecondary]))
+ let style = NSMutableParagraphStyle()
+ style.lineSpacing = Constants.Size.ContentSpaceUltraTiny/2
+ style.alignment = .left
+ label.attributedText = matt.applying(attributes: [.paragraphStyle: style])
+ return label
+ }()
+
+ var chevronButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .chevronRight,
+ font: Constants.Font.caption(size: .l, weight: .bold),
+ color: Constants.Color.BackgroundSecondary),
+ title: "",
+ titleFont: Constants.Font.caption(size: .l),
+ titleColor: Constants.Color.LabelSecondary,
+ titleAlignment: .left,
+ edgeInsets: .init(inset: Constants.Size.ContentSpaceUltraTiny),
+ titlePosition: .left,
+ imageAndTitlePadding: Constants.Size.ContentSpaceUltraTiny,
+ enableGlass: false)
+ view.backgroundColor = .clear
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ enableInteractive = true
+ delayInteractiveTouchEnd = true
+
+ backgroundColor = Constants.Color.BackgroundPrimary
+ layerCornerRadius = Constants.Size.CornerRadiusMid
+
+ addSubview(iconView)
+ iconView.snp.makeConstraints { make in
+ make.top.equalToSuperview().inset(18)
+ make.leading.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.size.equalTo(24)
+ }
+
+ addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.leading.equalTo(iconView.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ addSubview(chevronButton)
+ chevronButton.snp.makeConstraints { make in
+ make.centerY.equalTo(iconView)
+ make.leading.greaterThanOrEqualTo(titleLabel.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoInputCell.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoInputCell.swift
new file mode 100644
index 00000000..d3061c75
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoInputCell.swift
@@ -0,0 +1,49 @@
+//
+// ShaderInfoInputCell.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/14.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class ShaderInfoInputCell: UICollectionViewCell {
+ var shouldGoNext: (()->Void)? = nil
+ lazy var editTextField: UITextField = {
+ let view = UITextField()
+ view.textColor = Constants.Color.LabelPrimary
+ view.font = Constants.Font.body(size: .l)
+ view.clearButtonMode = .whileEditing
+ view.onReturnKeyPress { [weak self] in
+ guard let self = self else { return }
+ self.shouldGoNext?()
+ }
+ view.attributedPlaceholder = NSAttributedString(string: R.string.localizable.cheatCodeNamePlaceHolder(), attributes: [.font: Constants.Font.body(size: .l), .foregroundColor: Constants.Color.LabelTertiary])
+ view .returnKeyType = .done
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ enableInteractive = true
+ delayInteractiveTouchEnd = true
+
+ let textFieldContainer = RoundAndBorderView(roundCorner: .allCorners, radius: Constants.Size.CornerRadiusMid)
+ textFieldContainer.backgroundColor = Constants.Color.InputBackground
+ addSubview(textFieldContainer)
+ textFieldContainer.snp.makeConstraints { make in
+ make.leading.bottom.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ textFieldContainer.addSubview(editTextField)
+ editTextField.snp.makeConstraints { make in
+ make.top.bottom.equalToSuperview()
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoParameterCell.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoParameterCell.swift
new file mode 100644
index 00000000..6d0d36b8
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoParameterCell.swift
@@ -0,0 +1,59 @@
+//
+// ShaderInfoParameterCell.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/14.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class ShaderInfoParameterCell: UICollectionViewCell {
+ var titleLabel: UILabel = {
+ let label = UILabel()
+ label.font = Constants.Font.body(size: .l)
+ label.textColor = Constants.Color.LabelPrimary
+ return label
+ }()
+
+ var chevronButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .chevronRight,
+ font: Constants.Font.caption(size: .l, weight: .bold),
+ color: Constants.Color.BackgroundSecondary),
+ title: "",
+ titleFont: Constants.Font.caption(size: .l),
+ titleColor: Constants.Color.LabelSecondary,
+ titleAlignment: .left,
+ edgeInsets: .init(inset: Constants.Size.ContentSpaceUltraTiny),
+ titlePosition: .left,
+ imageAndTitlePadding: Constants.Size.ContentSpaceUltraTiny,
+ enableGlass: false)
+ view.backgroundColor = .clear
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ enableInteractive = true
+ delayInteractiveTouchEnd = true
+
+ backgroundColor = Constants.Color.BackgroundPrimary
+ layerCornerRadius = Constants.Size.CornerRadiusMid
+
+ addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalToSuperview()
+ make.leading.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+
+ addSubview(chevronButton)
+ chevronButton.snp.makeConstraints { make in
+ make.centerY.equalTo(titleLabel)
+ make.leading.greaterThanOrEqualTo(titleLabel.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoView.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoView.swift
new file mode 100644
index 00000000..2737bf74
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderInfoView.swift
@@ -0,0 +1,411 @@
+//
+// ShaderInfoView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/14.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import IQKeyboardManagerSwift
+import ProHUD
+
+class ShaderInfoView: BaseView {
+
+ enum SectionIndex: Int {
+ case desc, shaderName, appendShaders, parameters
+
+ var title: String {
+ switch self {
+ case .desc:
+ ""
+ case .shaderName:
+ R.string.localizable.shaderName()
+ case .appendShaders:
+ R.string.localizable.appendShadersTitle()
+ case .parameters:
+ R.string.localizable.parameters()
+ }
+ }
+ }
+
+ private var navigationBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var collectionView: UICollectionView = {
+ let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.register(cellWithClass: NoInsetDescriptionCollectionViewCell.self)
+ view.register(cellWithClass: ShaderInfoInputCell.self)
+ view.register(cellWithClass: ShaderInfoAppendCell.self)
+ view.register(cellWithClass: ShaderInfoParameterCell.self)
+ view.register(supplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withClass: BackgroundColorHaderReusableView.self)
+ view.showsVerticalScrollIndicator = false
+ view.dataSource = self
+ view.delegate = self
+ view.contentInset = UIEdgeInsets(top: Constants.Size.ItemHeightMid, left: 0, bottom: Constants.Size.ContentInsetBottom, right: 0)
+ return view
+ }()
+
+ private lazy var saveButton: HowToButton = {
+ let view = HowToButton(title: R.string.localizable.saveTitle(), enableGlass: true) { [weak self] in
+ guard let self = self else { return }
+ self.collectionView.endEditing(true)
+
+ if self.editShader.title == "retroarch" {
+ UIView.makeToast(message: R.string.localizable.customShaderTitleWrong())
+ return
+ }
+
+ func saveShader() {
+ if !FileManager.default.fileExists(atPath: self.editShader.changingPath) {
+ UIView.makeAlert(detail: R.string.localizable.customShaderSaveFailed(), cancelTitle: R.string.localizable.confirmTitle())
+ return
+ }
+ self.editShader.optimizeConfig()
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: self.editShader.changingPath), to: URL(fileURLWithPath: self.editShader.customPath), shouldReplace: true)
+ UIView.makeToast(message: R.string.localizable.customShaderSaveSuccess(self.editShader.title))
+ didTapClose?(true)
+ }
+
+ if FileManager.default.fileExists(atPath: self.editShader.customPath) {
+ UIView.makeAlert(detail: R.string.localizable.customShaderExists(), confirmTitle: R.string.localizable.confirmTitle(), confirmAction: {
+ saveShader()
+ })
+ } else {
+ saveShader()
+ }
+ }
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ if self.editShader != self.originShader {
+ UIView.makeAlert(detail: R.string.localizable.changeAlert(), confirmTitle: R.string.localizable.multiDiscContinueClose(), confirmAction: {
+ self.didTapClose?(false)
+ })
+ } else {
+ self.didTapClose?(false)
+ }
+ }
+ return view
+ }()
+
+ private var originShader: Shader
+ private var editShader: Shader
+ private var libretroEngine: Any? = nil
+
+ var didTapClose: ((Bool)->Void)? = nil
+
+ init(shader: Shader) {
+ var tempShader = shader
+ tempShader.isBase = true
+ self.originShader = tempShader
+ self.editShader = tempShader
+ super.init(frame: .zero)
+ Log.debug("\(String(describing: Self.self)) init")
+
+ addSubview(collectionView)
+ collectionView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ addSubview(navigationBlurView)
+ navigationBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ updateConfirmButton(enable: false)
+ navigationBlurView.addSubview(saveButton)
+ saveButton.snp.makeConstraints { make in
+ make.leading.equalTo(Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+
+ navigationBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+
+ IQKeyboardManager.shared.isEnabled = true
+
+ UIView.makeLoading()
+ DispatchQueue.main.asyncAfter(delay: 0.35, execute: {
+ if !PlayViewController.isGaming {
+ self.libretroEngine = LibretroCore.sharedInstance().start(withCustomSaveDir: nil)
+ LibretroCore.sharedInstance().pause()
+ }
+ if LibretroCore.sharedInstance().setShader(self.editShader.forceBasePath ?? self.editShader.filePath) {
+ self.originShader.fulfillAppendedShaders()
+ self.originShader.updateAppendedShadersForEngine()
+ self.originShader.updateForceBasePrameters()
+ self.originShader.fulfillParameters()
+ self.editShader = self.originShader
+ UIView.hideLoading()
+ self.collectionView.reloadData()
+ } else {
+ DispatchQueue.main.asyncAfter(delay: 1.5) {
+ UIView.hideLoading()
+ UIView.makeToast(message: R.string.localizable.shaderLoadFailed())
+ self.didTapClose?(false)
+ }
+ }
+ })
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ Task {
+ await MainActor.run {
+ IQKeyboardManager.shared.isEnabled = false
+ }
+ }
+ if let _ = libretroEngine {
+ LibretroCore.sharedInstance().resume()
+ LibretroCore.sharedInstance().stop()
+ }
+ }
+
+ private func createLayout() -> UICollectionViewLayout {
+ let layout = UICollectionViewCompositionalLayout { sectionIndex, env in
+ guard let sectionType = SectionIndex(rawValue: sectionIndex) else { return nil }
+ //item布局
+ let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .fractionalHeight(1)))
+
+
+
+
+ let itemHeight: CGFloat = sectionType == .desc || sectionType == .appendShaders ? 60 : 50
+
+ //group布局
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: sectionType == .desc ? .estimated(itemHeight) : .absolute(itemHeight)), subitems: [item])
+ group.contentInsets = NSDirectionalEdgeInsets(top: 0,
+ leading: Constants.Size.ContentSpaceMid,
+ bottom: 0,
+ trailing: Constants.Size.ContentSpaceMid)
+
+ //section布局
+ let section = NSCollectionLayoutSection(group: group)
+ section.contentInsets = NSDirectionalEdgeInsets(top: 0, leading: 0, bottom: Constants.Size.ContentSpaceMin, trailing: 0)
+ if sectionType == .parameters {
+ section.interGroupSpacing = 20
+ }
+
+
+ if sectionType != .desc {
+ //header布局
+ let headerItem = NSCollectionLayoutBoundarySupplementaryItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .absolute(44)),
+ elementKind: UICollectionView.elementKindSectionHeader,
+ alignment: .top)
+ headerItem.pinToVisibleBounds = true
+ section.boundarySupplementaryItems = [headerItem]
+ }
+
+ return section
+ }
+ return layout
+ }
+
+ private func updateConfirmButton(enable: Bool) {
+ if #available(iOS 26.0, *) {
+ if enable {
+ saveButton.label.font = Constants.Font.caption(size: .l, weight: .semibold)
+ saveButton.label.textColor = Constants.Color.LabelPrimary
+ saveButton.isUserInteractionEnabled = true
+ } else {
+ saveButton.label.font = Constants.Font.caption(size: .l, weight: .regular)
+ saveButton.label.textColor = Constants.Color.LabelTertiary
+ saveButton.isUserInteractionEnabled = false
+ }
+ } else {
+ if enable {
+ saveButton.backgroundColor = Constants.Color.Main
+ saveButton.label.textColor = Constants.Color.LabelPrimary.forceStyle(.dark)
+ saveButton.isUserInteractionEnabled = true
+ } else {
+ saveButton.backgroundColor = Constants.Color.BackgroundPrimary
+ saveButton.label.textColor = Constants.Color.LabelTertiary
+ saveButton.isUserInteractionEnabled = false
+ }
+ }
+ }
+
+ private func validateChange() {
+ let isChange = originShader != editShader
+ updateConfirmButton(enable: isChange)
+ }
+}
+
+extension ShaderInfoView: UICollectionViewDataSource {
+ func numberOfSections(in collectionView: UICollectionView) -> Int {
+ return editShader.parameters.count > 0 ? 4 : 3
+ }
+
+ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ if section == SectionIndex.parameters.rawValue {
+ return editShader.parameters.count
+ }
+ return 1
+ }
+
+ func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+ if indexPath.section == SectionIndex.desc.rawValue {
+ let cell = collectionView.dequeueReusableCell(withClass: NoInsetDescriptionCollectionViewCell.self, for: indexPath)
+ cell.descLabel.text = R.string.localizable.shaderEditAlert()
+ return cell
+ } else if indexPath.section == SectionIndex.shaderName.rawValue {
+ let cell = collectionView.dequeueReusableCell(withClass: ShaderInfoInputCell.self, for: indexPath)
+ cell.editTextField.text = editShader.title
+ cell.shouldGoNext = { [weak self] in
+ guard let self = self else { return }
+ self.collectionView.endEditing(true)
+ self.validateChange()
+ }
+ cell.editTextField.onChange { [weak self, weak cell] string in
+ guard let self, let cell else { return }
+ if string.count > 255 {
+ cell.editTextField.text = String(string[...255])
+ return
+ }
+ self.editShader.title = string
+ }
+ return cell
+ } else if indexPath.section == SectionIndex.appendShaders.rawValue {
+ let cell = collectionView.dequeueReusableCell(withClass: ShaderInfoAppendCell.self, for: indexPath)
+ cell.chevronButton.titleLabel.text = "\(editShader.appendedShaders.count)"
+ return cell
+ } else {
+ let cell = collectionView.dequeueReusableCell(withClass: ShaderInfoParameterCell.self, for: indexPath)
+ let param = editShader.parameters[indexPath.row]
+ cell.titleLabel.text = param.desc
+ cell.chevronButton.titleLabel.text = "\(param.current.roundedString(scale: 4, minFraction: 1, maxFraction: 4))"
+ return cell
+ }
+
+ }
+
+ func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
+ let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withClass: BackgroundColorHaderReusableView.self, for: indexPath)
+ if let sectionIndex = SectionIndex(rawValue: indexPath.section) {
+ let matt = NSMutableAttributedString(string: sectionIndex.title, attributes: [.font: Constants.Font.body(size: .s, weight: .semibold), .foregroundColor: Constants.Color.LabelSecondary])
+ header.titleLabel.attributedText = matt
+ }
+ return header
+ }
+}
+
+extension ShaderInfoView: UICollectionViewDelegate {
+ func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+ if indexPath.section == SectionIndex.appendShaders.rawValue {
+ ShaderOrderView.show(shader: editShader, didChangeShader: { [weak self] modifiedShader in
+ guard let self, let modifiedShader else { return }
+ UIView.makeLoading()
+ DispatchQueue.main.asyncAfter(delay: 0.35, execute: {
+ self.editShader = modifiedShader
+ self.editShader.updateAppendedShadersForEngine()
+ let changingParameters = self.editShader.getChangingParameters(with: self.originShader)
+ for parameter in changingParameters {
+ self.editShader.updateParameters(identifier: parameter.identifier, value: parameter.value)
+ }
+ self.editShader.fulfillParameters()
+ self.collectionView.reloadData()
+ self.validateChange()
+ UIView.hideLoading()
+ })
+ })
+ } else if indexPath.section == SectionIndex.parameters.rawValue {
+ let param = editShader.parameters[indexPath.row]
+
+ let values = Array(stride(from: Double(param.minimum), through: Double(param.maximum), by: Double(param.step)))
+ TriggerProTimePickerView.show(title: param.desc,
+ values: values,
+ defaultValue: Double(param.current),
+ unitString: "",
+ scale: 4,
+ minFraction: 1,
+ maxFraction: 4,
+ didSelectValue: { [weak self] value, string in
+ guard let self else { return }
+ self.editShader.parameters[indexPath.row].current = Float(value)
+ self.editShader.updateParameters(identifier: self.editShader.parameters[indexPath.row].identifier, value: Float(value))
+ if let cell = self.collectionView.cellForItem(at: indexPath) as? ShaderInfoParameterCell {
+ cell.chevronButton.titleLabel.text = string
+ }
+ self.validateChange()
+ })
+ }
+ }
+
+ func scrollViewDidScroll(_ scrollView: UIScrollView) {
+ if let cell = collectionView.cellForItem(at: IndexPath(row: 0, section: SectionIndex.shaderName.rawValue)) as? ShaderInfoInputCell, cell.editTextField.isFirstResponder {
+ cell.editTextField.resignFirstResponder()
+ }
+ }
+}
+
+extension ShaderInfoView {
+ static func show(shader: Shader, hideCompletion: (()->Void)? = nil, didSavedShader:(()->Void)? = nil) {
+ Sheet { sheet in
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
+
+ let view = UIView()
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ containerView.backgroundColor = Constants.Color.Background
+ view.addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ if let maxHeight = sheet.config.cardMaxHeight {
+ make.height.equalTo(maxHeight)
+ }
+ }
+ view.addPanGesture { [weak view, weak sheet] gesture in
+ guard let view = view, let sheet = sheet else { return }
+ let point = gesture.translation(in: gesture.view)
+ view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+ if gesture.state == .recognized {
+ let v = gesture.velocity(in: gesture.view)
+ if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+ // 达到移除的速度
+ sheet.pop()
+ }
+ UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+ view.transform = .identity
+ })
+ }
+ }
+
+ let listView = ShaderInfoView(shader: shader)
+ listView.didTapClose = { [weak sheet] saveSuccess in
+ if saveSuccess {
+ didSavedShader?()
+ }
+ sheet?.pop()
+ }
+ containerView.addSubview(listView)
+ listView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ sheet.set(customView: view).snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderOrderCell.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderOrderCell.swift
new file mode 100644
index 00000000..7d204d96
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderOrderCell.swift
@@ -0,0 +1,51 @@
+//
+// ShaderOrderCell.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/14.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import SwipeCellKit
+
+class ShaderOrderCell: SwipeCollectionViewCell {
+ private var titleLabel: UILabel = {
+ let label = UILabel()
+ label.font = Constants.Font.body(size: .l)
+ label.textColor = Constants.Color.LabelPrimary
+ return label
+ }()
+
+ private let icon = SymbolButton(image: .init(symbol: .line3Horizontal, font: Constants.Font.title(size: .s), color: Constants.Color.BackgroundSecondary))
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+
+ layerCornerRadius = Constants.Size.CornerRadiusMid
+
+ backgroundColor = Constants.Color.BackgroundPrimary
+
+ contentView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalToSuperview()
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ }
+
+ icon.backgroundColor = .clear
+ contentView.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ make.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ func setData(platform: String, hideIcon: Bool = false) {
+ titleLabel.text = platform
+ icon.isHidden = hideIcon
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderOrderView.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderOrderView.swift
new file mode 100644
index 00000000..6d72f6cb
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShaderOrderView.swift
@@ -0,0 +1,371 @@
+//
+// ShaderOrderView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/14.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import SwipeCellKit
+import ProHUD
+
+class ShaderOrderView: BaseView {
+
+ class DescHaderReusableView: UICollectionReusableView {
+ private let iconImage: IconView = {
+ let view = IconView()
+ view.image = UIImage(symbol: .infoCircleFill, size: 14, color: Constants.Color.LabelSecondary)
+ return view
+ }()
+
+ var titleLabel: UILabel = {
+ let view = UILabel()
+ view.textColor = Constants.Color.LabelSecondary
+ view.font = Constants.Font.caption(size: .l)
+ view.text = R.string.localizable.shaderOrderDesc()
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ addSubviews([iconImage, titleLabel])
+ makeBlur(blurColor: Constants.Color.Background)
+
+ iconImage.snp.makeConstraints { make in
+ make.centerY.equalToSuperview()
+ make.leading.equalTo(Constants.Size.ContentSpaceHuge)
+ }
+
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalToSuperview()
+ make.leading.equalTo(iconImage.snp.trailing).offset(Constants.Size.ContentSpaceUltraTiny)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+ }
+
+ private var topBlurView: UIView = {
+ let view = UIView()
+ view.makeBlur()
+ return view
+ }()
+
+ private lazy var collectionView: UICollectionView = {
+ let view = UICollectionView(frame: .zero, collectionViewLayout: createLayout())
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.register(cellWithClass: ShaderOrderCell.self)
+ view.register(supplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withClass: DescHaderReusableView.self)
+ view.showsVerticalScrollIndicator = false
+ view.dataSource = self
+ view.delegate = self
+ view.dragInteractionEnabled = true
+ view.dragDelegate = self
+ view.dropDelegate = self
+ view.contentInset = UIEdgeInsets(top: 60, left: 0, bottom: Constants.Size.ContentInsetBottom + Constants.Size.ItemHeightMid + Constants.Size.ContentSpaceMid, right: 0)
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ if self.isShaderModified {
+ self.shader.appendedShaders.removeAll(where: { $0.isBase })
+ self.didTapClose?(self.shader)
+ } else {
+ self.didTapClose?(nil)
+ }
+
+ }
+ return view
+ }()
+
+ private lazy var appendButton: SymbolButton = {
+ let view = SymbolButton(image: nil, title: R.string.localizable.appendShadersTitle(), titleFont: Constants.Font.body(size: .l, weight: .medium), titleColor: Constants.Color.LabelPrimary.forceStyle(.dark), horizontalContian: true, titlePosition: .right)
+ view.enableRoundCorner = true
+ view.backgroundColor = Constants.Color.Red
+ view.addTapGesture { [weak self] gesture in
+ guard let self else { return }
+ let isGlsl = self.shader.relativePath.pathExtension.lowercased() == "glslp"
+ ShadersListView.show(initType: .preview, isGlsl: isGlsl, didSelectShader: { [weak self] shader in
+ guard let self else { return }
+ self.shader.appendedShaders.append(shader)
+ self.isShaderModified = true
+ self.collectionView.reloadData()
+ })
+ }
+ return view
+ }()
+
+ private var shader: Shader
+ private var isShaderModified: Bool = false
+
+ ///点击关闭按钮回调
+ var didTapClose: ((Shader?)->Void)? = nil
+
+ private lazy var deleteImage = UIImage(symbol: .trash, color: Constants.Color.LabelPrimary.forceStyle(.dark), backgroundColor: Constants.Color.Red, imageSize: .init(Constants.Size.ItemHeightMin)).withRoundedCorners()
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ }
+
+ init(shader: Shader) {
+ self.shader = shader
+ self.shader.appendedShaders.insert(shader, at: shader.indexInAppendage)
+ super.init(frame: .zero)
+ Log.debug("\(String(describing: Self.self)) init")
+ backgroundColor = Constants.Color.Background
+
+ addSubview(collectionView)
+ collectionView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ addSubview(topBlurView)
+ topBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ addSubview(appendButton)
+ appendButton.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentInsetBottom)
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ let icon = UIImageView(image: UIImage(symbol: .sparklesRectangleStackFill))
+ topBlurView.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ }
+ let headerTitleLabel = UILabel()
+ headerTitleLabel.text = R.string.localizable.shadersOrder()
+ headerTitleLabel.textColor = Constants.Color.LabelPrimary
+ headerTitleLabel.font = Constants.Font.title(size: .s)
+ topBlurView.addSubview(headerTitleLabel)
+ headerTitleLabel.snp.makeConstraints { make in
+ make.leading.equalTo(icon.snp.trailing).offset(Constants.Size.ContentSpaceUltraTiny)
+ make.centerY.equalTo(icon)
+ }
+
+ topBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ private func createLayout() -> UICollectionViewLayout {
+ let layout = UICollectionViewCompositionalLayout { sectionIndex, env in
+ //item布局
+ let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .fractionalHeight(1)))
+
+ //group布局
+ let group = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(50)), subitems: [item])
+ group.contentInsets = NSDirectionalEdgeInsets(top: 0,
+ leading: Constants.Size.ContentSpaceMid,
+ bottom: 0,
+ trailing: Constants.Size.ContentSpaceMid)
+
+ //section布局
+ let section = NSCollectionLayoutSection(group: group)
+ section.interGroupSpacing = Constants.Size.ContentSpaceMax
+ section.contentInsets = NSDirectionalEdgeInsets(top: Constants.Size.ContentSpaceMin, leading: 0, bottom: 0, trailing: 0)
+
+ let headerItem = NSCollectionLayoutBoundarySupplementaryItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
+ heightDimension: .absolute(20)),
+ elementKind: UICollectionView.elementKindSectionHeader,
+ alignment: .top)
+ section.boundarySupplementaryItems = [headerItem]
+
+ return section
+ }
+ return layout
+ }
+}
+
+extension ShaderOrderView: UICollectionViewDataSource {
+
+ func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+ return shader.appendedShaders.count
+ }
+
+ func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+ let shader = shader.appendedShaders[indexPath.row]
+ let cell = collectionView.dequeueReusableCell(withClass: ShaderOrderCell.self, for: indexPath)
+ cell.delegate = self
+ cell.setData(platform: shader.title + (shader.isBase ? " (\(R.string.localizable.base()))" : ""))
+ return cell
+ }
+
+ func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
+ let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withClass: DescHaderReusableView.self, for: indexPath)
+ return header
+ }
+}
+
+extension ShaderOrderView: UICollectionViewDelegate {
+
+}
+
+extension ShaderOrderView: UICollectionViewDragDelegate, UICollectionViewDropDelegate {
+ func collectionView(_ collectionView: UICollectionView, itemsForBeginning session: any UIDragSession, at indexPath: IndexPath) -> [UIDragItem] {
+ let shader = shader.appendedShaders[indexPath.row]
+ let itemProvider = NSItemProvider(object: shader.relativePath as NSString)
+ let dragItem = UIDragItem(itemProvider: itemProvider)
+ dragItem.localObject = shader
+ return [dragItem]
+ }
+
+ func collectionView(_ collectionView: UICollectionView,
+ performDropWith coordinator: UICollectionViewDropCoordinator) {
+ guard let destinationIndexPath = coordinator.destinationIndexPath else { return }
+
+ coordinator.items.forEach { dropItem in
+ guard let sourceIndexPath = dropItem.sourceIndexPath else { return }
+
+ collectionView.performBatchUpdates({ [weak self] in
+ guard let self else { return }
+ let lipShader = self.shader.appendedShaders[sourceIndexPath.item]
+ self.shader.appendedShaders.remove(at: sourceIndexPath.item)
+ self.shader.appendedShaders.insert(lipShader, at: destinationIndexPath.item)
+ collectionView.deleteItems(at: [sourceIndexPath])
+ collectionView.insertItems(at: [destinationIndexPath])
+ }) { [weak self] isSuccess in
+ guard let self else { return }
+ if let indexInAppendage = self.shader.appendedShaders.firstIndex(where: { $0.isBase }) {
+ self.shader.indexInAppendage = indexInAppendage
+ self.isShaderModified = true
+ }
+ }
+
+ coordinator.drop(dropItem.dragItem, toItemAt: destinationIndexPath)
+ }
+ }
+
+ func collectionView(_ collectionView: UICollectionView,
+ canHandle session: UIDropSession) -> Bool {
+ return session.localDragSession != nil
+ }
+
+ func collectionView(_ collectionView: UICollectionView,
+ dropSessionDidUpdate session: UIDropSession,
+ withDestinationIndexPath destinationIndexPath: IndexPath?) -> UICollectionViewDropProposal {
+ return UICollectionViewDropProposal(operation: .move, intent: .insertAtDestinationIndexPath)
+ }
+}
+
+extension ShaderOrderView: SwipeCollectionViewCellDelegate {
+ func collectionView(_ collectionView: UICollectionView, editActionsForItemAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> [SwipeAction]? {
+ let shader = shader.appendedShaders[indexPath.row]
+ if shader.isBase {
+ return nil
+ }
+ UIDevice.generateHaptic()
+ if orientation == .right {
+ let delete = SwipeAction(style: .default, title: nil) { [weak self] action, indexPath in
+ guard let self else { return }
+ UIDevice.generateHaptic()
+ action.fulfill(with: .reset)
+ self.shader.appendedShaders.remove(at: indexPath.row)
+ if let indexInAppendage = self.shader.appendedShaders.firstIndex(where: { $0.isBase }) {
+ self.shader.indexInAppendage = indexInAppendage
+ }
+ self.collectionView.reloadData()
+ self.isShaderModified = true
+ }
+ delete.backgroundColor = .clear
+ delete.image = deleteImage
+ return [delete]
+ } else {
+ return nil
+ }
+ }
+
+ func collectionView(_ collectionView: UICollectionView, editActionsOptionsForItemAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> SwipeOptions {
+ var options = SwipeOptions()
+ options.expansionStyle = SwipeExpansionStyle(target: .percentage(1),
+ elasticOverscroll: true,
+ completionAnimation: .fill(.manual(timing: .with)))
+ options.expansionDelegate = self
+ options.transitionStyle = .border
+ options.backgroundColor = Constants.Color.Background
+ options.maximumButtonWidth = Constants.Size.ItemHeightMin + Constants.Size.ContentSpaceTiny*2
+ return options
+ }
+}
+
+extension ShaderOrderView: SwipeExpanding {
+ func animationTimingParameters(buttons: [UIButton], expanding: Bool) -> SwipeCellKit.SwipeExpansionAnimationTimingParameters {
+ ScaleAndAlphaExpansion.default.animationTimingParameters(buttons: buttons, expanding: expanding)
+ }
+
+ func actionButton(_ button: UIButton, didChange expanding: Bool, otherActionButtons: [UIButton]) {
+ ScaleAndAlphaExpansion.default.actionButton(button, didChange: expanding, otherActionButtons: otherActionButtons)
+ if expanding {
+ UIDevice.generateHaptic()
+ }
+ }
+}
+
+extension ShaderOrderView {
+ static func show(shader: Shader, hideCompletion: (()->Void)? = nil, didChangeShader: ((Shader?)->Void)? = nil) {
+ Sheet { sheet in
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
+
+ let view = UIView()
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ containerView.backgroundColor = Constants.Color.Background
+ view.addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ if let maxHeight = sheet.config.cardMaxHeight {
+ make.height.equalTo(maxHeight)
+ }
+ }
+ view.addPanGesture { [weak view, weak sheet] gesture in
+ guard let view = view, let sheet = sheet else { return }
+ let point = gesture.translation(in: gesture.view)
+ view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+ if gesture.state == .recognized {
+ let v = gesture.velocity(in: gesture.view)
+ if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+ // 达到移除的速度
+ sheet.pop()
+ }
+ UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+ view.transform = .identity
+ })
+ }
+ }
+
+ let listView = ShaderOrderView(shader: shader)
+ listView.didTapClose = { [weak sheet] shader in
+ didChangeShader?(shader)
+ sheet?.pop()
+ }
+ containerView.addSubview(listView)
+ listView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ sheet.set(customView: view).snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListBlankSlateView.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListBlankSlateView.swift
new file mode 100644
index 00000000..1923e339
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListBlankSlateView.swift
@@ -0,0 +1,76 @@
+//
+// ShadersListBlankSlateView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/13.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+class ShadersListBlankSlateView: BaseView {
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ }
+
+ let detailLabel: UILabel = {
+ let titleLabel = UILabel()
+ titleLabel.textColor = Constants.Color.LabelSecondary
+ titleLabel.font = Constants.Font.body(size: .l)
+ return titleLabel
+ }()
+
+ let button: SymbolButton = {
+ let view = SymbolButton(image: nil, title: "", titleFont: Constants.Font.body(size: .l, weight: .medium), titleColor: Constants.Color.LabelPrimary.forceStyle(.dark), edgeInsets: UIEdgeInsets(top: 0, left: Constants.Size.ContentSpaceHuge, bottom: 0, right: Constants.Size.ContentSpaceHuge), horizontalContian: true, titlePosition: .right)
+ view.enableRoundCorner = true
+ view.backgroundColor = Constants.Color.Red
+ return view
+ }()
+
+ override init(frame: CGRect) {
+ super.init(frame: frame)
+ Log.debug("\(String(describing: Self.self)) init")
+ let containerView = UIView()
+ addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.center.equalToSuperview()
+ make.width.equalToSuperview()
+ }
+
+ let iconImageView = UIImageView(image: R.image.empty_icon())
+ iconImageView.contentMode = .center
+ containerView.addSubview(iconImageView)
+ iconImageView.snp.makeConstraints { make in
+ make.top.equalToSuperview().inset(-66)
+ make.centerX.equalToSuperview()
+ make.size.equalTo(100)
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ titleLabel.font = Constants.Font.title(size: .s, weight: .semibold)
+ titleLabel.text = R.string.localizable.noShaders()
+ containerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerX.equalToSuperview()
+ make.top.equalTo(iconImageView.snp.bottom).offset(Constants.Size.ContentSpaceHuge)
+ }
+
+ containerView.addSubview(detailLabel)
+ detailLabel.snp.makeConstraints { make in
+ make.centerX.equalToSuperview()
+ make.top.equalTo(titleLabel.snp.bottom).offset(Constants.Size.ContentSpaceTiny)
+ }
+
+ containerView.addSubview(button)
+ button.snp.makeConstraints { make in
+ make.height.equalTo(42)
+ make.top.equalTo(detailLabel.snp.bottom).offset(28)
+ make.centerX.equalToSuperview()
+ make.bottom.equalToSuperview()
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListCell.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListCell.swift
new file mode 100644
index 00000000..ad3b6b97
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListCell.swift
@@ -0,0 +1,114 @@
+//
+// ShadersListCell.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/13.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import SwipeCellKit
+
+class ShadersListCell: SwipeTableViewCell {
+ private var titleLabel: UILabel = {
+ let view = UILabel()
+ view.font = Constants.Font.body(size: .l)
+ view.textColor = Constants.Color.LabelPrimary
+ return view
+ }()
+
+ var chevronIconView: UIImageView = {
+ let view = UIImageView()
+ view.image = UIImage(symbol: .chevronRight, font: Constants.Font.caption(size: .l, weight: .bold), color: Constants.Color.BackgroundSecondary)
+ if Locale.isRTLLanguage {
+ view.transform = CGAffineTransform(scaleX: -1, y: 1)
+ }
+ view.isHidden = true
+ return view
+ }()
+
+ private var selectImageView: UIImageView = {
+ let view = UIImageView()
+ view.contentMode = .center
+ view.layerCornerRadius = Constants.Size.CornerRadiusMin
+ view.layer.shadowColor = Constants.Color.Shadow.cgColor
+ view.layer.shadowOpacity = 0.5
+ view.layer.shadowRadius = 2
+ view.image = UIImage(symbol: .checkmarkCircleFill, weight: .bold, colors: [Constants.Color.LabelPrimary.forceStyle(.dark), Constants.Color.Main])
+ view.isHidden = true
+ return view
+ }()
+
+ private var mainColorChangeNotification: Any? = nil
+
+ deinit {
+ if let mainColorChangeNotification = mainColorChangeNotification {
+ NotificationCenter.default.removeObserver(mainColorChangeNotification)
+ }
+ }
+
+ override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
+ super.init(style: style, reuseIdentifier: reuseIdentifier)
+ backgroundColor = .clear
+ selectionStyle = .none
+ enableInteractive = true
+ delayInteractiveTouchEnd = true
+
+ let containerView = UIView()
+ contentView.addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.top.bottom.equalToSuperview().inset(10)
+ }
+ containerView.layerCornerRadius = Constants.Size.CornerRadiusMid
+ containerView.backgroundColor = Constants.Color.BackgroundPrimary
+
+ containerView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.centerY.equalToSuperview()
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMid)
+ }
+
+ containerView.addSubview(chevronIconView)
+ chevronIconView.snp.makeConstraints { make in
+ make.centerY.equalTo(titleLabel)
+ make.leading.greaterThanOrEqualTo(titleLabel.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMid)
+ make.size.equalTo(CGSize(width: 10, height: 14))
+ }
+
+ containerView.addSubview(selectImageView)
+ selectImageView.snp.makeConstraints { make in
+ make.centerY.equalTo(titleLabel)
+ make.leading.greaterThanOrEqualTo(titleLabel.snp.trailing).offset(Constants.Size.ContentSpaceMin)
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMid)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
+ super.traitCollectionDidChange(previousTraitCollection)
+ if traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) {
+ selectImageView.layer.shadowColor = Constants.Color.Shadow.cgColor
+ }
+ }
+
+ func setData(shader: Shader?, initType: ShadersListView.InitType) {
+ titleLabel.text = shader?.title
+ switch initType {
+ case .normal:
+ chevronIconView.isHidden = false
+ selectImageView.isHidden = true
+ case .gamePlay:
+ chevronIconView.isHidden = true
+ selectImageView.isHidden = !(shader?.isSelected ?? false)
+ case .preview:
+ chevronIconView.isHidden = true
+ selectImageView.isHidden = true
+ }
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListView.swift b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListView.swift
new file mode 100644
index 00000000..99ce5390
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Business/Shaders/Views/ShadersListView.swift
@@ -0,0 +1,777 @@
+//
+// ShadersListView.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/11.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import SwipeCellKit
+import RealmSwift
+import ManicEmuCore
+import ProHUD
+import BetterSegmentedControl
+
+typealias ShadersListData = [ShadersListView.ShaderSource: [(sectionTitle: String, shaders: [Shader])]]
+
+class ShadersListView: BaseView {
+ enum ShaderSource: Int, CaseIterable {
+ case `default`, retroarch, imported, custom
+
+ var title: String {
+ switch self {
+ case .default:
+ R.string.localizable.default()
+ case .retroarch:
+ "RetroArch"
+ case .imported:
+ R.string.localizable.tabbarTitleImport()
+ case .custom:
+ R.string.localizable.custom()
+ }
+ }
+
+ var searchUrl: URL {
+ switch self {
+ case .default:
+ URL(fileURLWithPath: Constants.Path.ShaderDefault)
+ case .retroarch:
+ URL(fileURLWithPath: Constants.Path.ShaderRetroArch)
+ case .imported:
+ URL(fileURLWithPath: Constants.Path.ShaderImported)
+ case .custom:
+ URL(fileURLWithPath: Constants.Path.Shaders)
+ }
+ }
+
+ }
+
+ enum InitType {
+ case normal, gamePlay, preview
+ }
+
+ private var currentSource: ShaderSource {
+ return ShaderSource(rawValue: self.segmentView.index) ?? .default
+ }
+
+ private var initType: InitType
+ private var isGlsl: Bool
+ private var selectedShader: Shader? = nil
+
+ private var didSelectIndexSearch: Bool = false
+
+ /// 充当导航条
+ private var navigationBlurView: UIView = {
+ let view = UIView()
+ return view
+ }()
+
+ private lazy var closeButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .xmark, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ self.didTapClose?()
+ }
+ return view
+ }()
+
+ private var downloadManageButton: DownloadButton = {
+ let view = DownloadButton()
+ view.addTapGesture { gesture in
+ topViewController()?.present(DownloadViewController(), animated: true)
+ }
+ view.isHidden = true
+ return view
+ }()
+
+ private lazy var downloadRetroArchShadersButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .arrowClockwise, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ UIView.makeAlert(detail: R.string.localizable.downloadRetroArchShaders(), confirmTitle: R.string.localizable.cloudDriveBrowserDownload(), confirmAction: {
+ DownloadManager.shared.downloads(urls: [Constants.URLs.SlangShaders, Constants.URLs.GLSLShaders],
+ fileNames: [Constants.Strings.SlangShader, Constants.Strings.GLSLShader])
+ })
+ }
+ view.isHidden = true
+ return view
+ }()
+
+ private lazy var importButton: SymbolButton = {
+ let view = SymbolButton(image: UIImage(symbol: .folderBadgePlus, font: Constants.Font.body(weight: .bold)), enableGlass: true)
+ view.enableRoundCorner = true
+ view.addTapGesture { [weak self] gesture in
+ guard let self = self else { return }
+ UIView.makeAlert(detail: R.string.localizable.importShader(), cancelTitle: R.string.localizable.confirmTitle())
+ }
+ view.isHidden = true
+ return view
+ }()
+
+ private lazy var segmentView: BetterSegmentedControl = {
+ let segments = LabelSegment.segments(withTitles: ShaderSource.allCases.map({ $0.title }),
+ normalFont: Constants.Font.body(),
+ normalTextColor: Constants.Color.LabelSecondary,
+ selectedTextColor: Constants.Color.LabelPrimary)
+ let options: [BetterSegmentedControl.Option] = [
+ .backgroundColor(Constants.Color.SegmentBackground),
+ .indicatorViewInset(5),
+ .indicatorViewBackgroundColor(Constants.Color.SegmentHighlight),
+ .cornerRadius(16)
+ ]
+ let view = BetterSegmentedControl(frame: .zero,
+ segments: segments,
+ options: options)
+
+ view.on(.valueChanged) { [weak self] sender, forEvent in
+ guard let self, let index = (sender as? BetterSegmentedControl)?.index else { return }
+ UIDevice.generateHaptic()
+ let shaderSource = self.currentSource
+ switch shaderSource {
+ case .default:
+ self.updateBlankSlateView(shaderSource: shaderSource)
+ self.downloadRetroArchShadersButton.isHidden = true
+ self.downloadManageButton.isHidden = true
+ self.importButton.isHidden = true
+ case .retroarch:
+ self.updateBlankSlateView(shaderSource: shaderSource)
+ self.downloadRetroArchShadersButton.isHidden = false
+ self.downloadManageButton.isHidden = false
+ self.importButton.isHidden = true
+ case .imported:
+ self.updateBlankSlateView(shaderSource: shaderSource)
+ self.updateBlankSlateView(shaderSource: shaderSource)
+ self.downloadRetroArchShadersButton.isHidden = true
+ self.downloadManageButton.isHidden = true
+ self.importButton.isHidden = false
+ case .custom:
+ self.updateBlankSlateView(shaderSource: shaderSource)
+ self.updateBlankSlateView(shaderSource: shaderSource)
+ self.downloadRetroArchShadersButton.isHidden = true
+ self.downloadManageButton.isHidden = true
+ self.importButton.isHidden = true
+ }
+ self.tableView.reloadData()
+ self.reloadIndexView()
+ }
+ return view
+ }()
+
+ private lazy var blankSlateView: ShadersListBlankSlateView = {
+ let view = ShadersListBlankSlateView()
+ view.button.addTapGesture { [weak self] gesture in
+ guard let self else { return }
+ switch self.currentSource {
+ case .default:
+ break
+ case .retroarch:
+ UIView.makeAlert(detail: R.string.localizable.downloadRetroArchShaders(), confirmTitle: R.string.localizable.cloudDriveBrowserDownload(), confirmAction: {
+ DownloadManager.shared.downloads(urls: [Constants.URLs.SlangShaders, Constants.URLs.GLSLShaders],
+ fileNames: [Constants.Strings.SlangShader, Constants.Strings.GLSLShader])
+ })
+ case .imported:
+ UIView.makeAlert(detail: R.string.localizable.importShader(), cancelTitle: R.string.localizable.confirmTitle())
+ case .custom:
+ break
+ }
+ }
+ view.button.isHidden = true
+ return view
+ }()
+
+ private lazy var deleteImage = UIImage(symbol: .trash, color: Constants.Color.LabelPrimary.forceStyle(.dark), backgroundColor: Constants.Color.Red, imageSize: .init(Constants.Size.ItemHeightMin)).withRoundedCorners()
+
+ private lazy var editImage = UIImage(symbol: .squareAndPencil, color: Constants.Color.LabelPrimary.forceStyle(.dark), backgroundColor: Constants.Color.Yellow, imageSize: .init(Constants.Size.ItemHeightMin)).withRoundedCorners()
+
+ private lazy var tableView: UITableView = {
+ let view = BlankSlateTableView(frame: .zero, style: .grouped)
+ view.backgroundColor = .clear
+ view.contentInsetAdjustmentBehavior = .never
+ view.delegate = self
+ view.dataSource = self
+ view.separatorStyle = .none
+ view.showsVerticalScrollIndicator = false
+ view.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: Constants.Size.ContentInsetBottom, right: 0)
+ view.register(cellWithClass: ShadersListCell.self)
+ view.register(headerFooterViewClassWith: TriggerProHeaderView.self)
+ view.blankSlateView = self.blankSlateView
+ view.sectionHeaderTopPadding = 0
+ view.sectionFooterHeight = 0;
+ return view
+ }()
+
+ ///右侧索引栏
+ private lazy var indexView: SectionIndexView = {
+ let view = SectionIndexView()
+ view.isItemIndicatorAlwaysInCenterY = true
+ view.delegate = self
+ view.dataSource = self
+ view.hideSearch = true
+ return view
+ }()
+
+ private var shaders = ShadersListData()
+
+ var didTapClose: (()->Void)? = nil
+
+ var didSelectShader: ((Shader)->Void)? = nil
+
+ private var retroArchShadersDownloadSuccess: Any? = nil
+
+ deinit {
+ Log.debug("\(String(describing: Self.self)) deinit")
+ if let retroArchShadersDownloadSuccess {
+ NotificationCenter.default.removeObserver(retroArchShadersDownloadSuccess)
+ }
+ }
+
+ init(showClose: Bool = true, initType: InitType, isGlsl: Bool = false, usingShaderPath: String? = nil) {
+ self.initType = initType
+ self.isGlsl = isGlsl
+ super.init(frame: .zero)
+ Log.debug("\(String(describing: Self.self)) init")
+
+ if let usingShaderPath {
+ let shader = ShaderManager.genShader(usingShaderPath, isSelected: true)
+ if FileManager.default.fileExists(atPath: shader.filePath) {
+ self.selectedShader = shader
+ }
+ }
+
+ loadShaders()
+
+ addSubview(navigationBlurView)
+ navigationBlurView.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ let segmentViewContainer = UIView()
+ addSubview(segmentViewContainer)
+ segmentViewContainer.snp.makeConstraints { make in
+ make.top.equalTo(navigationBlurView.snp.bottom)
+ make.leading.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ItemHeightMid + 20)
+ }
+ segmentViewContainer.addSubview(segmentView)
+ segmentView.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceMid)
+ make.top.equalTo(navigationBlurView.snp.bottom).offset(10)
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ }
+
+ addSubview(tableView)
+ tableView.snp.makeConstraints { make in
+ make.top.equalTo(segmentViewContainer.snp.bottom)
+ make.leading.trailing.bottom.equalToSuperview()
+ }
+
+ let icon = UIImageView(image: R.image.customAppBackgroundDotted()?.applySymbolConfig(size: 20, color: Constants.Color.LabelPrimary))
+ navigationBlurView.addSubview(icon)
+ icon.snp.makeConstraints { make in
+ make.leading.equalToSuperview().offset(Constants.Size.ContentSpaceMax)
+ make.size.equalTo(Constants.Size.IconSizeMin)
+ make.centerY.equalToSuperview()
+ }
+
+ let titleLabel = UILabel()
+ titleLabel.font = Constants.Font.title(size: .s)
+ titleLabel.textColor = Constants.Color.LabelPrimary
+ titleLabel.text = R.string.localizable.shaders()
+ navigationBlurView.addSubview(titleLabel)
+ titleLabel.snp.makeConstraints { make in
+ make.leading.equalTo(icon.snp.trailing).offset(Constants.Size.ContentSpaceTiny)
+ make.centerY.equalToSuperview()
+ }
+
+ if showClose {
+ navigationBlurView.addSubview(closeButton)
+ closeButton.snp.makeConstraints { make in
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+ }
+
+ navigationBlurView.addSubview(downloadRetroArchShadersButton)
+ downloadRetroArchShadersButton.snp.makeConstraints { make in
+ if showClose {
+ make.trailing.equalTo(closeButton.snp.leading).offset(-Constants.Size.ContentSpaceMid)
+ } else {
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ }
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+
+ navigationBlurView.addSubview(downloadManageButton)
+ downloadManageButton.snp.makeConstraints { make in
+ make.trailing.equalTo(downloadRetroArchShadersButton.snp.leading).offset(-Constants.Size.ContentSpaceMid)
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+
+ navigationBlurView.addSubview(importButton)
+ importButton.snp.makeConstraints { make in
+ if showClose {
+ make.trailing.equalTo(closeButton.snp.leading).offset(-Constants.Size.ContentSpaceMid)
+ } else {
+ make.trailing.equalToSuperview().offset(-Constants.Size.ContentSpaceMax)
+ }
+ make.centerY.equalToSuperview()
+ make.size.equalTo(Constants.Size.ItemHeightUltraTiny)
+ }
+
+ addSubview(indexView)
+ indexView.snp.makeConstraints { make in
+ make.top.bottom.trailing.equalToSuperview()
+ make.width.equalTo(31)
+ }
+ indexView.isHidden = true
+
+ retroArchShadersDownloadSuccess = NotificationCenter.default.addObserver(forName: Constants.NotificationName.RetroArchShadersDownloadSuccess, object: nil, queue: .main) { [weak self] _ in
+ self?.updateShaders(source: .retroarch)
+ }
+ }
+
+ required init?(coder: NSCoder) {
+ fatalError("init(coder:) has not been implemented")
+ }
+
+ private func updateBlankSlateView(shaderSource: ShaderSource) {
+ switch shaderSource {
+ case .default:
+ blankSlateView.button.isHidden = true
+ break
+ case .retroarch:
+ blankSlateView.detailLabel.text = R.string.localizable.downloadRetroArchSahders()
+ blankSlateView.button.imageView.image = UIImage(symbol: .arrowDownToLineCircleFill, font: Constants.Font.title(size: .s, weight: .medium))
+ blankSlateView.button.titleLabel.text = R.string.localizable.cloudDriveBrowserDownload()
+ blankSlateView.button.isHidden = false
+ case .imported:
+ blankSlateView.detailLabel.text = R.string.localizable.importShaders()
+ blankSlateView.button.imageView.image = UIImage(symbol: .folderFillBadgePlus, font: Constants.Font.title(size: .s, weight: .medium))
+ blankSlateView.button.titleLabel.text = R.string.localizable.tabbarTitleImport()
+ blankSlateView.button.isHidden = false
+ case .custom:
+ blankSlateView.detailLabel.text = R.string.localizable.customShaderDesc()
+ blankSlateView.button.isHidden = true
+ }
+ }
+
+ private func loadShaders(showLoading: Bool = true) {
+ if showLoading {
+ UIView.makeLoading()
+ }
+ DispatchQueue.global().async { [weak self] in
+ guard let self else { return }
+ self.shaders = ShaderManager.fetchShaders(isGlsl: self.isGlsl, selectedShader: self.selectedShader, includeOriginal: initType == .gamePlay)
+ DispatchQueue.main.async {
+ if showLoading {
+ UIView.hideLoading()
+ }
+
+ var selectedSource = ShaderSource.default
+ var selectedIndexPath = IndexPath(row: 0, section: 0)
+ outerloop: for source in ShaderSource.allCases {
+ if let sectionShaders = self.shaders[source] {
+ for (section, shaders) in sectionShaders.enumerated() {
+ if let row = shaders.shaders.firstIndex(where: { $0.isSelected }) {
+ //找到了当前选中
+ selectedSource = source
+ selectedIndexPath = IndexPath(row: row, section: section)
+ break outerloop
+ } else {
+ continue
+ }
+ }
+ }
+ }
+
+ if selectedSource != self.currentSource {
+ self.segmentView.setIndex(selectedSource.rawValue)
+ }
+
+ self.tableView.reloadData {
+ if selectedIndexPath.row != 0 {
+ self.tableView.selectRow(at: selectedIndexPath, animated: true, scrollPosition: .middle)
+ }
+ }
+
+ self.reloadIndexView()
+ }
+ }
+ }
+
+ private func updateShaders(source: ShaderSource? = nil) {
+ if let source {
+ let sourceShaders = ShaderManager.fetchShaders(source: source, isGlsl: self.isGlsl, selectedShader: self.selectedShader, includeOriginal: false)
+ shaders[source] = sourceShaders[source]
+ if initType == .gamePlay {
+ //更新全部的选择状态
+ refreshSelection()
+ } else {
+ self.tableView.reloadData()
+ self.reloadIndexView()
+ }
+ } else {
+ loadShaders(showLoading: false)
+ }
+ }
+
+ private func refreshSelection() {
+ var newShaders = ShadersListData()
+ shaders.forEach { source, sections in
+ var newSections = [(sectionTitle: String, shaders: [Shader])]()
+ for tuple in sections {
+ newSections.append((tuple.sectionTitle, tuple.shaders.map({
+ var newShader = $0
+ if let selectedShader {
+ newShader.isSelected = (selectedShader.relativePath == newShader.relativePath)
+ } else {
+ newShader.isSelected = newShader.isOriginal
+ }
+ return newShader
+ })))
+ }
+ newShaders[source] = newSections
+ }
+ shaders = newShaders
+ self.tableView.reloadData()
+ self.reloadIndexView()
+ }
+
+ private func reloadIndexView() {
+ let sectionCount = shaders[currentSource]?.count ?? 0
+ if sectionCount < 2 {
+ indexView.isHidden = true
+ return
+ } else {
+ indexView.isHidden = false
+ }
+ indexView.reloadData()
+ indexView.deselectCurrentItem()
+ indexView.selectItem(at: 0)
+ }
+
+ private func showShaderInfoView(shader: Shader) {
+ var newShader = shader
+ if currentSource == .custom {
+ if let content = try? String(contentsOfFile: newShader.filePath, encoding: .utf8) {
+ if let reference = content.lines().first(where: { $0.contains("#reference") }) {
+ let baseRelativePath = reference.replacingOccurrences(of: "#reference", with: "").trimmed.replacingOccurrences(of: "\"", with: "")
+ newShader.baseRelativePath = baseRelativePath
+ }
+
+ if let forceBaseString = content.lines().first(where: { $0.contains(Constants.Strings.ShaderForceBase) }) {
+ let components = forceBaseString.components(separatedBy: "=")
+ if components.count == 2 {
+ newShader.forceBase = components[1].trimmed.replacingOccurrences(of: "\"", with: "")
+ }
+ }
+ }
+ }
+ ShaderInfoView.show(shader: newShader, didSavedShader: { [weak self] in
+ guard let self else { return }
+ if self.currentSource != .custom {
+ self.segmentView.setIndex(ShaderSource.custom.rawValue)
+ }
+ self.updateShaders(source: .custom)
+ self.didSelectShader?(self.selectedShader ?? ShaderManager.genOriginalShader(isSelected: true))
+ })
+ }
+}
+
+extension ShadersListView: SwipeTableViewCellDelegate {
+ func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> [SwipeAction]? {
+ //initType为normal时只有customSource 或 initType为gamePlay 支持侧滑
+ if initType == .preview {
+ return nil
+ }
+ if initType == .normal, currentSource != .custom {
+ return nil
+ }
+ guard let shader = getShader(at: indexPath) else { return nil }
+ UIDevice.generateHaptic()
+ if orientation == .right {
+ if initType == .normal, currentSource == .custom {
+ //仅支持删除操作
+ let delete = SwipeAction(style: .default, title: nil) { [weak self] action, indexPath in
+ guard let self else { return }
+ UIDevice.generateHaptic()
+ action.fulfill(with: .reset)
+ self.removeShader(shader, indexPath: indexPath)
+ }
+ delete.backgroundColor = .clear
+ delete.image = self.deleteImage
+ return [delete]
+ }else if initType == .gamePlay {
+ //仅支持编辑操作
+ if shader.isOriginal {
+ return nil
+ }
+ let edit = SwipeAction(style: .default, title: nil) { [weak self] action, indexPath in
+ guard let self else { return }
+ UIDevice.generateHaptic()
+ self.showShaderInfoView(shader: shader)
+ }
+ edit.hidesWhenSelected = true
+ edit.backgroundColor = .clear
+ edit.image = editImage
+ return [edit]
+ }
+ }
+ return nil
+ }
+
+ func tableView(_ tableView: UITableView, editActionsOptionsForRowAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> SwipeOptions {
+ var options = SwipeOptions()
+ options.expansionStyle = SwipeExpansionStyle(target: .percentage(0.6),
+ elasticOverscroll: true,
+ completionAnimation: .fill(.manual(timing: .with)))
+ options.expansionDelegate = self
+ options.transitionStyle = .border
+ options.backgroundColor = Constants.Color.Background
+ options.maximumButtonWidth = Constants.Size.ItemHeightMin + Constants.Size.ContentSpaceTiny*2
+ return options
+ }
+}
+
+extension ShadersListView: SwipeExpanding {
+ func animationTimingParameters(buttons: [UIButton], expanding: Bool) -> SwipeCellKit.SwipeExpansionAnimationTimingParameters {
+ ScaleAndAlphaExpansion.default.animationTimingParameters(buttons: buttons, expanding: expanding)
+ }
+
+ func actionButton(_ button: UIButton, didChange expanding: Bool, otherActionButtons: [UIButton]) {
+ ScaleAndAlphaExpansion.default.actionButton(button, didChange: expanding, otherActionButtons: otherActionButtons)
+ if expanding {
+ UIDevice.generateHaptic()
+ }
+ }
+}
+
+extension ShadersListView: UITableViewDataSource, UITableViewDelegate {
+ private func getShaders(at section: Int) -> [Shader] {
+ if let shadersInSource = shaders[currentSource] {
+ return shadersInSource[section].shaders
+ }
+ return []
+ }
+
+ private func getSectionTitle(at section: Int) -> String {
+ if let shadersInSource = shaders[currentSource] {
+ return shadersInSource[section].sectionTitle
+ }
+ return ""
+ }
+
+ private func getShader(at indexPath: IndexPath) -> Shader? {
+ let shaders = getShaders(at: indexPath.section)
+ if shaders.count > indexPath.row {
+ return shaders[indexPath.row]
+ }
+ return nil
+ }
+
+ private func removeShader(_ shader: Shader, indexPath: IndexPath) {
+ try? FileManager.safeRemoveItem(at: URL(fileURLWithPath: shader.filePath))
+ if let shadersInSource = shaders[currentSource] {
+ var datas = shadersInSource[indexPath.section].shaders
+ datas.remove(at: indexPath.row)
+ shaders[currentSource]?[indexPath.section].shaders = datas
+ }
+ tableView.reloadData()
+ }
+
+ func numberOfSections(in tableView: UITableView) -> Int {
+ return shaders[currentSource]?.count ?? 0
+
+ }
+
+ func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
+ return getShaders(at: section).count
+ }
+
+ func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
+ let cell = tableView.dequeueReusableCell(withClass: ShadersListCell.self)
+ cell.setData(shader: getShader(at: indexPath), initType: initType)
+ cell.delegate = self
+ return cell
+ }
+
+ func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
+ return 70
+ }
+
+ func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
+ guard let shader = getShader(at: indexPath) else { return }
+ switch initType {
+ case .normal:
+ //跳转编辑
+ showShaderInfoView(shader: shader)
+ break
+ case .gamePlay:
+ //使用shader
+ var tempShader = shader
+ if tempShader.isOriginal {
+ selectedShader = nil
+ } else {
+ tempShader.isSelected = true
+ selectedShader = tempShader
+ }
+ DispatchQueue.main.asyncAfter(delay: 0.35) {
+ self.refreshSelection()
+ }
+ didSelectShader?(tempShader)
+ break
+ case .preview:
+ didSelectShader?(shader)
+ break
+ }
+ }
+
+ func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
+ let sectionTitle = getSectionTitle(at: section)
+ if sectionTitle.isEmpty {
+ return nil
+ }
+
+ let header = tableView.dequeueReusableHeaderFooterView(withClass: TriggerProHeaderView.self)
+ header.titleLabel.attributedText = NSAttributedString(string: sectionTitle, attributes: [.foregroundColor: Constants.Color.LabelSecondary, .font: Constants.Font.body(size: .s)])
+ return header
+ }
+
+ func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
+ if currentSource == .default || currentSource == .custom {
+ return 0
+ }
+ if section == 0 {
+ return 20
+ }
+ return 40
+ }
+
+ func scrollViewDidScroll(_ scrollView: UIScrollView) {
+ // indexView变更
+ guard !didSelectIndexSearch,
+ !indexView.isTouching,
+ let tableView = scrollView as? UITableView,
+ let indexPaths = tableView.indexPathsForVisibleRows,
+ let firstIndexPath = indexPaths.min() else { return }
+
+ let currentSection = firstIndexPath.section
+ guard let item = self.indexView.item(at: currentSection), item.bounds != .zero else { return }
+ guard !(self.indexView.selectedItem?.isEqual(item) ?? false) else { return }
+ self.indexView.deselectCurrentItem()
+ self.indexView.selectItem(at: currentSection)
+ }
+}
+
+extension ShadersListView {
+ static var isShow: Bool {
+ Sheet.find(identifier: String(describing: ShadersListView.self)).count > 0 ? true : false
+ }
+
+ static func show(game: Game? = nil, initType: InitType? = nil, isGlsl: Bool = false, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil, didSelectShader: ((Shader)->Void)? = nil) {
+ guard game != nil || initType != nil else { return }
+ Sheet.lazyPush(identifier: String(describing: ShadersListView.self) + (isShow ? "\(Int.random(in: 0...10))" : "")) { sheet in
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
+
+ let view = UIView()
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ containerView.backgroundColor = Constants.Color.Background
+ view.addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ if let maxHeight = sheet.config.cardMaxHeight {
+ make.height.equalTo(maxHeight)
+ }
+ }
+ view.addPanGesture { [weak view, weak sheet] gesture in
+ guard let view = view, let sheet = sheet else { return }
+ let point = gesture.translation(in: gesture.view)
+ view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+ if gesture.state == .recognized {
+ let v = gesture.velocity(in: gesture.view)
+ if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+ // 达到移除的速度
+ sheet.pop()
+ }
+ UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+ view.transform = .identity
+ })
+ }
+ }
+
+ var isGlsl = isGlsl
+ if let game, game.gameType == .n64, !game.isN64ParaLLEl {
+ isGlsl = true
+ }
+ let listView = ShadersListView(initType: initType ?? .gamePlay, isGlsl: isGlsl, usingShaderPath: game?.filterName)
+ listView.didTapClose = { [weak sheet] in
+ sheet?.pop()
+ didTapClose?()
+ }
+ listView.didSelectShader = { [weak sheet] shader in
+ if let initType, initType == .preview {
+ sheet?.pop()
+ }
+ didSelectShader?(shader)
+ if let initType, initType == .preview {
+ didTapClose?()
+ }
+ }
+ containerView.addSubview(listView)
+ listView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+
+ sheet.set(customView: view).snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
+ }
+ }
+}
+
+extension ShadersListView: SectionIndexViewDataSource, SectionIndexViewDelegate {
+ func numberOfScetions(in sectionIndexView: SectionIndexView) -> Int {
+ shaders[currentSource]?.count ?? 0
+ }
+
+ func sectionIndexView(_ sectionIndexView: SectionIndexView, itemAt section: Int) -> any SectionIndexViewItem {
+ let item = SectionIndexViewItemView()
+ item.title = getSectionTitle(at: section).firstCharacterAsString?.uppercased() ?? "?"
+ item.titleColor = Constants.Color.LabelTertiary
+ item.titleSelectedColor = Constants.Color.LabelPrimary.forceStyle(.dark)
+ item.selectedColor = Constants.Color.Main
+ item.titleFont = Constants.Font.caption(size: .s, weight: .bold)
+ return item
+ }
+
+ func sectionIndexView(_ sectionIndexView: SectionIndexView, didSelect section: Int) {
+ didSelectIndexSearch = true
+ sectionIndexView.hideCurrentItemIndicator()
+ sectionIndexView.deselectCurrentItem()
+ sectionIndexView.selectItem(at: section)
+ sectionIndexView.showCurrentItemIndicator()
+ sectionIndexView.impact()
+ tableView.panGestureRecognizer.isEnabled = false
+ tableView.scrollToRow(at: IndexPath(row: 0, section: section), at: .top, animated: true)
+ DispatchQueue.main.asyncAfter(delay: 0.5) {
+ self.didSelectIndexSearch = false
+ }
+ }
+
+ func sectionIndexViewToucheEnded(_ sectionIndexView: SectionIndexView) {
+ UIView.animate(withDuration: 0.3) {
+ sectionIndexView.hideCurrentItemIndicator()
+ }
+ tableView.panGestureRecognizer.isEnabled = true
+ }
+
+ func sectionIndexViewDidSelectSearch(_ sectionIndexView: SectionIndexView) {
+ tableView.scrollToTop()
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift
index 8bcc7506..682770cb 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinCollectionViewCell.swift
@@ -64,6 +64,14 @@ class SkinCollectionViewCell: UICollectionViewCell {
return view
}()
+ var playcaseButton: UIImageView = {
+ let view = UIImageView(image: R.image.playcase_footnote())
+ view.enableInteractive = true
+ view.isHidden = true
+ view.isUserInteractionEnabled = true
+ return view
+ }()
+
var previewButton: SymbolButton = {
let view = SymbolButton(image: R.image.customArrowDownLeftAndArrowUpRight()?.applySymbolConfig(),
title: R.string.localizable.skinPreviewTitle(),
@@ -111,6 +119,11 @@ class SkinCollectionViewCell: UICollectionViewCell {
previewButton.snp.makeConstraints { make in
make.center.equalToSuperview()
}
+
+ addSubview(playcaseButton)
+ playcaseButton.snp.makeConstraints { make in
+ make.leading.bottom.equalToSuperview()
+ }
}
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
@@ -148,5 +161,7 @@ class SkinCollectionViewCell: UICollectionViewCell {
} else {
subscriptView.isHidden = true
}
+
+ playcaseButton.isHidden = !controllerSkin.isPlayCase
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift
index 89a7a896..d5483507 100644
--- a/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/Skin/Views/SkinSettingsView.swift
@@ -43,8 +43,8 @@ class SkinSettingsView: BaseView {
} else {
view.addTapGesture { [weak self] gesture in
guard let self = self else { return }
- let allGameTypes = System.allCases.map { $0.gameType }
- let itemTitles = System.allCases.map { $0.gameType.localizedShortName }
+ let allGameTypes = System.allCases.filter({ $0 != .ns }).map { $0.gameType }
+ let itemTitles = System.allCases.filter({ $0 != .ns }).map { $0.gameType.localizedShortName }
var items: [UIAction] = []
let currentGameTypeName = self.gameType.localizedShortName
for (index, title) in itemTitles.enumerated() {
@@ -174,7 +174,14 @@ class SkinSettingsView: BaseView {
private var game: Game? = nil
///游戏类型
private var gameType: GameType = {
- if let shortName = Constants.Config.PlatformOrder?.first, let type = GameType(shortName: shortName) {
+ if let platformOrder = Constants.Config.PlatformOrder, let shortName = platformOrder.first, let type = GameType(shortName: shortName) {
+ if type == .ns {
+ if platformOrder.count > 1, let type = GameType(shortName: platformOrder[1]) {
+ return type
+ } else {
+ return ._3ds
+ }
+ }
return type
}
return System.allCases.first?.gameType ?? .gba
@@ -380,7 +387,7 @@ class SkinSettingsView: BaseView {
return false
}
if reuseSkinGameType.contains([$0.gameType]) {
- if $0.gameType != self.gameType && ($0.skinType == .default || $0.skinType == .buildIn) {
+ if $0.gameType != self.gameType && ($0.skinType == .default || $0.skinType == .buildIn || $0.skinType == .playcase) {
//皮肤的游戏类型与当前选中的游戏类型不一致 则需要排除掉default和manic的皮肤
return false
} else {
@@ -397,12 +404,19 @@ class SkinSettingsView: BaseView {
return true
} else if $1.skinType == .buildIn {
return false
+ } else if $0.skinType == .playcase {
+ return true
+ } else if $1.skinType == .playcase {
+ return false
}
return true
}
for skin in skins {
- if let controllerSkin = ControllerSkin(fileURL: skin.fileURL) {
+ if var controllerSkin = ControllerSkin(fileURL: skin.fileURL) {
+ if skin.skinType == .playcase {
+ controllerSkin.isPlayCase = true
+ }
if controllerSkin.supports(portraitTraits) {
portraitSkins.append(controllerSkin)
}
@@ -505,6 +519,128 @@ class SkinSettingsView: BaseView {
UIView.makeToast(message: R.string.localizable.unsupportSkinsRemoveSuccess())
})
}
+
+ private func showPlayCasePromo(showDontShow: Bool = true, hideCompletion: (()->Void)? = nil) {
+ Sheet { sheet in
+ sheet.contentMaskView.alpha = 0
+ sheet.config.windowEdgeInset = 0
+ sheet.onTappedBackground { sheet in
+ sheet.pop()
+ }
+ sheet.onViewDidDisappear { _ in
+ hideCompletion?()
+ }
+ sheet.config.backgroundViewMask { mask in
+ mask.backgroundColor = .black.withAlphaComponent(0.2)
+ }
+
+ let view = UIView()
+ let grabber = UIImageView(image: R.image.grabber_icon())
+ grabber.isUserInteractionEnabled = true
+ grabber.contentMode = .center
+ view.addPanGesture { [weak view, weak sheet] gesture in
+ guard let view = view, let sheet = sheet else { return }
+ let point = gesture.translation(in: gesture.view)
+ view.transform = .init(translationX: 0, y: point.y <= 0 ? 0 : point.y)
+ if gesture.state == .recognized {
+ let v = gesture.velocity(in: gesture.view)
+ if (view.y > view.height*2/3 && v.y > 0) || v.y > 1200 {
+ sheet.pop()
+ }
+ UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: [.allowUserInteraction, .curveEaseOut], animations: {
+ view.transform = .identity
+ })
+ }
+ }
+ view.addSubview(grabber)
+ grabber.snp.makeConstraints { make in
+ make.leading.top.trailing.equalToSuperview()
+ make.height.equalTo(Constants.Size.ContentSpaceTiny*3)
+ }
+
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape) ? .allCorners : [.topLeft, .topRight])
+ containerView.backgroundColor = .clear
+ containerView.makeBlur()
+ view.addSubview(containerView)
+ containerView.snp.makeConstraints { make in
+ make.top.equalTo(grabber.snp.bottom)
+ make.leading.bottom.trailing.equalToSuperview()
+ }
+
+ let logoView = IconView()
+ logoView.image = R.image.playcase_logo()
+ containerView.addSubview(logoView)
+ logoView.snp.makeConstraints { make in
+ make.centerX.equalToSuperview()
+ make.top.equalToSuperview().offset(30)
+ }
+
+ let detailLabel = UILabel()
+ detailLabel.numberOfLines = 0
+ let style = NSMutableParagraphStyle()
+ style.lineSpacing = Constants.Size.ContentSpaceUltraTiny
+ style.alignment = .left
+ detailLabel.attributedText = NSAttributedString(string: R.string.localizable.playCasePromo(), attributes: [.font: Constants.Font.body(size: .m), .foregroundColor: Constants.Color.LabelPrimary, .paragraphStyle: style])
+ containerView.addSubview(detailLabel)
+ detailLabel.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
+ make.top.equalTo(logoView.snp.bottom).offset(Constants.Size.ContentSpaceMin)
+ }
+
+ let button: SymbolButton = {
+ let view = SymbolButton(image: nil, title: R.string.localizable.learnPlayCase(), titleFont: Constants.Font.body(size: .l, weight: .medium), titleColor: Constants.Color.LabelPrimary.forceStyle(.dark), horizontalContian: true, titlePosition: .right)
+ view.enableRoundCorner = true
+ view.backgroundColor = Constants.Color.Red
+ view.addTapGesture { [weak sheet] gesture in
+ guard let sheet else { return }
+ sheet.pop()
+ UIApplication.shared.open(Constants.URLs.PlayCasePromo)
+ }
+ return view
+ }()
+
+ containerView.addSubview(button)
+ button.snp.makeConstraints { make in
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.ContentSpaceHuge)
+ make.height.equalTo(Constants.Size.ItemHeightMid)
+ make.top.equalTo(detailLabel.snp.bottom).offset(Constants.Size.ItemHeightMin)
+ if !showDontShow {
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentInsetBottom + Constants.Size.ContentSpaceMin)
+ }
+ }
+
+ if showDontShow {
+ let dontshowAgain: UIButton = {
+ let view = UIButton(type: .custom)
+ let att = NSAttributedString(string: R.string.localizable.dontshowAgain(), attributes: [.font: Constants.Font.body(size: .l), .foregroundColor: Constants.Color.LabelSecondary])
+ view.onTap { [weak sheet] in
+ guard let sheet else { return }
+ UserDefaults.standard.set(true, forKey: Constants.DefaultKey.HasShowPlayCasePromo)
+ sheet.pop()
+ }
+ view.setAttributedTitle(att.underlined, for: .normal)
+ return view
+ }()
+
+ containerView.addSubview(dontshowAgain)
+ dontshowAgain.snp.makeConstraints { make in
+ make.centerX.equalTo(button)
+ make.top.equalTo(button.snp.bottom).offset(Constants.Size.ContentSpaceUltraTiny)
+ make.bottom.equalToSuperview().inset(Constants.Size.ContentInsetBottom + Constants.Size.ContentSpaceMin)
+ }
+ }
+
+
+ sheet.set(customView: view).snp.makeConstraints { make in
+ if let bottomInset = PlayViewController.menuInsets?.bottom, bottomInset > 0, PlayViewController.isGaming {
+ make.leading.top.trailing.equalToSuperview()
+ make.bottom.equalToSuperview().inset(bottomInset)
+ } else {
+ make.edges.equalToSuperview()
+ }
+ }
+ }
+ }
}
extension SkinSettingsView: UICollectionViewDataSource {
@@ -525,6 +661,10 @@ extension SkinSettingsView: UICollectionViewDataSource {
cell.previewButton.addTapGesture { gesture in
topViewController()?.present(SkinPreviewViewController(skin: skin, traits: traits), animated: true)
}
+ cell.playcaseButton.addTapGesture { [weak self] gesture in
+ guard let self else { return }
+ self.showPlayCasePromo(showDontShow: false)
+ }
return cell
}
}
@@ -582,6 +722,14 @@ extension SkinSettingsView: UICollectionViewDelegate {
}
}
+#if !SIDE_LOAD
+ let controllerSkin = isPortraitSkinPage ? portraitSkins[indexPath.row] : landscapeSkins[indexPath.row]
+ if !PlayViewController.isGaming,
+ controllerSkin.isPlayCase,
+ !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasShowPlayCasePromo) {
+ self.showPlayCasePromo()
+ }
+#endif
return true
}
@@ -667,12 +815,12 @@ extension SkinSettingsView {
Sheet.find(identifier: String(describing: SkinSettingsView.self)).count > 0 ? true : false
}
- static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ static func show(game: Game, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: SkinSettingsView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerActionCell.swift b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerActionCell.swift
index f5d137a6..66a57f39 100644
--- a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerActionCell.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/AddTriggerActionCell.swift
@@ -127,7 +127,7 @@ class AddTriggerActionCell: UICollectionViewCell {
simpleActionView.repeatSwitchButton.onChange { value in
triggerItem.simpleActionRepeat = value
}
- simpleActionView.intervalValueButton.titleLabel.text = "\(triggerItem.simpleActionRepeatInterval)s"
+ simpleActionView.intervalValueButton.titleLabel.text = "\(triggerItem.simpleActionRepeatInterval.roundedString())s"
simpleActionView.intervalValueButton.addTapGesture { [weak self] gesture in
guard let self else { return }
//0.1-0.9s //1-60s
@@ -136,9 +136,9 @@ class AddTriggerActionCell: UICollectionViewCell {
values: values,
defaultValue: triggerItem.simpleActionRepeatInterval,
unitString: "s",
- didSelectValue: { value in
+ didSelectValue: { value, string in
triggerItem.simpleActionRepeatInterval = value
- self.simpleActionView.intervalValueButton.titleLabel.text = "\(value)s"
+ self.simpleActionView.intervalValueButton.titleLabel.text = string
})
}
@@ -146,7 +146,7 @@ class AddTriggerActionCell: UICollectionViewCell {
holdActionView.autoStopSwitchButton.onChange { value in
triggerItem.holdActionAutoStop = value
}
- holdActionView.durationValueButton.titleLabel.text = "\(triggerItem.holdActionDuration)s"
+ holdActionView.durationValueButton.titleLabel.text = "\(triggerItem.holdActionDuration.roundedString())s"
holdActionView.durationValueButton.addTapGesture { [weak self] gesture in
guard let self else { return }
//0.1-0.9s 1-59s 60-3600s
@@ -155,13 +155,13 @@ class AddTriggerActionCell: UICollectionViewCell {
values: values,
defaultValue: triggerItem.holdActionDuration,
unitString: "s",
- didSelectValue: { value in
+ didSelectValue: { value, string in
triggerItem.holdActionDuration = value
- self.holdActionView.durationValueButton.titleLabel.text = "\(value)s"
+ self.holdActionView.durationValueButton.titleLabel.text = string
})
}
- comboActionView.durationPerKeyValueButton.titleLabel.text = "\(triggerItem.comboActionPressDurationPerKey)ms"
+ comboActionView.durationPerKeyValueButton.titleLabel.text = "\(triggerItem.comboActionPressDurationPerKey.roundedString())ms"
comboActionView.durationPerKeyValueButton.addTapGesture { [weak self] gesture in
guard let self else { return }
//16.7ms 50.0-1000ms
@@ -170,12 +170,12 @@ class AddTriggerActionCell: UICollectionViewCell {
values: values,
defaultValue: triggerItem.comboActionPressDurationPerKey,
unitString: "ms",
- didSelectValue: { value in
+ didSelectValue: { value, string in
triggerItem.comboActionPressDurationPerKey = value
- self.comboActionView.durationPerKeyValueButton.titleLabel.text = "\(value)ms"
+ self.comboActionView.durationPerKeyValueButton.titleLabel.text = string
})
}
- comboActionView.intervalPerKeyValueButton.titleLabel.text = "\(triggerItem.comboActionIntervalPerKey)ms"
+ comboActionView.intervalPerKeyValueButton.titleLabel.text = "\(triggerItem.comboActionIntervalPerKey.roundedString())ms"
comboActionView.intervalPerKeyValueButton.addTapGesture { [weak self] gesture in
guard let self else { return }
//16.7ms 50.0-1000ms
@@ -184,9 +184,9 @@ class AddTriggerActionCell: UICollectionViewCell {
values: values,
defaultValue: triggerItem.comboActionIntervalPerKey,
unitString: "ms",
- didSelectValue: { value in
+ didSelectValue: { value, string in
triggerItem.comboActionIntervalPerKey = value
- self.comboActionView.intervalPerKeyValueButton.titleLabel.text = "\(value)ms"
+ self.comboActionView.intervalPerKeyValueButton.titleLabel.text = string
})
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProActionSettingViews.swift b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProActionSettingViews.swift
index 276f0ba8..89b34617 100644
--- a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProActionSettingViews.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProActionSettingViews.swift
@@ -362,7 +362,14 @@ class TriggerActionComboView: UIView {
class TriggerProTimePickerView: UIView {
- static func show(title: String, values: [Double], defaultValue: Double, unitString: String, didSelectValue: ((Double)->Void)? = nil) {
+ static func show(title: String,
+ values: [Double],
+ defaultValue: Double,
+ unitString: String,
+ scale: Int = 1,
+ minFraction: Int = 1,
+ maxFraction: Int = 1,
+ didSelectValue: ((Double, String)->Void)? = nil) {
Sheet { sheet in
sheet.contentMaskView.alpha = 0
sheet.config.windowEdgeInset = 0
@@ -430,9 +437,16 @@ class TriggerProTimePickerView: UIView {
}
+
+ //数据清洗
+ let decimalValues = values.map({ $0.roundedDecimal(scale: scale) })
+ let values = decimalValues.map({ $0.doubleValue })
+ let componentValues = decimalValues.map({ "\($0.stringValue(minFraction: minFraction, maxFraction: maxFraction))\(unitString)" })
+ let defaultValue = defaultValue.roundedDecimal(scale: scale).doubleValue
+
let selectionView = UIPickerView()
- selectionView.addComponents([values.map({ "\($0.rounded(numberOfDecimalPlaces: 1, rule: .toNearestOrEven))\(unitString)"})]) { element, component, row in
- didSelectValue?(values[row])
+ selectionView.addComponents([componentValues]) { element, component, row in
+ didSelectValue?(values[row], componentValues[row])
}
if let defaultRow = values.firstIndex(of: defaultValue) {
DispatchQueue.main.asyncAfter(delay: 0.35, execute: {
diff --git a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProListView.swift b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProListView.swift
index dbf04658..35503de4 100644
--- a/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProListView.swift
+++ b/ManicEmu/ManicEmu/Sources/Business/TriggerPro/Views/TriggerProListView.swift
@@ -20,7 +20,7 @@ class TriggerProListView: BaseView {
}()
private lazy var addButton: ContextMenuButton = {
- let allGameTypes = System.allCases.map { $0.gameType }
+ let allGameTypes = System.allCases.filter({ $0 != .ns }).map { $0.gameType }
var actions: [UIMenuElement] = []
for gameType in allGameTypes {
actions.append(UIAction(title: gameType.localizedShortName) { [weak self] gesture in
@@ -228,7 +228,7 @@ extension TriggerProListView: UITableViewDataSource, UITableViewDelegate {
if let customPlatformOrder = Constants.Config.PlatformOrder {
predefinedOrder = customPlatformOrder.compactMap { GameType(shortName: $0) }
} else {
- predefinedOrder = System.allCases.map { $0.gameType }
+ predefinedOrder = System.allCases.filter({ $0 != .ns }).map { $0.gameType }
}
let sortedKeys: [GameType] = predefinedOrder.filter { datas.keys.contains($0) }
return sortedKeys
@@ -295,7 +295,7 @@ class TriggerProHeaderView: UITableViewHeaderFooterView {
super.init(reuseIdentifier: reuseIdentifier)
addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.SafeAera.left + Constants.Size.ContentSpaceMid)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.SafeAera.left + Constants.Size.ContentSpaceHuge)
make.bottom.equalToSuperview().offset(-Constants.Size.ContentSpaceUltraTiny)
}
}
@@ -303,7 +303,7 @@ class TriggerProHeaderView: UITableViewHeaderFooterView {
override func layoutSubviews() {
super.layoutSubviews()
titleLabel.snp.updateConstraints { make in
- make.leading.trailing.equalToSuperview().inset(Constants.Size.SafeAera.left + Constants.Size.ContentSpaceMid)
+ make.leading.trailing.equalToSuperview().inset(Constants.Size.SafeAera.left + Constants.Size.ContentSpaceHuge)
}
}
@@ -317,12 +317,12 @@ extension TriggerProListView {
Sheet.find(identifier: String(describing: TriggerProListView.self)).count > 0 ? true : false
}
- static func show(game: Game, gameViewRect: CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
+ static func show(game: Game, hideCompletion: (()->Void)? = nil, didTapClose: (()->Void)? = nil) {
Sheet.lazyPush(identifier: String(describing: TriggerProListView.self)) { sheet in
- sheet.configGamePlayingStyle(gameViewRect: gameViewRect, menuInsets: menuInsets, hideCompletion: hideCompletion)
+ sheet.configGamePlayingStyle(hideCompletion: hideCompletion)
let view = UIView()
- let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
+ let containerView = RoundAndBorderView(roundCorner: (UIDevice.isPad || UIDevice.isLandscape || PlayViewController.menuInsets != nil) ? .allCorners : [.topLeft, .topRight])
containerView.backgroundColor = Constants.Color.Background
view.addSubview(containerView)
containerView.snp.makeConstraints { make in
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/CIFilterExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/CIFilterExtensions.swift
deleted file mode 100644
index 7387510f..00000000
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/CIFilterExtensions.swift
+++ /dev/null
@@ -1,16 +0,0 @@
-//
-// CIFilterExtensions.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/8.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-import CoreImage
-
-extension CIFilter {
- func preview(image: UIImage?) -> UIImage? {
- image?.applyFilter(filter: self)
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift
index 784d5854..dc7509bf 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/GameTypeExtensions.swift
@@ -146,7 +146,9 @@ extension GameType {
self = .dc
} else if shortName.uppercased() == "Arcade".uppercased() {
self = .arcade
- } else {
+ } else if shortName.uppercased() == "NS" {
+ self = .ns
+ } else {
return nil
}
}
@@ -176,6 +178,7 @@ extension GameType {
case .ps1: return "PlayStation"
case .dc: return "Dreamcast"
case .arcade: return "Arcade"
+ case .ns: return "Nintendo Switch"
default: return ""
}
}
@@ -205,6 +208,7 @@ extension GameType {
case .ps1: return NSLocalizedString("PS1", comment: "")
case .dc: return NSLocalizedString("DC", comment: "")
case .arcade: return NSLocalizedString("Arcade", comment: "")
+ case .ns: return NSLocalizedString("NS", comment: "")
case .unknown: return R.string.localizable.unknownPlatform()
default: return ""
}
@@ -235,6 +239,7 @@ extension GameType {
case .ps1: return 1995
case .dc: return 1998
case .arcade: return 1971
+ case .ns: return 2017
default: return 0
}
}
@@ -340,7 +345,7 @@ extension GameType {
var manufacturer: Manufacturer {
switch self {
- case ._3ds, .ds, .gb, .gba, .gbc, .nes, .fds, .snes, .vb, .pm, .n64:
+ case ._3ds, .ds, .gb, .gba, .gbc, .nes, .fds, .snes, .vb, .pm, .n64, .ns:
return .nintendo
case .ps1, .psp:
return .sony
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/NumbersExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/NumbersExtensions.swift
new file mode 100644
index 00000000..e4f5a114
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/NumbersExtensions.swift
@@ -0,0 +1,98 @@
+//
+// NumbersExtensions.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/15.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+protocol DecimalConvertible {
+ var decimalValue: Decimal { get }
+}
+
+extension Double: DecimalConvertible {
+ var decimalValue: Decimal { Decimal(self) }
+}
+
+extension Float: DecimalConvertible {
+ var decimalValue: Decimal { Decimal(Double(self)) }
+}
+
+extension CGFloat: DecimalConvertible {
+ var decimalValue: Decimal { Decimal(Double(self)) }
+}
+
+extension DecimalConvertible {
+
+ /// 截断浮点数
+ /// - Parameter scale: 精度 scale = 1 则把 0.1999999 -> 0.20000
+ /// - Returns: Decimal结果
+ func roundedDecimal(scale: Int = 1) -> Decimal {
+ var decimal = decimalValue
+ var result = Decimal()
+
+ NSDecimalRound(
+ &result,
+ &decimal,
+ scale,
+ .plain // 四舍五入
+ )
+ return result
+ }
+
+ /// 截断浮点数
+ /// - Parameters:
+ /// - scale: 精度 scale = 1 则把 0.1999999 -> 0.20000
+ /// - minFraction: 最小保留小数位 minFraction = 1 -> 0.2
+ /// - maxFraction: 最大保留小数位 minFraction = 2 -> 0.20
+ /// - Returns: 字符串结果
+ func roundedString(scale: Int = 1, minFraction: Int = 1, maxFraction: Int = 1) -> String {
+ let result = roundedDecimal(scale: scale)
+ let formatter = NumberFormatter()
+ formatter.numberStyle = .decimal
+ formatter.minimumFractionDigits = minFraction
+ formatter.maximumFractionDigits = maxFraction
+ formatter.decimalSeparator = "."
+
+ return formatter.string(from: result as NSDecimalNumber) ?? ""
+ }
+
+ func roundedDouble(scale: Int = 1) -> Double {
+ (roundedDecimal(scale: scale) as NSDecimalNumber).doubleValue
+ }
+
+ func roundedCGFloat(scale: Int = 1) -> Float {
+ roundedDouble(scale: scale).float
+ }
+
+ func roundedCGFloat(scale: Int = 1) -> CGFloat {
+ roundedDouble(scale: scale).cgFloat
+ }
+}
+
+extension Decimal {
+ var stringValue: String {
+ (self as NSDecimalNumber).stringValue
+ }
+
+ func stringValue(minFraction: Int = 1, maxFraction: Int = 1) -> String {
+ let formatter = NumberFormatter()
+ formatter.numberStyle = .decimal
+ formatter.minimumFractionDigits = minFraction
+ formatter.maximumFractionDigits = maxFraction
+ formatter.decimalSeparator = "."
+ return formatter.string(from: self as NSDecimalNumber) ?? ""
+ }
+
+ var doubleValue: Double {
+ (self as NSDecimalNumber).doubleValue
+ }
+
+ var cgFloat: CGFloat {
+ doubleValue.cgFloat
+ }
+
+ var floatValue: Float {
+ (self as NSDecimalNumber).floatValue
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/SheerExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/SheerExtensions.swift
index ddc47d9e..a6a6b63b 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/SheerExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/SheerExtensions.swift
@@ -11,7 +11,7 @@ import ProHUD
extension SheetTarget {
- func configGamePlayingStyle(isForGameMenu: Bool = false, gameViewRect:CGRect, menuInsets: UIEdgeInsets? = nil, hideCompletion: (()->Void)? = nil) {
+ func configGamePlayingStyle(isForGameMenu: Bool = false, hideCompletion: (()->Void)? = nil) {
//设置点击背景的回调
self.onTappedBackground { sheet in
sheet.pop(completon: hideCompletion)
@@ -54,7 +54,7 @@ extension SheetTarget {
self.config.cardMaxHeight = sheetSize.height
- if let menuInsets {
+ if let menuInsets = PlayViewController.menuInsets {
//设置了菜单的边距
var prefferdHeight = Constants.Size.WindowHeight - menuInsets.top - menuInsets.bottom
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift
index 407777bc..b25e20c7 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIViewExtensions.swift
@@ -274,7 +274,6 @@ extension UIView {
startLoadingTime = nil
}
- static var alertBottomInset: CGFloat? = nil
private static var SheetIdentifiers = [String]()
static func makeAlert(identifier: String? = nil,
title: String? = nil,
@@ -461,7 +460,7 @@ extension UIView {
}
sheet.set(customView: view).snp.makeConstraints { make in
- if let bottomInset = UIView.alertBottomInset, bottomInset > 0, PlayViewController.isGaming {
+ if let bottomInset = PlayViewController.menuInsets?.bottom, bottomInset > 0, PlayViewController.isGaming {
make.leading.top.trailing.equalToSuperview()
make.bottom.equalToSuperview().inset(bottomInset)
} else {
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIimageExtensions.swift b/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIimageExtensions.swift
index 499e0d24..2acf110a 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIimageExtensions.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Extensions/UIimageExtensions.swift
@@ -165,19 +165,6 @@ extension UIImage {
return screenshotData
}
- func applyFilter(filter: CIFilter) -> UIImage? {
- if filter is OriginFilter {
- return self
- }
- guard let ciImage = CIImage(image: self) else { return nil }
- filter.setValue(ciImage, forKey: kCIInputImageKey)
- guard let outputCIImage = filter.outputImage else { return nil }
- let context = CIContext(options: nil)
- guard let cgImage = context.createCGImage(outputCIImage, from: outputCIImage.extent) else { return nil }
- let filteredImage = UIImage(cgImage: cgImage)
- return filteredImage
- }
-
static func radialGradientImage(size: CGSize,
colors: [UIColor],
completion: ((UIImage?)->Void)? = nil) {
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/Database.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/Database.swift
index d02a31a6..5175b6d0 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/Database.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/Database.swift
@@ -48,7 +48,7 @@ struct Database {
//设置已经存在,检查一下皮肤数量是否和模拟器数量一致,不一致的话 需要更新默认皮肤
let defaultSkins = realm.objects(Skin.self).where { $0.skinType == .default }
let defaultSkinsCount = defaultSkins.count
- if defaultSkinsCount != System.allCases.count {
+ if defaultSkinsCount != System.allCases.filter({ $0 != .ns }).count {
Log.debug("更新设置 新增皮肤")
//默认皮肤数量不正确 可能新增了核心 需要重置皮肤
try? realm.write {
@@ -387,6 +387,7 @@ struct Database {
let realm = Database.realm
let fileManager = FileManager.default
let resourcePath = Constants.Path.Resource
+ //处理内置Manic皮肤
if let contents = try? fileManager.contentsOfDirectory(atPath: resourcePath) {
let skinNames = contents.filter { $0.hasSuffix(".manicskin") }
var embedSkins = [Skin]()
@@ -436,6 +437,49 @@ struct Database {
})
}
}
+
+ //PlayCase皮肤
+#if !SIDE_LOAD
+ if !UserDefaults.standard.bool(forKey: Constants.DefaultKey.HasImportedPlayCaseSkin) {
+ if let contents = try? fileManager.contentsOfDirectory(atPath: resourcePath.appendingPathComponent("PlayCase")) {
+ let skinNames = contents.filter { $0.hasSuffix(".playcase") }
+ var embedSkins = [Skin]()
+ for skinName in skinNames {
+ if let controllerSkin = ControllerSkin(fileURL: URL(fileURLWithPath: resourcePath.appendingPathComponent("PlayCase").appendingPathComponent(skinName))),
+ let hash = FileHashUtil.truncatedHash(url: controllerSkin.fileURL) {
+ let skins = realm.objects(Skin.self)
+
+ if let skin = skins.first(where: { $0.identifier == controllerSkin.identifier }) {
+ Log.debug("PlayCase皮肤:\(skin.name)已存在")
+ if skin.skinType != .playcase {
+ Log.debug("用户自行导入过PlayCase皮肤,现在对其进行更新")
+ _ = try? realm.write({
+ skin.skinType == .playcase
+ })
+ }
+ } else {
+ let skin = Skin()
+ skin.id = hash
+ skin.identifier = controllerSkin.identifier
+ skin.name = controllerSkin.name
+ skin.fileName = controllerSkin.fileURL.lastPathComponent
+ skin.gameType = controllerSkin.gameType
+ skin.skinType = .playcase
+ skin.skinData = CreamAsset.create(objectID: skin.id, propName: "skinData", url: controllerSkin.fileURL)
+ embedSkins.append(skin)
+ Log.debug("开始集成PlayCase皮肤:\(skin.name)")
+ }
+ }
+ }
+ if embedSkins.count > 0 {
+ try? realm.write({
+ realm.add(embedSkins)
+ })
+ }
+ }
+ UserDefaults.standard.set(true, forKey: Constants.DefaultKey.HasImportedPlayCaseSkin)
+ }
+#endif
}
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/DownloadManager.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/DownloadManager.swift
index 3d74c8e6..7600c6ab 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/DownloadManager.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/DownloadManager.swift
@@ -8,6 +8,7 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import Tiercel
+import SSZipArchive
class DownloadManager {
static let shared = DownloadManager()
@@ -61,10 +62,39 @@ class DownloadManager {
Log.debug("下载完成")
//全部下载完才统一导入
UIView.makeToast(message: R.string.localizable.downloadCompletion())
- let succeededTasks = manager.succeededTasks
- FilesImporter.importFiles(urls: succeededTasks.map({ URL(fileURLWithPath: $0.filePath) })) {
- succeededTasks.forEach { manager.remove($0.url) }
+ var succeededTasks = manager.succeededTasks
+
+ let shaders = succeededTasks.filter({
+ $0.filePath.lastPathComponent == Constants.Strings.SlangShader || $0.filePath.lastPathComponent == Constants.Strings.GLSLShader
+ })
+ if shaders.count > 0 {
+ //处理RetroArch的shaders
+
+ DispatchQueue.global().async {
+ for shader in shaders {
+ let desPath = shader.filePath.lastPathComponent == Constants.Strings.SlangShader ? Constants.Path.ShaderRetroArchSlang : Constants.Path.ShaderRetroArchGLSL
+ SSZipArchive.unzipFile(atPath: shader.filePath, toDestination: desPath, overwrite: true, password: nil, progressHandler: nil) { _, isSuccess, error in
+ DispatchQueue.main.async {
+ if isSuccess {
+ NotificationCenter.default.post(name: Constants.NotificationName.RetroArchShadersDownloadSuccess, object: nil)
+ } else {
+ UIView.makeToast(message: R.string.localizable.retroArchShaderUnzipFailed(shader.filePath.lastPathComponent))
+ }
+ }
+ }
+ }
+ }
+ succeededTasks = succeededTasks.filter({
+ $0.filePath.lastPathComponent != Constants.Strings.SlangShader && $0.filePath.lastPathComponent != Constants.Strings.GLSLShader
+ })
+ }
+
+ if succeededTasks.count > 0 {
+ FilesImporter.importFiles(urls: succeededTasks.map({ URL(fileURLWithPath: $0.filePath) })) {
+ succeededTasks.forEach { manager.remove($0.url) }
+ }
}
+
NotificationCenter.default.post(name: Constants.NotificationName.StopDownload, object: nil)
}
return manager
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift
index e5abe600..cebcc5c7 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/FilesImporter.swift
@@ -655,7 +655,7 @@ extension FilesImporter {
skin.name = controllerSkin.name
skin.fileName = url.lastPathComponent
skin.gameType = controllerSkin.gameType
- skin.skinType = .import
+ skin.skinType = url.pathExtension.lowercased() == "playcase" ? .playcase : .import
skin.skinData = CreamAsset.create(objectID: skin.id, propName: "skinData", url: url)
do {
try realm.write {
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/FilterManager.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/FilterManager.swift
deleted file mode 100644
index b3bffc1e..00000000
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/FilterManager.swift
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// FilterManager.swift
-// ManicEmu
-//
-// Created by Daiuno on 2025/3/8.
-// Copyright © 2025 Manic EMU. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-struct FilterManager {
- static func allLibretroPreviews(origin: UIImage, isGlsl: Bool, completion: (([LibretroPreViewFilter])->Void)? = nil) {
- DispatchQueue.global().async {
- var results = [LibretroPreViewFilter]()
- let originFilter = LibretroPreViewFilter()
- originFilter.name = OriginFilter.name
- results.append(originFilter)
-
- results.append(contentsOf: findLibretroSlangpFiles(in: URL(fileURLWithPath: Constants.Path.Shaders), isGlsl: isGlsl).compactMap({ shader in
- let filter = LibretroPreViewFilter()
- filter.name = shader.deletingPathExtension.lastPathComponent
- filter.shaderPath = shader
- return filter
- }))
-
- DispatchQueue.main.async {
- completion?(results)
- }
- }
- }
-
- static func findLibretroSlangpFiles(in directory: URL, isGlsl: Bool) -> [String] {
- var result: [String] = []
-
- let fileManager = FileManager.default
- let enumerator = fileManager.enumerator(at: isGlsl ? directory.appendingPathComponent("glsl") : directory, includingPropertiesForKeys: nil)
-
- let pathExtension = isGlsl ? "glslp" : "slangp"
- while let fileURL = enumerator?.nextObject() as? URL {
- if fileURL.pathExtension.lowercased() == pathExtension && fileURL.lastPathComponent.deletingPathExtension.lowercased() != "retroarch" {
- result.append(fileURL.path)
- }
- }
- return result.sorted(by: { $0 < $1 })
- }
-}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/MelonNXKit.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/MelonNXKit.swift
new file mode 100644
index 00000000..fabc503b
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/MelonNXKit.swift
@@ -0,0 +1,114 @@
+//
+// MelonNXKit.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/12/16.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+
+import ManicEmuCore
+import IceCream
+
+extension GameType {
+ static let ns = GameType("public.aoshuang.game.ns")
+}
+
+struct MelonNXKit {
+ static var isInstalled: Bool {
+ return UIApplication.shared.canOpenURL(Constants.URLs.FetchMeloNXGames)
+ }
+
+ static func startGame(id: String) {
+ if isInstalled {
+ UIApplication.shared.open(Constants.URLs.MeloNXGameLaunch(gameId: id))
+ } else {
+ DispatchQueue.main.asyncAfter(delay: 0.35) {
+ UIView.makeToast(message: R.string.localizable.notInstallMeloNX())
+ }
+ }
+ }
+
+ static func fetchGames() {
+ if isInstalled {
+ UIApplication.shared.open(Constants.URLs.FetchMeloNXGames)
+ } else {
+ DispatchQueue.main.asyncAfter(delay: 0.35) {
+ UIView.makeToast(message: R.string.localizable.notInstallMeloNX())
+ }
+ }
+ }
+
+ static func processGames(callbackUrl: URL) {
+ var delay: Double
+ if let _ = ApplicationSceneDelegate.applicationWindow {
+ delay = 0.0
+ } else {
+ delay = 3.0
+ }
+ DispatchQueue.global().asyncAfter(delay: delay) {
+ let meloNXGames = GameScheme.pullFromURL(callbackUrl)
+ var games = [Game]()
+ let realm = Database.realm
+ for mg in meloNXGames {
+ if let _ = realm.object(ofType: Game.self, forPrimaryKey: mg.titleId) {
+ Log.debug("MeloNX游戏已存在:\(mg.titleId) \(mg.titleName)")
+ } else {
+ let game = Game()
+ game.id = mg.titleId
+ game.name = mg.titleName
+ game.fileExtension = "xci"
+ game.gameType = .ns
+ game.importDate = Date()
+ game.hasCoverMatch = true
+ if let icon = mg.iconData {
+ game.gameCover = CreamAsset.create(objectID: game.id, propName: "gameCover", data: icon)
+ try? icon.write(to: URL(fileURLWithPath: Constants.Path.Document.appendingPathComponent("image.jpg")))
+ }
+ games.append(game)
+ }
+ }
+ if games.count > 0 {
+ try? realm.write({
+ realm.add(games)
+ })
+ DispatchQueue.main.asyncAfter(delay: 0.35) {
+ UIView.makeToast(message: R.string.localizable.biosImportSuccess("MeloNX Games"))
+ }
+ }
+ }
+ }
+}
+
+struct GameScheme: Codable, Identifiable, Equatable, Hashable, Sendable {
+ var id = UUID().uuidString
+
+ var titleName: String
+ var titleId: String
+ var developer: String
+ var version: String
+ var iconData: Data?
+
+ static func pullFromURL(_ url: URL) -> [GameScheme] {
+ if let components = URLComponents(url: url, resolvingAgainstBaseURL: true) {
+ if components.host == Constants.Strings.MeloNXScheme {
+ if let text = components.queryItems?.first(where: { $0.name == "games" })?.value, let data = GameScheme.base64URLDecode(text) {
+
+ if let decoded = try? JSONDecoder().decode([GameScheme].self, from: data) {
+ return decoded
+ }
+ }
+ }
+ }
+ return []
+ }
+
+ private static func base64URLDecode(_ text: String) -> Data? {
+ var base64 = text
+ base64 = base64.replacingOccurrences(of: "-", with: "+")
+ base64 = base64.replacingOccurrences(of: "_", with: "/")
+ while base64.count % 4 != 0 {
+ base64 = base64.appending("=")
+ }
+ return Data(base64Encoded: base64)
+ }
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift
index 8dff84bd..85926896 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/ResourcesKit.swift
@@ -65,6 +65,7 @@ struct ResourcesKit {
let resourceUrl = Bundle.main.url(forResource: "System", withExtension: "core")!
Log.debug("开始解压资源:\(Date.now.timeIntervalSince1970ms)")
+ try? FileManager.safeRemoveItem(at: URL(fileURLWithPath: Constants.Path.Resource))
SSZipArchive.unzipFile(atPath: resourceUrl.path, toDestination: Constants.Path.Resource, overwrite: true, password: nil, progressHandler: nil) { _, isSuccess, error in
//处理复用皮肤
@@ -107,9 +108,12 @@ struct ResourcesKit {
//Libretro的资源复制到对应位置
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/info")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("info")), shouldReplace: true)
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/autoconfig")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("autoconfig")), shouldReplace: true)
- try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/shaders")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("shaders")), shouldReplace: true)
- try? FileManager.safeReplaceDirectory(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/system")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("system")))
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/shaders/default")), to: URL(fileURLWithPath: Constants.Path.ShaderDefault), shouldReplace: true)
+ try? FileManager.safeReplaceDirectory(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/system")), to: URL(fileURLWithPath: Constants.Path.System))
try? FileManager.safeReplaceDirectory(at: URL(fileURLWithPath: Constants.Path.Resource.appendingPathComponent("Libretro/config")), to: URL(fileURLWithPath: Constants.Path.Libretro.appendingPathComponent("config")))
+ if !FileManager.default.fileExists(atPath: Constants.Path.AzaharConfig) {
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.AzaharDefaultConfig), to: URL(fileURLWithPath: Constants.Path.AzaharConfig))
+ }
try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.CitraDefaultConfig), to: URL(fileURLWithPath: Constants.Path.CitraConfig), shouldReplace: true)
@@ -146,6 +150,15 @@ struct ResourcesKit {
}
}
}
+ if systemCoreVersionNumber < 181 {
+ if let contents = try? FileManager.default.contentsOfDirectory(atPath: Constants.Path.Shaders) {
+ for content in contents {
+ if content != "default" {
+ try? FileManager.default.removeItem(atPath: Constants.Path.Shaders.appendingPathComponent(content))
+ }
+ }
+ }
+ }
}
Log.info("资源解压成功!")
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/ShaderManager.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/ShaderManager.swift
new file mode 100644
index 00000000..da4594ca
--- /dev/null
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/ShaderManager.swift
@@ -0,0 +1,102 @@
+//
+// ShaderManager.swift
+// ManicEmu
+//
+// Created by Daiuno on 2025/3/8.
+// Copyright © 2025 Manic EMU. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+struct ShaderManager {
+
+ static func fetchShaders(source: ShadersListView.ShaderSource? = nil, isGlsl: Bool, selectedShader: Shader?, includeOriginal: Bool) -> ShadersListData {
+ var result = ShadersListData()
+ let sourceCase = source == nil ? ShadersListView.ShaderSource.allCases : [source!]
+ for source in sourceCase {
+ if source == .imported {
+ if FileManager.default.fileExists(atPath: Constants.Path.ShaderImportedInDocument) {
+ //复制到shader的工作区
+ try? FileManager.safeCopyItem(at: URL(fileURLWithPath: Constants.Path.ShaderImportedInDocument), to: URL(fileURLWithPath: Constants.Path.ShaderImported), shouldReplace: true)
+ } else {
+ try? FileManager.default.createDirectory(atPath: Constants.Path.ShaderImportedInDocument, withIntermediateDirectories: true)
+ }
+ }
+ let isRecursive = source != .custom
+ let shadersRelativePathes = findShaderFiles(in: source.searchUrl, isGlsl: isGlsl, isRecursive: isRecursive)
+ switch source {
+ case .default, .custom:
+ var shaders = shadersRelativePathes.map({ genShader($0, isSelected: selectedShader == nil ? false : ($0 == selectedShader!.relativePath)) })
+ if source == .default, includeOriginal {
+ shaders.insert(ShaderManager.genOriginalShader(isSelected: selectedShader == nil ? true : false), at: 0)
+ }
+ result[source] = [("", shaders)]
+ case .retroarch, .imported:
+ var subResult = [String: [Shader]]()
+ for path in shadersRelativePathes {
+ let sectionTitleIndex = source == .retroarch ? 2 : 1
+ let components = path.pathComponents
+ if components.count > sectionTitleIndex + 1 {
+ let sectionTitle = components[sectionTitleIndex]
+ let shader = genShader(path, isSelected: selectedShader == nil ? false : (path == selectedShader!.relativePath))
+ if var shaderArray = subResult[sectionTitle] {
+ shaderArray.append(shader)
+ subResult[sectionTitle] = shaderArray.sorted(by: {
+ $0.title.lowercased() < $1.title.lowercased()
+ })
+ } else {
+ subResult[sectionTitle] = [shader]
+ }
+ }
+ }
+ result[source] = subResult.sorted(by: \.key).map({ ($0, $1) })
+ }
+ }
+ return result
+ }
+
+ private static func findShaderFiles(in directory: URL, isGlsl: Bool, isRecursive: Bool) -> [String] {
+ var result: [String] = []
+ let fileManager = FileManager.default
+ let pathExtension = isGlsl ? "glslp" : "slangp"
+ if isRecursive {
+ let enumerator = fileManager.enumerator(at: directory, includingPropertiesForKeys: nil)
+ while let fileURL = enumerator?.nextObject() as? URL {
+ if fileURL.pathExtension.lowercased() == pathExtension && fileURL.lastPathComponent.deletingPathExtension.lowercased() != "retroarch",
+ let relativePath = getRelativePath(fileURL.path) {
+ result.append(relativePath)
+ }
+ }
+ } else {
+ if let fileUrls = try? fileManager.contentsOfDirectory(at: directory, includingPropertiesForKeys: [.isDirectoryKey], options: .skipsHiddenFiles) {
+ for fileUrl in fileUrls {
+ let isDirectory = (try? fileUrl.resourceValues(forKeys: [.isDirectoryKey]))?.isDirectory ?? false
+ if !isDirectory,
+ fileUrl.pathExtension.lowercased() == pathExtension,
+ fileUrl.lastPathComponent.deletingPathExtension.lowercased() != "retroarch",
+ let relativePath = getRelativePath(fileUrl.path) {
+ result.append(relativePath)
+ }
+ }
+ }
+ }
+ return result.sorted(by: { $0 < $1 })
+ }
+
+ private static func getRelativePath(_ path: String) -> String? {
+ if let range = path.range(of: "/Libretro/shaders/") {
+ return String(path[range.upperBound...])
+ }
+ return nil
+ }
+
+ static func genShader(_ relativePath: String, isSelected: Bool) -> Shader {
+ Shader(title: relativePath.deletingPathExtension.lastPathComponent, isSelected: isSelected, relativePath: relativePath)
+ }
+
+ static func genOriginalShader(isSelected: Bool) -> Shader {
+ var shader = Shader(title: R.string.localizable.filterOriginTitle(), isSelected: isSelected, relativePath: "")
+ shader.isOriginal = true
+ return shader
+ }
+
+}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift
index 66adabf5..01c1588e 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/System.swift
@@ -11,6 +11,7 @@ import ManicEmuCore
enum System: CaseIterable
{
+ case ns
case arcade
case dc
case ps1
@@ -71,6 +72,7 @@ extension System {
case .dc: return .dc
case .fds: return .fds
case .arcade: return .arcade
+ case .ns: return .ns
}
}
}
diff --git a/ManicEmu/ManicEmu/Sources/Tools/Others/ThemeManager.swift b/ManicEmu/ManicEmu/Sources/Tools/Others/ThemeManager.swift
index ce057674..b912041c 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/Others/ThemeManager.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/Others/ThemeManager.swift
@@ -52,48 +52,6 @@ class ThemeManager {
}
private func updateIcon(isSetup: Bool = false) {
- //每年的10月31日都尝试展示Halloween图标
- var showHalloweenIcon = false
- if isSetup && Date.now.month == 10 && Date.now.day == 31 {
- //检查上一次自动展示Halloween图标的时间
- if let halloweenIconShowUpDate = UserDefaults.standard.object(forKey: Constants.DefaultKey.HalloweenIconShowUpDate) as? Date {
- if halloweenIconShowUpDate.isInToday {
- //已经展示过了 不再展示
- } else {
- //今天还没展示过 展示
- showHalloweenIcon = true
- }
- } else {
- //从没展示过 展示
- showHalloweenIcon = true
- }
- }
- if showHalloweenIcon {
- Log.debug("开始更新图标 今天是万圣节 直接使用万圣节图标")
- UserDefaults.standard.set(Date.now, forKey: Constants.DefaultKey.HalloweenIconShowUpDate)
- UserDefaults.standard.synchronize()
- let theme = Theme.defalut
- theme.updateExtra(key: ExtraKey.recoverIcon.rawValue, value: theme.icon)
- Theme.change { realm in
- theme.icon = "AppIcon_Halloween"
- }
- return
- }
-
- if Date.now.string(withFormat: "MMdd") != "1031" {
- //万圣节已经过了 需要恢复图标
- let theme = Theme.defalut
- if let icon = theme.getExtraString(key: ExtraKey.recoverIcon.rawValue), !icon.isEmpty {
- //有待恢复的图标
- let theme = Theme.defalut
- theme.updateExtra(key: ExtraKey.recoverIcon.rawValue, value: "")
- Theme.change { realm in
- theme.icon = icon
- }
- return
- }
- }
-
Log.debug("开始更新图标")
let theme = Theme.defalut
Log.debug("主题图标:\(theme.icon)")
diff --git a/ManicEmu/ManicEmu/Sources/Tools/ThirdParty/SectionIndexView/SectionIndexView.swift b/ManicEmu/ManicEmu/Sources/Tools/ThirdParty/SectionIndexView/SectionIndexView.swift
index 911a4046..f8575777 100644
--- a/ManicEmu/ManicEmu/Sources/Tools/ThirdParty/SectionIndexView/SectionIndexView.swift
+++ b/ManicEmu/ManicEmu/Sources/Tools/ThirdParty/SectionIndexView/SectionIndexView.swift
@@ -82,6 +82,8 @@ public class SectionIndexView: UIView {
@objc public private(set) var selectedItem: SectionIndexViewItem?
@objc public private(set) var isTouching = false
+ @objc public var hideSearch = false
+
var containerView = UIView()
var leftPadding = 14.0
var rightPadding = 3.0
@@ -175,6 +177,7 @@ public class SectionIndexView: UIView {
color: Constants.Color.LabelTertiary)
searchItem.selectedColor = .clear
items.insert(searchItem, at: 0)
+ searchItem.isHidden = hideSearch
setItemsLayoutConstraint()
}
diff --git a/ManicSupport/Resources/System.core b/ManicSupport/Resources/System.core
index 92bee549..2372b6f8 100644
--- a/ManicSupport/Resources/System.core
+++ b/ManicSupport/Resources/System.core
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c115e752ad5b96c1d4179d538d601933e91b78f270dddf972a78936d1bd8ff7e
-size 87936274
+oid sha256:31468347b915c7174c4c6ad97c009cf090128ec9f34e81f371b14ff216a4d3e9
+size 50632468