summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2020-08-26 10:02:03 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-26 16:59:34 +0200
commit30ad295fa190992520d51c1370b662126e191606 (patch)
tree71ba77837119be7176bc7613aa48f2355fcf7f18 /DevTools
parent45901d4141a889b613d7a708805968d0f4f86bad (diff)
downloadserenity-30ad295fa190992520d51c1370b662126e191606.zip
Base+HackStudio: Rename project file extensions to .hsp
More concise in Views and consistent with other extensions.
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/HackStudio/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp
index 7d33bd8b20..6faa0172f4 100644
--- a/DevTools/HackStudio/main.cpp
+++ b/DevTools/HackStudio/main.cpp
@@ -172,7 +172,7 @@ NonnullRefPtr<EditorWrapper> get_editor_of_file(const String& file)
static String get_project_executable_path()
{
- // e.g /my/project.hackstudio => /my/project
+ // e.g /my/project.hsp => /my/project
// TODO: Perhaps a Makefile rule for getting the value of $(PROGRAM) would be better?
return g_project->path().substring(0, g_project->path().index_of(".").value());
}
@@ -219,10 +219,10 @@ int main_impl(int argc, char** argv)
args_parser.parse(argc, argv);
auto argument_absolute_path = Core::File::real_path_for(path_argument);
- if (argument_absolute_path.ends_with(".hackstudio"))
+ if (argument_absolute_path.ends_with(".hsp"))
open_project(argument_absolute_path);
else
- open_project("/home/anon/Source/little/little.hackstudio");
+ open_project("/home/anon/Source/little/little.hsp");
auto& toolbar_container = widget.add<GUI::ToolBarContainer>();
auto& toolbar = toolbar_container.add<GUI::ToolBar>();
@@ -704,7 +704,7 @@ int main_impl(int argc, char** argv)
g_open_file = open_file;
- if (!argument_absolute_path.is_empty() && !argument_absolute_path.ends_with(".hackstudio"))
+ if (!argument_absolute_path.is_empty() && !argument_absolute_path.ends_with(".hsp"))
open_file(argument_absolute_path);
else
open_file(g_project->default_file());