mirror of
https://github.com/rommapp/romm.git
synced 2026-04-18 12:09:38 +00:00
feat: update RAHasher to version 1.8.3 and add Wii platform support
This commit is contained in:
@@ -76,9 +76,8 @@ sudo apt install libmariadb3 libmariadb-dev libpq-dev
|
||||
# Users on macOS can skip this step as RAHasher is not supported
|
||||
git clone --recursive https://github.com/RetroAchievements/RALibretro.git
|
||||
cd ./RALibretro
|
||||
git checkout 1.8.0
|
||||
git checkout 1.8.3
|
||||
git submodule update --init --recursive
|
||||
sed -i '22a #include <ctime>' ./src/Util.h
|
||||
make HAVE_CHD=1 -f ./Makefile.RAHasher
|
||||
cp ./bin64/RAHasher /usr/bin/RAHasher
|
||||
```
|
||||
|
||||
@@ -43,14 +43,9 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | b
|
||||
ENV PATH="$NVM_DIR/versions/node/v24.13.1/bin:$PATH"
|
||||
|
||||
# Build and install RAHasher (optional for RA hashes)
|
||||
RUN git clone --recursive --branch 1.8.1 --depth 1 https://github.com/RetroAchievements/RALibretro.git /tmp/RALibretro
|
||||
RUN git clone --recursive --branch 1.8.3 --depth 1 https://github.com/RetroAchievements/RALibretro.git /tmp/RALibretro
|
||||
WORKDIR /tmp/RALibretro
|
||||
RUN sed -i '22a #include <ctime>' ./src/Util.h \
|
||||
&& sed -i '6a #include <unistd.h>' \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzlib.c \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzread.c \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzwrite.c \
|
||||
&& make HAVE_CHD=1 -f ./Makefile.RAHasher \
|
||||
RUN make HAVE_CHD=1 -f ./Makefile.RAHasher \
|
||||
&& cp ./bin64/RAHasher /usr/bin/RAHasher
|
||||
RUN rm -rf /tmp/RALibretro
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ PLATFORM_SLUG_TO_RETROACHIEVEMENTS_ID: dict[UPS, int] = {
|
||||
UPS.WASM_4: 72,
|
||||
UPS.SUPERVISION: 63,
|
||||
UPS.WIN: 102,
|
||||
UPS.WII: 19,
|
||||
UPS.WONDERSWAN: 53,
|
||||
UPS.WONDERSWAN_COLOR: 53,
|
||||
}
|
||||
@@ -96,7 +97,7 @@ class RAHasherService:
|
||||
return ""
|
||||
|
||||
return_code = await proc.wait()
|
||||
if return_code != 1:
|
||||
if return_code != 0:
|
||||
if proc.stderr is not None:
|
||||
stderr = (await proc.stderr.read()).decode("utf-8")
|
||||
else:
|
||||
|
||||
@@ -464,6 +464,7 @@ RA_PLATFORM_LIST: dict[UPS, SlugToRAId] = {
|
||||
"name": "Watara/QuickShot Supervision",
|
||||
},
|
||||
UPS.WIN: {"id": 102, "name": "Windows"},
|
||||
UPS.WII: {"id": 19, "name": "Wii"},
|
||||
UPS.WONDERSWAN: {"id": 53, "name": "WonderSwan"},
|
||||
UPS.WONDERSWAN_COLOR: {"id": 53, "name": "WonderSwan Color"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user