Bläddra i källkod

Changed SFX loading path

Thomas Buck 11 år sedan
förälder
incheckning
60d5a1397b
3 ändrade filer med 14 tillägg och 7 borttagningar
  1. 1
    0
      ChangeLog
  2. 9
    5
      README.md
  3. 4
    2
      src/OpenRaider.cpp

+ 1
- 0
ChangeLog Visa fil

@@ -6,6 +6,7 @@
6 6
  OpenRaider (0.1.2) xythobuz <xythobuz@xythobuz.de>
7 7
 
8 8
 	[ 20140105 ]
9
+	* Fixed the TR2 & TR3 SFX file loading to read the original MAIN.SFX
9 10
 	* Fixed strange Mouse Y-Axis Overflow bug
10 11
 	* Cleanup of Makefile
11 12
 

+ 9
- 5
README.md Visa fil

@@ -4,9 +4,13 @@
4 4
 
5 5
 This project aims to get OpenRaider in a more usable state, maybe one day even being able to play the old Tomb Raider games flawlessly...
6 6
 
7
+Currently, my focus is on building and running under Mac OS X.
8
+However, my changes should not break the Linux "buildability" :)
9
+
7 10
 If you just want to see OpenRaider doing something on your Mac, without installing any of the dependencies needed to build OpenRaider, install [XQuartz](http://xquartz.macosforge.org/trac) (if you don't have it already) and grab the Mac App Bundle from the [most recent release](https://github.com/xythobuz/OpenRaider/releases).
11
+If you don't install XQuartz, Mac OS X should prompt you to do so on the first launch of OpenRaider.
8 12
 
9
-It seems as if OpenRaider will currently only work on Little Endian platforms. This is not nice and will hopefully be fixed in the future!
13
+It seems as if OpenRaider will currently only work on Little-Endian platforms. This is not nice and will hopefully be fixed in the future!
10 14
 
11 15
 ## Configuration
12 16
 
@@ -28,9 +32,8 @@ On Mac OS X 10.9 with [XCode](https://developer.apple.com/xcode/) and [MacPorts]
28 32
 
29 33
     sudo port install zlib cmake libsdl libsdl_ttf
30 34
 
31
-You also need the [XQuartz](http://xquartz.macosforge.org/trac) X11 Server.
32
-
33
-To get Sound, you need [freealut](https://github.com/vancegroup/freealut). Get, compile and install it like this:
35
+cmake is only needed for [freealut](https://github.com/vancegroup/freealut), which you'll need to enable sound output.
36
+Get, compile and install freealut like this:
34 37
 
35 38
     git clone git@github.com:vancegroup/freealut.git
36 39
     mkdir build
@@ -39,6 +42,8 @@ To get Sound, you need [freealut](https://github.com/vancegroup/freealut). Get,
39 42
     make
40 43
     sudo make install
41 44
 
45
+You'll also need the [XQuartz](http://xquartz.macosforge.org/trac) X11 Server.
46
+
42 47
 ## Building
43 48
 
44 49
 If you installed the dependencies using MacPorts, you'll need to have `/opt/local/bin` in your `$PATH` before you can execute make.
@@ -47,7 +52,6 @@ If you're using Bash, the MacPorts installer should have automatically edited yo
47 52
 Just run `make debug` and run `bin/debug/OpenRaider` for a debug build.
48 53
 `make release` builds a release binary.
49 54
 `make bundle` creates a Mac App Bundle that also runs the setup script, if necessary.
50
-`make bundle-image` packs the App Bundle into a DMG ready for distribution.
51 55
 
52 56
 ## Usage
53 57
 

+ 4
- 2
src/OpenRaider.cpp Visa fil

@@ -1071,8 +1071,10 @@ void OpenRaider::loadLevel(char *mapname)
1071 1071
 		{
1072 1072
 		case TR_VERSION_2:
1073 1073
 		case TR_VERSION_3:
1074
-			snprintf(altSfx, 255, "%s.sfx", filename);
1075
-			print(true, "Loading alternate SFX for TR2 or TR3 pak...\n");
1074
+            // Now loads eg. "tr3/MAIN.SFX" instead of "tr3/SHORE.TR2.sfx"
1075
+            filename[len - j] = '\0';
1076
+			snprintf(altSfx, 255, "%sMAIN.SFX", filename);
1077
+			print(true, "Loading alternate SFX for TR2 or TR3 pak at %sMAIN.SFX\n", filename);
1076 1078
 
1077 1079
 			m_tombraider.loadSFX(altSfx);
1078 1080
 			break;

Laddar…
Avbryt
Spara