fix formatting -- no code change

This commit is contained in:
Andy2 2011-12-07 06:16:11 -08:00
parent ded7ffc6fe
commit 7b985fcbae

View file

@ -202,15 +202,15 @@ public class GameUtils {
XwJNI.comms_setAddr( gamePtr, addr );
}
if ( null == lockDest ) {
long rowid = saveNewGame( context, gamePtr, gi );
lockDest = new GameLock( rowid, true ).lock();
} else {
saveGame( context, gamePtr, gi, lockDest, true );
}
summarizeAndClose( context, lockDest, gamePtr, gi );
if ( null == lockDest ) {
long rowid = saveNewGame( context, gamePtr, gi );
lockDest = new GameLock( rowid, true ).lock();
} else {
saveGame( context, gamePtr, gi, lockDest, true );
}
summarizeAndClose( context, lockDest, gamePtr, gi );
return lockDest;
return lockDest;
} // resetGame
public static void resetGame( Context context, long rowidIn )
@ -315,16 +315,18 @@ public class GameUtils {
gamePtr = XwJNI.initJNI();
String langName = gi.langName();
boolean madeGame = XwJNI.game_makeFromStream( gamePtr, stream,
JNIUtilsImpl.get(), gi,
dictNames, pairs.m_bytes,
pairs.m_paths, langName,
util,
CommonPrefs.get(context));
boolean madeGame =
XwJNI.game_makeFromStream( gamePtr, stream,
JNIUtilsImpl.get(), gi,
dictNames, pairs.m_bytes,
pairs.m_paths, langName,
util,
CommonPrefs.get(context));
if ( !madeGame ) {
XwJNI.game_makeNewGame( gamePtr, gi, JNIUtilsImpl.get(),
CommonPrefs.get(context), dictNames,
pairs.m_bytes, pairs.m_paths, langName );
pairs.m_bytes, pairs.m_paths,
langName );
}
}
return gamePtr;