Commit fe181673 authored by nanahira's avatar nanahira

no more ygopro conf tune

parent e02a90ba
Pipeline #4872 canceled with stages
in 6 seconds
......@@ -497,7 +497,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
};
async join(name: string, server: Server) {
let system_conf = await this.load_system_conf();
/*let system_conf = await this.load_system_conf();
await this.fix_fonts(system_conf);
system_conf.lastdeck = this.current_deck;
system_conf.lastip = server.address;
......@@ -505,22 +505,22 @@ export class YGOProComponent implements OnInit, OnDestroy {
system_conf.lastport = server.port.toString();
system_conf.roompass = name;
system_conf.nickname = this.loginService.user.username;
await this.save_system_conf(system_conf);
return this.start_game(['-j']);
await this.save_system_conf(system_conf);*/
return this.start_game(['-h', server.address, '-p', server.port.toString(), '-w', name, '-n', this.loginService.user.username, '-d', this.current_deck, '-j']);
};
async edit_deck(deck: string) {
let system_conf = await this.load_system_conf();
/*let system_conf = await this.load_system_conf();
await this.fix_fonts(system_conf);
system_conf.lastdeck = deck;
await this.save_system_conf(system_conf);
await this.save_system_conf(system_conf);*/
return this.start_game(['-d', deck]);
}
async watch_replay(replay: string) {
let system_conf = await this.load_system_conf();
/*let system_conf = await this.load_system_conf();
await this.fix_fonts(system_conf);
await this.save_system_conf(system_conf);
await this.save_system_conf(system_conf);*/
return this.start_game(['-r', path.join('replay', replay + '.yrp')]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment