mirror of
https://gitlab.com/YuukiPS/GC-Proto.git
synced 2024-12-25 16:09:25 +03:00
add info del and info if found unk var
This commit is contained in:
parent
dcdadb1fb8
commit
503921ad83
8
op.js
8
op.js
@ -451,6 +451,10 @@ function clean_proto_gen() {
|
|||||||
const read = fs.readFileSync(file);
|
const read = fs.readFileSync(file);
|
||||||
var rd = read.toString();
|
var rd = read.toString();
|
||||||
|
|
||||||
|
if (file.match("Unk")) {
|
||||||
|
console.log("unk: " + file);
|
||||||
|
}
|
||||||
|
|
||||||
// find import
|
// find import
|
||||||
while ((m = regex.exec(rd)) !== null) {
|
while ((m = regex.exec(rd)) !== null) {
|
||||||
// This is necessary to avoid infinite loops with zero-width matches
|
// This is necessary to avoid infinite loops with zero-width matches
|
||||||
@ -465,6 +469,9 @@ function clean_proto_gen() {
|
|||||||
if (found_rt) {
|
if (found_rt) {
|
||||||
//console.log(`Skip ${match}`);
|
//console.log(`Skip ${match}`);
|
||||||
} else {
|
} else {
|
||||||
|
if (match.match("Unk") || file.match("Unk")) {
|
||||||
|
console.log(file + " require " + match);
|
||||||
|
}
|
||||||
var subdata = new Object();
|
var subdata = new Object();
|
||||||
subdata["name"] = match;
|
subdata["name"] = match;
|
||||||
file_toaddmore.push(subdata);
|
file_toaddmore.push(subdata);
|
||||||
@ -505,6 +512,7 @@ function clean_proto_gen() {
|
|||||||
|
|
||||||
if (todoremove) {
|
if (todoremove) {
|
||||||
found_needclean++;
|
found_needclean++;
|
||||||
|
console.log("Remove file: "+file);
|
||||||
try {
|
try {
|
||||||
fs.unlinkSync(file);
|
fs.unlinkSync(file);
|
||||||
//file removed
|
//file removed
|
||||||
|
Loading…
Reference in New Issue
Block a user