Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tools bugfix
  • Loading branch information
esterTion committed Aug 3, 2018
1 parent df6b801 commit 7ed3bd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions cgss/main.php
Expand Up @@ -350,6 +350,7 @@ function main() {
}
fclose($f);
} else if ($entry['type'] == 'index' && $entry['sql']) {
$tblName = $entry['tbl_name'];
file_put_contents("data/${tblName}.sql", $entry['sql'].";\n", FILE_APPEND);
}
//echo "\r".++$i.'/'.count($tables);
Expand Down
11 changes: 9 additions & 2 deletions redive/main.php
Expand Up @@ -107,7 +107,7 @@ function do_commit($TruthVersion, $db = NULL) {
$commitMessage[] = '- '.count($diff_send['new_table']).' new table: '. implode(', ', $diff_send['new_table']);
}
if (isset($versionDiff['unit'])) {
$diff_send['card'] = array_map(function ($a){ return str_repeat('★', $a['rarity']).$a['name'];}, $versionDiff['card']);
$diff_send['card'] = array_map(function ($a){ return str_repeat('★', $a['rarity']).$a['name'];}, $versionDiff['unit']);
$commitMessage[] = '- new unit: '. implode(', ', $diff_send['card']);
}
if (isset($versionDiff['event'])) {
Expand Down Expand Up @@ -341,7 +341,13 @@ function main() {
file_put_contents('data/+manifest_movie.txt', $manifest);

$manifest = file_get_contents('data/+manifest_masterdata.txt');
$manifest = explode(',', $manifest);
$manifest = array_map(function ($i){ return explode(',', $i); }, explode("\n", $manifest));
foreach ($manifest as $entry) {
if ($entry[0] === 'a/masterdata_master.unity3d') { $manifest = $entry; break; }
}
if ($manifest[0] !== 'a/masterdata_master.unity3d') {
throw new Exception('masterdata_master.unity3d not found');
}
$bundleHash = $manifest[1];
$bundleSize = $manifest[3]|0;
if ($last_version['hash'] == $bundleHash) {
Expand Down Expand Up @@ -406,6 +412,7 @@ function main() {
}
fclose($f);
} else if ($entry['type'] == 'index' && !empty($entry['sql'])) {
$tblName = $entry['tbl_name'];
file_put_contents("data/${tblName}.sql", $entry['sql'].";\n", FILE_APPEND);
}
}
Expand Down

0 comments on commit 7ed3bd4

Please sign in to comment.