mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
Fedora: fix RMG.spec for Fedora 40
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
diff --git a/Source/RMG-Core/Rom.cpp b/Source/RMG-Core/Rom.cpp
|
||||
index e4d786a5..1a399caf 100644
|
||||
--- a/Source/RMG-Core/Rom.cpp
|
||||
+++ b/Source/RMG-Core/Rom.cpp
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <unzip.h>
|
||||
+#include <zlib.h>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
@@ -91,7 +91,7 @@ static uLong zlib_filefunc_read(voidpf opaque, voidpf stream, void* buf, uLong s
|
||||
{
|
||||
std::ifstream* fileStream = (std::ifstream*)stream;
|
||||
fileStream->read((char*)buf, size);
|
||||
- return fileStream->fail() ? 0 : size;
|
||||
+ return fileStream->fail() ? fileStream->gcount() : size;
|
||||
}
|
||||
|
||||
static ZPOS64_T zlib_filefunc_tell(voidpf opaque, voidpf stream)
|
||||
@@ -33,11 +33,13 @@ Requires: speexdsp
|
||||
Requires: qt6-qtbase
|
||||
Requires: qt6-qtsvg
|
||||
|
||||
Patch0: Fix-Compilation-With-Minizip-NG.patch
|
||||
|
||||
%description
|
||||
Rosalie's Mupen GUI is a free and open-source mupen64plus front-end written in C++
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORTABLE_INSTALL=OFF -DDISCORD_RPC=OFF
|
||||
|
||||
Reference in New Issue
Block a user