-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminming.php
More file actions
29 lines (28 loc) · 994 Bytes
/
Copy pathminming.php
File metadata and controls
29 lines (28 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
$game='king';
$filename="E:/{$game}/res/samejson/army.json";
$army=file_get_contents($filename);
$army=json_decode($army,true);
foreach($army as $item){
$fileArr[]=$item['json'];
}
foreach($fileArr as $file){
$fileReName="E:/{$game}/res/".$file.'.json';
if(file_exists($fileReName)){
$donghua=file_get_contents($fileReName);
if((stripos($donghua,'"hit"'))===FALSE){
var_dump('no hit frame filename ->'.$file);
}
$donghua=json_decode($donghua,true);
if(count($donghua['Content']['Content']['UsedResources'])>2){
var_dump('conflict UsedResources filename->'.$file);
continue;
}
$plist=$donghua['Content']['Content']['UsedResources'][0];
$png=$donghua['Content']['Content']['UsedResources'][1];
$keyName=str_replace('_','',$file);
if($plist!='plist_'.$keyName.'.plist'){
var_dump('illegal UsedResources filename ->'.$file);
}
}
}