mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Base+HackStudio: Rename project file extensions to .hsp
More concise in Views and consistent with other extensions.
This commit is contained in:
parent
45901d4141
commit
30ad295fa1
5 changed files with 10 additions and 7 deletions
|
@ -1,2 +0,0 @@
|
|||
javascript.hackstudio
|
||||
*.js
|
2
Base/home/anon/Source/js/javascript.hsp
Normal file
2
Base/home/anon/Source/js/javascript.hsp
Normal file
|
@ -0,0 +1,2 @@
|
|||
javascript.hsp
|
||||
*.js
|
|
@ -1,6 +1,6 @@
|
|||
main.cpp
|
||||
Makefile
|
||||
little.hackstudio
|
||||
little.hsp
|
||||
test.frm
|
||||
other.cpp
|
||||
other.h
|
|
@ -6,3 +6,6 @@ Category=Development
|
|||
[Icons]
|
||||
16x16=/res/icons/16x16/app-hack-studio.png
|
||||
32x32=/res/icons/32x32/app-hack-studio.png
|
||||
|
||||
[Launcher]
|
||||
FileTypes=hsp
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue