Skip to content

Commit 22793c7

Browse files
committed
Fix formatting and links for client/rgz
1 parent 9a3df3a commit 22793c7

File tree

1 file changed

+47
-48
lines changed

1 file changed

+47
-48
lines changed

docs/client/rgz.md

+47-48
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
An RGZ file is a proprietary compressed archive format used for [Ragnarok Online](Ragnarok_Online "wikilink"), developed
1+
# RGZ
2+
3+
An RGZ file is a proprietary compressed archive format used for [Ragnarok Online](https://en.wikipedia.org/wiki/Ragnarok_Online), developed
24
by [Gravity](http://en.wikipedia.org/wiki/Gravity_(company)). It is used for patching the local file system directory,
35
the game client resides in. The archive mostly contains updated game executable or new background music files. The
46
extension is always **.rgz** and might be an abbreviation for **ragnarok+gzip**.
@@ -42,52 +44,49 @@ entry is always **end**.
4244

4345
### Hex Workshop Definition File (ragnarok.hsl)
4446

45-
`/********************`
46-
``
47-
`* Ragnarok Resource files to view and edit`
48-
`*`
49-
`*/`
50-
51-
`#include "standard-types.hsl"`
52-
53-
`#pragma displayname("Ragnarok GZip") ;`
54-
`#pragma fileextensions(".rgz") ;`
55-
56-
`#pragma byteorder(little_endian) `
57-
`//#pragma maxarray(65536)`
58-
`#pragma hide()`
59-
60-
`struct FILESTRUCT`
61-
`{`
62-
` BYTE type;`
63-
` `
64-
` struct tagFILENAME`
65-
` {`
66-
`  BYTE length;`
67-
`  char string[length];`
68-
` };`
69-
` `
70-
` switch (type)`
71-
` {`
72-
`  case 0x66:`
73-
`   struct FILECONTENTS`
74-
`   {`
75-
`    DWORD length;`
76-
`    blob  contents[length];`
77-
`   };`
78-
`   break;`
79-
`  default:`
80-
`  `
81-
`   break;`
82-
` };`
83-
` `
84-
`};`
85-
`#pragma show()`
86-
87-
`struct files`
88-
`{`
89-
` struct FILESTRUCT entries[256];`
90-
`};`
47+
```C
48+
/********************
49+
50+
* Ragnarok Resource files to view and edit
51+
*
52+
*/
53+
#include "standard-types.hsl"
54+
#pragma displayname("Ragnarok GZip") ;
55+
#pragma fileextensions(".rgz") ;
56+
#pragma byteorder(little_endian) 
57+
//#pragma maxarray(65536)
58+
#pragma hide()
59+
struct FILESTRUCT
60+
{
61+
 BYTE type;
62+
 
63+
 struct tagFILENAME
64+
 {
65+
  BYTE length;
66+
  char string[length];
67+
 };
68+
 
69+
 switch (type)
70+
 {
71+
  case 0x66:
72+
   struct FILECONTENTS
73+
   {
74+
    DWORD length;
75+
    blob  contents[length];
76+
   };
77+
   break;
78+
  default:
79+
  
80+
   break;
81+
 };
82+
 
83+
};
84+
#pragma show()
85+
struct files
86+
{
87+
 struct FILESTRUCT entries[256];
88+
};
89+
```
9190

9291
## Tools
9392

@@ -97,6 +96,6 @@ entry is always **end**.
9796

9897
## See Also
9998

100-
- [GRF](GRF "wikilink")
99+
- [GRF](./grf.md)
101100

102101
[Category:File Formats](Category:File_Formats "wikilink")

0 commit comments

Comments
 (0)