Commit graph

171 commits

Author SHA1 Message Date
fanoI
73aa970508 CGS finally works!
Please note that this version works only with Bochs.

- To make it works was needed to renounce to all structures (a part for primitive types) so now Mode and Color are classes.
- Implemented methods of Canvas DrawPoint(), DrawLine() and DrawRect() for now only color depth of 32 bit and integer coordinates are supported
- Changed IoPort of Bochs / VBE to MemoryBlock and not MemoryBlock08 so I can write an 32 bit ARGB color in only an operation instead of 4, this will semplify the future
  work of RGB24 and RGB16 too. Changed the name to the correct one "LinearFrameBuffer".
- Made VBEDriver more object oriented (used enums instead of hardcoded values, created methods and so on...)
- Bugfix in the Pen class there was confusion in the setter / getter of the Color property
- In VBEScreen removed the old code that is not needed anymore, added check to method arguments (that throws in case of fatal errors)
2017-01-08 22:57:27 +01:00
José Pedro
3db5ce43bb Compiler fixes.
Compiler fixes.
Updated project.json files.
Removed *.lock.json files and updated gitignore to ignore them.
Updated some Cosmos.Debug projects.
2017-01-08 14:54:29 +00:00
Charles Betros
88bdb029a9 Progress on net core. 2017-01-03 15:31:21 -06:00
Charles Betros
10cfcbea73 Progress on netcore. 2016-12-28 00:27:54 -06:00
Charles Betros
8d4f634d48 Going with PCL for now to make P2P references easier. 2016-12-19 10:45:38 -06:00
fanoI
86ff377084 First release of CGS, really preliminar work.
The kernel crashes for stack overflow :-)
2016-12-18 16:33:23 +01:00
Charles Betros
411ce3e872 Create projects and msbuild targets for dotnet core. 2016-12-13 22:39:41 -06:00
José Pedro
8e2aa72d4e Fix FAT test.
Minor changes in ToHexString and the FAT test.
2016-11-19 22:43:15 +00:00
José Pedro
39ea6ee678 Fixed return on foreach
Fixed Array.Clear
Minor changes
2016-11-09 00:08:23 +00:00
José Pedro
c8844527a5 Merge branch 'master' 2016-11-03 22:50:14 +00:00
José Pedro
a8dca0d21d Minor changes 2016-11-03 22:43:21 +00:00
Charles Betros
4beeee98ab Enable some tests and small change to fat allocation. 2016-11-03 14:02:44 -05:00
jp2masa
da7e340148 Trying to fix KeyboardManager.cs 2016-10-24 20:49:22 +01:00
José Pedro
4f71752ca8 Merge branch 'master' of https://github.com/CosmosOS/Cosmos into KeyboardUpdate 2016-10-13 21:52:08 +01:00
José Pedro
a860b2373a Fixed Newobj for string with length parameter.
Minor changes in debugging and FAT test messages.
Removed useless "if" in FAT, previously added by me.
2016-09-29 19:48:59 +01:00
José Pedro
594bf34fd6 Merge branch 'master' into KeyboardUpdate 2016-09-14 23:48:57 +01:00
Charles Betros
b3737d726c Fat fixes. 2016-09-11 16:35:43 -05:00
Charles Betros
a9cb616f86 Merge from master. 2016-09-07 19:42:40 -05:00
José Pedro
ba66f8b28d Merge branch 'master' of https://github.com/CosmosOS/Cosmos into KeyboardUpdate 2016-08-31 15:13:27 +01:00
Charles Betros
4ab093e732 Merge pull request #394 from MichaelTheShifter/fat-stuff
Adds plug for System.IO.File.Delete(), and adds deletion capabilities to FAT.
2016-08-24 20:17:55 -05:00
José Pedro
74ccda1ffc Finished merging 2016-08-24 20:04:07 +01:00
José Pedro
a3b055fa7c Merge branch master into KeyboardUpdate 2016-08-24 19:45:25 +01:00
Unknown6656
f246908358 Added the german keyboard layout
* Added the German keyboard layout and made the keyboard implementation
more scalable and modular to permit future foreign keyboards.
* Added support for ALTGR-keypresses
* Added support for the OEM-102-key
* Cleaned up some code
2016-08-19 18:12:25 +02:00
José Pedro
153cde7d5e - CosmosVFS.GetDirectoryListing(DirectoryEntry): "Argument is null or empty" error - Fixed
- File.Delete and Directory.Delete implementations - Fully Working

- Change Guess demo references to Project References - Done
2016-08-18 15:32:29 +01:00
José Pedro
47222a3a96 Keyboard update: KeyboardManager static class to manage different keyboards. 2016-07-18 21:26:35 +01:00
José Pedro
eede1e6675 Better keyboard implementation 2016-07-18 02:42:33 +01:00
José Pedro
2408319b41 Keyboard Update: now it's possible to change keyboard layout(it wasn't due to Rings); Fix typo in Cosmos.System.Plugs.RuntimeTypeImpl.cs; Implement op_Inequality(implemented as op_Equality and not sure if it's needed with the changes but needed it's needed by many system methods) 2016-07-12 22:38:37 +01:00
Matthijs ter Woord
6e5d7620a9 Little progress. 2016-06-25 17:37:45 -04:00
MichaelTheShifter
903860a77d FAT File Deletion work.
Yet again, my hands are typing words. Jokes aside, deleting doesn't work
yet - but at least using System.IO.File.Delete() won't cause a plug
issue.
2016-06-21 19:38:44 -04:00
Matthijs ter Woord
075e64d991 . 2016-06-20 16:11:16 -04:00
Charles Betros
af12bec66f More filesystem work. 2016-06-15 23:29:36 -05:00
Charles Betros
280fdead4c Fix filesystem. 2016-06-14 23:20:10 -05:00
Matthijs ter Woord
7a733a59c8 Small keyboard refactoring: Now it's possible to specify a different keymap (Currently only US standard and FR standard are supported) in the kernel. 2016-06-07 16:35:11 +02:00
Charles Betros
720f6187ed Fixed issue with writing to a new file in a new directory. 2016-05-18 16:08:56 -05:00
Charles Betros
5a26ea509d Fixed creating in subdirectories. 2016-05-15 13:45:30 -05:00
Charles Betros
bf6f97756a Fixed create directory and directory exists. 2016-05-11 22:36:00 -05:00
Charles Betros
3fcc2860a9 FAT file system work. 2016-04-14 13:27:18 -05:00
Charles Betros
653b7a8321 Fixed Get directory listing with subdirectory. 2016-03-24 22:35:59 -05:00
Charles Betros
0bef9a8fac Updating solution config. 2016-03-13 12:27:58 -05:00
Charles Betros
4a3b6a50df Fixed up project and solution configurations and remove jetbrains annotations. 2016-03-06 17:33:21 -06:00
Charles Betros
559ee8570a Filesystem work. 2016-03-02 15:57:53 -06:00
Charles Betros
043cbb2f19 Fixed path plugs 2016-02-25 11:56:30 -06:00
Charles Betros
815f2f78a4 Added some globalization and culture plugs. Also added string and struct tests. 2016-02-21 10:13:29 -06:00
Charles Betros
ba6070dbe7 String and simple debugger change 2016-02-15 16:02:23 -06:00
Charles Betros
6f50b73386 Changed build configuration 2016-02-15 01:29:03 -06:00
Charles Betros
c469f13920 Fix error from merge 2016-01-14 13:45:31 -06:00
Charles Betros
d559463c85 Merge branch 'master' of https://github.com/fanoI/Cosmos into fanoI-master
# Conflicts:
#	source/Cosmos.System.Plugs/System/IO/FileImpl.cs
#	source/Cosmos.System/FileSystem/FAT/FatStream.cs
2016-01-14 13:33:04 -06:00
Charles Betros
ac423d389c Merge 2016-01-06 22:14:41 -06:00
Charles Betros
aaa0bb3eb6 Fixed string split and compare ordinal. Made some chnages to debug nessages to showmring and section. 2016-01-06 22:07:30 -06:00
fanoI
bfc3934be0 FATStream Constructor Fixed: FatTable generated for empty files too
- FATStream Constructor Fixed: FatTable generated for empty files too
- Corrected method WriteAllLines()
- Added new method ReadAllLines()
- In FatTestKernel added utility method StringArrayAreEquals()
- In FatTestKernel fixed assertions on file existence
- In FatTestKernel used ReadAllLines() to check that WriteAllLines()
succeeded
- In FatTestKernel moved AppendAllText() test as last of File as - for
now - is always failing
2016-01-06 22:21:52 +01:00
Charles Betros
0829cf8204 Merge pull request #318 from fanoI/master
Added new (failing) tests on FAT
2016-01-01 21:53:59 -06:00
fanoI
f4d627d22e Added new (failing) tests on FAT
- Added test to write another file in the same directory
- Added test for new method WriteAllLines()
- Added test for method WriteAllBytes() / ReadAllBytes()
- Added tests to create files in a subdirectory
- Added utility method byteArrayAreEquals()
2015-12-30 22:15:19 +01:00
Emile Badenhorst
d1d9cd0974 Fiex #313 2015-12-28 13:34:21 +02:00
Charles Betros
30e2ffad09 Remove debug define. 2015-12-18 10:41:45 -06:00
Charles Betros
21c464d946 Merge 2015-12-18 08:22:57 -06:00
Charles Betros
c01f5f1048 Reorganizing plugs. 2015-12-18 08:08:49 -06:00
Charles Betros
c018d75bf5 Merge pull request #283 from fanoI/master
Implemented Console's CursorSize and CursorVisible properties …
2015-12-17 08:23:51 -06:00
Charles Betros
929bd8d575 Removed source2 folder. 2015-12-17 00:16:15 -06:00
Charles Betros
85a255912e Fixed GetFullPath 2015-12-10 23:43:12 -06:00
fanoI
45a3f79c50 Implemented Console's CursorSize and CursorVisible properties
- Now Console's CursorSize and CursorVisible properties
- Console Cursor default size is 25 as on Windows (before was 1)
- Console Cursor is visible by default
2015-12-07 15:11:57 +01:00
Charles Betros
2ae245e14b Implemented create file for FAT. 2015-12-06 16:32:30 -06:00
Charles Betros
102c909cd9 Fixed SetSize for FatStream. 2015-12-04 15:05:18 -06:00
Charles Betros
fd54c66225 Reworked fat file system. Added conditionals for debug output. Implemented some System.IO plugs. 2015-11-26 11:45:58 -06:00
charles.betros@gmail.com
31684c15d6 Working on FAT and create directory. 2015-11-20 23:52:08 -06:00
charles.betros@hcss.com
8257fba6ac Working on create in FAT. 2015-11-16 12:02:48 -06:00
charles.betros@hcss.com
ef181b4ee5 Set the parent directory to root if it's null. 2015-11-16 11:30:28 -06:00
charles.betros@hcss.com
d46bf5dd09 File system work. 2015-11-16 09:15:38 -06:00
Charles Betros
a391864356 More filesystem work. 2015-11-14 21:41:30 -06:00
Charles Betros
ceeb1381e1 Added tracing for some system io plugs and hooked up GetVolume and GetVolumes. 2015-11-12 22:27:12 -06:00
Charles Betros
887b573b73 Ongoing file system work. 2015-11-11 22:59:14 -06:00
Charles Betros
7d90f3609a Removed missing file and added all tests to test runner configuration. 2015-11-11 10:58:25 -06:00
Charles Betros
f94290890a Continuing FAT work. 2015-11-11 10:21:49 -06:00
CSharpLover
60727b0e49 VGAScreen Edit 2015-11-06 19:05:07 +02:00
Charles Betros
c03d183de2 Changed some exceptions to base Exception and working on FAT tests. 2015-10-28 10:34:44 -05:00
Matthijs ter Woord
2beb8b3e18 Ongoing FAT work. 2015-10-07 08:18:52 +02:00
Matthijs ter Woord
3e5dd5f34b Ongoing work. 2015-10-04 15:58:17 +02:00
Matthijs ter Woord
10a5f6c36d Directory reading is now done using a stream. 2015-10-04 12:38:38 +02:00
Matthijs ter Woord
3fb0e6622d Progress on fat. 2015-10-04 11:53:03 +02:00
Matthijs ter Woord
a05e3d3229 Reading works now. 2015-10-03 14:09:01 +02:00
Matthijs ter Woord
8e35d79602 Reading almost fixed. 2015-10-02 19:39:56 +02:00
Matthijs ter Woord
6e2dda177f Ongoing fixes for file system work. 2015-10-02 17:59:06 +02:00
Matthijs ter Woord
d9a9737608 Filesystem/VFS/FAT work by @charlesbetros has been merged into main kernel.
This does NOT mean it's fully working yet!
2015-10-02 17:12:00 +02:00
Matthijs ter Woord
0b8ce1b4fe Merge branch 'master' into memory_handles
Conflicts:
	source/Cosmos.Core.Plugs/CPUImpl.cs
	source/Cosmos.Core/CPU.cs
2015-09-04 13:50:11 +02:00
Matthijs ter Woord
59c2bba33d Merge pull request #186 from zdimension/pwr-work
Added a Power class containing a WORKING reboot function
2015-09-02 19:20:17 +02:00
Matthijs ter Woord
0b5490a281 Ongoing changes. 2015-08-18 20:19:36 +02:00
Matthijs ter Woord
bccf8cb64f Build fix. 2015-08-18 19:54:06 +02:00
Matthijs ter Woord
e6c866a8d4 Merge branch 'master' into memory_handles
Conflicts:
	source/Cosmos.HAL/DefaultKeyboard.cs
	source/Cosmos.HAL/Global.cs
	source/Cosmos.HAL/Keyboard.cs
	source/Cosmos.System/Global.cs
2015-08-18 19:38:50 +02:00
zdimension
488889f853 Added a Power class containing a WORKING reboot function 2015-08-12 02:21:43 +02:00
zdimension
4aabc2ae60 NumLock, CapsLock and ScrollLock are now global 2015-08-12 01:57:01 +02:00
Matthijs ter Woord
bf2a02caa6 Ongoing work 2015-08-10 12:43:36 -04:00
Matthijs ter Woord
842adbfefc More fixes.. 2015-08-06 08:34:45 -04:00
Matthijs ter Woord
e030f5b850 Progress. 2015-08-05 17:32:32 -04:00
Matthijs ter Woord
15f2df89b3 More progress. We have a bug in try...finally now.. 2015-08-04 15:32:18 -04:00
Matthijs ter Woord
d2db318dc1 Progress. Most stuff seems to work now. 2015-08-01 13:48:25 -04:00
Matthijs ter Woord
f54d7ace72 More progress 2015-08-01 09:04:35 -04:00
Matthijs ter Woord
675ce71d10 Ongoing work. 2015-07-31 08:34:28 -04:00
MyvarHD
6da46cf3de Compleated the VBE driver 2015-07-24 08:08:27 +02:00
MyvarHD
a2d8cd7ee8 Code clean up 2015-07-23 23:49:51 +02:00
MyvarHD
5656ee0c6a added rgb 2015-07-23 23:39:14 +02:00
MyvarHD
e5ff48ef10 added Drawing code 2015-07-23 23:17:57 +02:00