HackStudio: Rename project file format from .files to .hackstudio

This commit is contained in:
Linus Groh 2020-08-05 16:38:25 +02:00 committed by Andreas Kling
parent f34fcdedef
commit 0d493c1879
Notes: sideshowbarker 2024-07-19 04:16:33 +09:00
4 changed files with 5 additions and 5 deletions

View File

@ -1,2 +0,0 @@
javascript.files
*.js

View File

@ -0,0 +1,2 @@
javascript.hackstudio
*.js

View File

@ -1,4 +1,4 @@
main.cpp
Makefile
little.files
little.hackstudio
test.frm

View File

@ -142,7 +142,7 @@ NonnullRefPtr<EditorWrapper> get_editor_of_file(const String& file)
String get_project_executable_path()
{
// e.g /my/project.files => /my/project
// e.g /my/project.hackstudio => /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());
}
@ -189,7 +189,7 @@ int main(int argc, char** argv)
if (!make_is_available())
GUI::MessageBox::show(g_window, "The 'make' command is not available. You probably want to install the binutils, gcc, and make ports from the root of the Serenity repository.", "Error", GUI::MessageBox::Type::Error);
open_project("/home/anon/little/little.files");
open_project("/home/anon/little/little.hackstudio");
auto& toolbar_container = widget.add<GUI::ToolBarContainer>();
auto& toolbar = toolbar_container.add<GUI::ToolBar>();