ソースを参照

Using Readable Gamekey

own3mall 8 年 前
コミット
a46c6b6c53
1 ファイル変更2 行追加1 行削除
  1. 2 1
      OGP/ogp_agent.pl

+ 2 - 1
OGP/ogp_agent.pl

@@ -503,7 +503,8 @@ sub replace_OGP_Env_Vars{
 	
 	# Handle global game shared directory replacement
 	if(defined $game_key && $game_key ne ""){
-		my $shared_path = Path::Class::Dir->new(SHARED_GAME_TMP_DIR, $game_key);
+		my $readable_game_key = lc(substr($game_key, 0, rindex($game_key,"_")));
+		my $shared_path = Path::Class::Dir->new(SHARED_GAME_TMP_DIR, $readable_game_key);
 		# Create the folder if it doesn't exist
 		if (!-d $shared_path && !mkdir $shared_path)
 		{