mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 18:12:50 -04:00
goalc: remove deprecated CLI args from goalc and remove empty repo folders (#2301)
This gets rid of the `auto-lt` and `auto-dbg` CLI args to `goalc` that have been marked deprecated for a month or so at this point. The behaviour can be replicated via the `startup.gc` file. I also removed `decompiler_out/` and `log/` from the repo, as our C++ code is smart enough to create these directories if they are missing now so they are superfluous
This commit is contained in:
+4
-2
@@ -1,3 +1,6 @@
|
||||
# logs
|
||||
/log
|
||||
|
||||
# for CMake
|
||||
/Testing
|
||||
|
||||
@@ -6,8 +9,7 @@ cmake-build-debug/*
|
||||
cmake-build-debug--o0/*
|
||||
.idea/*
|
||||
build/*
|
||||
decompiler_out/*
|
||||
decompiler_out2/*
|
||||
/decompiler_out*
|
||||
logs/*
|
||||
|
||||
# for vscode/clangd
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -24,8 +24,6 @@ void setup_logging() {
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
bool auto_listen = false;
|
||||
bool auto_debug = false;
|
||||
bool auto_find_user = false;
|
||||
std::string cmd = "";
|
||||
std::string username = "#f";
|
||||
@@ -40,10 +38,6 @@ int main(int argc, char** argv) {
|
||||
app.add_option("-u,--user", username,
|
||||
"Specify the username to use for your user profile in 'goal_src/user/'");
|
||||
app.add_option("-p,--port", nrepl_port, "Specify the nREPL port. Defaults to 8181");
|
||||
app.add_flag("--auto-lt", auto_listen,
|
||||
"Attempt to automatically connect to the listener on startup");
|
||||
app.add_flag("--auto-dbg", auto_debug,
|
||||
"Attempt to automatically connect to the debugger on startup");
|
||||
app.add_flag("--user-auto", auto_find_user,
|
||||
"Attempt to automatically deduce the user, overrides '--user'");
|
||||
app.add_option("-g,--game", game, "The game name: 'jak1' or 'jak2'");
|
||||
@@ -52,18 +46,6 @@ int main(int argc, char** argv) {
|
||||
app.validate_positionals();
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
// Yell about deprecations
|
||||
if (auto_listen) {
|
||||
lg::warn(
|
||||
"--auto-lt will be deprecated, migrate to a 'startup.gc' file in your goal_src/user "
|
||||
"folder");
|
||||
}
|
||||
if (auto_debug) {
|
||||
lg::warn(
|
||||
"--auto-dbg will be deprecated, migrate to a 'startup.gc' file in your goal_src/user "
|
||||
"folder");
|
||||
}
|
||||
|
||||
GameVersion game_version = game_name_to_version(game);
|
||||
|
||||
if (!project_path_override.empty()) {
|
||||
@@ -94,13 +76,6 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
// Load the user's startup file
|
||||
auto startup_file = REPL::load_user_startup_file(username, game_version);
|
||||
// TODO - deprecate these two flags
|
||||
if (startup_file.run_before_listen.empty() && (auto_debug || auto_listen)) {
|
||||
startup_file.run_before_listen.push_back("(lt)");
|
||||
}
|
||||
if (startup_file.run_after_listen.empty() && (auto_debug || auto_listen)) {
|
||||
startup_file.run_before_listen.push_back("(dbgc)");
|
||||
}
|
||||
// Load the user's REPL config
|
||||
auto repl_config = REPL::load_repl_config(username, game_version);
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user