1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:47:35 +00:00

Ports: Add port for DungeonRush

This commit is contained in:
Gunnar Beutner 2021-06-16 11:23:34 +02:00 committed by Andreas Kling
parent 8393e737b7
commit 8ba0533138
5 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff -Naur DungeonRush-1.1-beta/src/main.c DungeonRush-1.1-beta.serenity/src/main.c
--- DungeonRush-1.1-beta/src/main.c 2020-11-21 14:22:39.000000000 +0100
+++ DungeonRush-1.1-beta.serenity/src/main.c 2021-06-16 11:02:22.409585466 +0200
@@ -12,6 +12,8 @@
#endif
int main(int argc, char** args) {
+ // The game tries to open its resource files using relative paths
+ chdir("/opt/DungeonRush");
prngSrand(time(NULL));
// Start up SDL and create window
if (!init()) {