Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed compilation

  • Loading branch information...
commit 9d33ae355a8a097caa5c602a372bb6471a0b9298 1 parent 7b0a548
authored June 19, 2012
2  META.sdl
... ...
@@ -1,7 +1,7 @@
1 1
 version="0.01"
2 2
 archive(byte)="lightning.cma"
3 3
 archive(native)="lightning.cmxa"
4  
-requires="bigarray extlib xmlm threads curl ojson"
  4
+requires="bigarray extlib xmlm threads ojson"
5 5
 
6 6
 package "tapjoy" (
7 7
   description="Tapjoy Connect"
2  src/Sound.ml
@@ -319,7 +319,7 @@ ELSE
319 319
   ELSE
320 320
     (* Sdl version here *)
321 321
 
322  
-    value init ?category () = ();
  322
+    value init (*?category*) () = ();
323 323
     value setMasterVolume (_p:float) = ();
324 324
     type sound = int;
325 325
     value load (path:string) = 0;
6  src/android/java/ru/redspell/lightning/LightView.java
@@ -218,16 +218,16 @@ public int getSoundId(String path, SoundPool sndPool) throws IOException {
218 218
 	}
219 219
 
220 220
 	public ResourceParams getResource(String path) {
221  
-		Log.d("LIGHTNING", "getResource call for " + path);
222 221
 
223 222
 		ResourceParams res;
224 223
 
225 224
 		try {
226  
-			Log.d("LIGHTNING", "loading from raw assets");
  225
+			Log.d("LIGHTNING", "loading from raw assets [" + path + "]");
227 226
 
228 227
 			AssetFileDescriptor afd = getContext().getAssets().openFd(path);
229 228
 			res = new ResourceParams(afd.getFileDescriptor(),afd.getStartOffset(),afd.getLength());			
230 229
 		} catch (IOException e) {
  230
+			Log.d("LIGHTNING","can't find [" + path + "] <" + e + ">");
231 231
 			res =  null;
232 232
 		}
233 233
 		return res;
@@ -480,4 +480,4 @@ public void run() {
480 480
 	// }
481 481
 
482 482
 
483  
-}
  483
+}

0 notes on commit 9d33ae3

Please sign in to comment.
Something went wrong with that request. Please try again.