Skip to content

Commit

Permalink
tweak(build): [NFC] recategorize 'server' components in VS
Browse files Browse the repository at this point in the history
Both components/common/citizen/server/ and components/server/ existing is confusing.
  • Loading branch information
blattersturm committed Aug 4, 2023
1 parent a9d93d4 commit 033b89f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/tools/build/components.lua
Expand Up @@ -224,6 +224,12 @@ local do_component = function(name, comp)
groupName = groupName .. '/' .. val
end

-- replace '/common/citizen/server' prefix with '/server'
local serverMatch = '/common/citizen/server'
if groupName:sub(1, #serverMatch) == serverMatch then
groupName = '/server' .. groupName:sub(#serverMatch + 1)
end

-- hack: `net` breaks premake/.vs group generator
if comp.name == 'net' then
groupName = groupName .. '/net'
Expand Down

0 comments on commit 033b89f

Please sign in to comment.