Skip to content
Permalink
Browse files

tools bugfix

  • Loading branch information...
esterTion committed Aug 3, 2018
1 parent df6b801 commit 7ed3bd41ca3535a129da2487b077bcb4d5db1ab2
Showing with 10 additions and 2 deletions.
  1. +1 −0 cgss/main.php
  2. +9 −2 redive/main.php
@@ -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);
@@ -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'])) {
@@ -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) {
@@ -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);
}
}

0 comments on commit 7ed3bd4

Please sign in to comment.
You can’t perform that action at this time.